.bxclub-answer-form {
    margin-top: 28px;
    font-family: "Montserrat", Arial, sans-serif;
}

.bxclub-answer-form *,
.bxclub-answer-form *::before,
.bxclub-answer-form *::after {
    box-sizing: border-box;
}

.bxclub-answer-form__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bxclub-answer-form__title {
    margin: 0 0 5px;
    color: #202124;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.bxclub-answer-form__subtitle {
    color: #8b9099;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.bxclub-editor {
    width: 100%;
}

.bxclub-editor__body {
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(30, 35, 45, 0.03),
        0 10px 28px rgba(30, 35, 45, 0.05);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.bxclub-editor__body:focus-within {
    border-color: #b8cff7;
    box-shadow:
        0 0 0 4px rgba(71, 137, 239, 0.08),
        0 12px 32px rgba(30, 35, 45, 0.07);
}

.bxclub-editor__toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 58px;
    padding: 10px 16px;
    overflow-x: auto;
    border-bottom: 1px solid #edf0f4;
    scrollbar-width: thin;
}

.bxclub-editor__tool {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #34373c;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.bxclub-editor__tool:hover {
    background: #f1f5fb;
    color: #347fe6;
}

.bxclub-editor__tool:active {
    background: #e7effb;
}

.bxclub-editor__tool svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.bxclub-editor__tool--strong {
    font-size: 20px;
    font-weight: 800;
}

.bxclub-editor__tool--italic {
    font-family: Georgia, serif;
    font-size: 25px;
    font-style: italic;
    font-weight: 400;
}

.bxclub-editor__tool--underline {
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bxclub-editor__tool--quote {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
}

.bxclub-editor__separator {
    display: block;
    flex: 0 0 auto;
    width: 1px;
    height: 30px;
    margin: 0 7px;
    background: #e0e4ea;
}

.bxclub-editor__content-wrap {
    position: relative;
}

.bxclub-editor__content {
    min-height: 180px;
    padding: 24px 25px;
    color: #25282d;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
    outline: none;
    word-break: break-word;
}

.bxclub-editor__content:empty::before {
    color: #adb3bc;
    content: attr(data-placeholder);
    pointer-events: none;
}

.bxclub-editor__content p {
    margin: 0 0 12px;
}

.bxclub-editor__content p:last-child {
    margin-bottom: 0;
}

.bxclub-editor__content h2,
.bxclub-editor__content h3 {
    margin: 16px 0 9px;
    color: #24272c;
    font-weight: 700;
    line-height: 1.35;
}

.bxclub-editor__content h2 {
    font-size: 21px;
}

.bxclub-editor__content h3 {
    font-size: 18px;
}

.bxclub-editor__content ul,
.bxclub-editor__content ol {
    margin: 10px 0;
    padding-left: 26px;
}

.bxclub-editor__content blockquote {
    margin: 14px 0;
    padding: 12px 16px;
    border-left: 4px solid #75a9ef;
    border-radius: 0 10px 10px 0;
    background: #f5f8fc;
    color: #555c66;
}

.bxclub-editor__content pre {
    max-width: 100%;
    margin: 14px 0;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #303642;
    border-radius: 12px;
    background: #1f242d;
    color: #e8ecf3;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
}

.bxclub-editor__content code {
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.bxclub-editor__content a {
    color: #347fe6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bxclub-editor__auth-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 20px;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #24272d;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.bxclub-editor__auth-overlay:hover strong {
    color: #347fe6;
}

.bxclub-editor__auth-overlay strong,
.bxclub-editor__auth-overlay small {
    display: block;
}

.bxclub-editor__auth-overlay strong {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.18s ease;
}

.bxclub-editor__auth-overlay small {
    color: #9298a2;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.bxclub-editor__auth-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf4ff;
    color: #347fe6;
}

.bxclub-editor__auth-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.bxclub-editor__attachments {
    display: grid;
    gap: 10px;
    padding: 0 18px 16px;
}

.bxclub-editor__attachment {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    background: #f8fafc;
}

.bxclub-editor__attachment-image {
    display: block;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 9px;
    object-fit: cover;
}

.bxclub-editor__attachment-info {
    min-width: 0;
    padding-right: 38px;
}

.bxclub-editor__attachment-info strong,
.bxclub-editor__attachment-info span {
    display: block;
}

.bxclub-editor__attachment-info strong {
    overflow: hidden;
    margin-bottom: 4px;
    color: #34383e;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bxclub-editor__attachment-info span {
    color: #969ca5;
    font-size: 11px;
}

.bxclub-editor__attachment-remove {
    position: absolute;
    top: 50%;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    color: #9ba1aa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bxclub-editor__attachment-remove:hover {
    background: #fff0f0;
    color: #e35050;
}

.bxclub-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 12px 16px 12px 20px;
    border-top: 1px solid #edf0f4;
    background: #fbfcfd;
}

.bxclub-editor__footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.bxclub-editor__footer-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4c525b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.bxclub-editor__footer-button:hover {
    background: #edf3fb;
    color: #347fe6;
}

.bxclub-editor__footer-button svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.bxclub-editor__hint {
    overflow: hidden;
    color: #a0a6af;
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bxclub-editor__submit {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 13px;
    background: #4d95f5;
    box-shadow: 0 8px 18px rgba(77, 149, 245, 0.22);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.bxclub-editor__submit:hover {
    background: #347fe6;
    box-shadow: 0 10px 22px rgba(52, 127, 230, 0.28);
    transform: translateY(-1px);
}

.bxclub-editor__submit:active {
    transform: translateY(0);
}

.bxclub-editor__submit:disabled {
    cursor: wait;
    opacity: 0.8;
}

.bxclub-editor__submit-loader {
    display: none;
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: bxclub-answer-loader 0.7s linear infinite;
}

.bxclub-editor__submit--loading .bxclub-editor__submit-text {
    display: none;
}

.bxclub-editor__submit--loading .bxclub-editor__submit-loader {
    display: block;
}

.bxclub-editor__message {
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.bxclub-editor__message--success {
    border: 1px solid #bce5c9;
    background: #effaf2;
    color: #258346;
}

.bxclub-editor__message--error {
    border: 1px solid #f0c3c3;
    background: #fff3f3;
    color: #cc4141;
}

@keyframes bxclub-answer-loader {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .bxclub-answer-form {
        margin-top: 20px;
    }

    .bxclub-answer-form__title {
        font-size: 19px;
    }

    .bxclub-answer-form__subtitle {
        font-size: 12px;
    }

    .bxclub-editor__body {
        border-radius: 14px;
    }

    .bxclub-editor__toolbar {
        min-height: 54px;
        padding: 8px 10px;
    }

    .bxclub-editor__tool {
        width: 36px;
        height: 36px;
    }

    .bxclub-editor__separator {
        margin: 0 3px;
    }

    .bxclub-editor__content {
        min-height: 170px;
        padding: 19px 17px;
        font-size: 14px;
        line-height: 1.7;
    }

    .bxclub-editor__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .bxclub-editor__footer-actions {
        justify-content: space-between;
    }

    .bxclub-editor__hint {
        display: none;
    }

    .bxclub-editor__submit {
        width: 100%;
        min-width: 0;
    }

    .bxclub-editor__auth-overlay {
        align-items: flex-start;
        padding: 35px 18px;
    }
}

/* =========================================================
   Общие модальные окна
   ========================================================= */

body.bxclub-modal-open {
    overflow: hidden;
}

/* =========================================================
   Модальное окно вставки кода
   ========================================================= */

.bxclub-code-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bxclub-code-modal--open {
    display: flex;
}

.bxclub-code-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 20, 27, 0.72);
    backdrop-filter: blur(4px);
}

.bxclub-code-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(900px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.bxclub-code-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e9edf2;
}

.bxclub-code-modal__title {
    margin: 0 0 5px;
    color: #22262c;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.bxclub-code-modal__subtitle {
    color: #9096a0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.bxclub-code-modal__close {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f1f3f6;
    color: #727983;
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.bxclub-code-modal__close:hover {
    background: #ffecec;
    color: #df4444;
}

.bxclub-code-modal__body {
    padding: 22px 24px;
    overflow-y: auto;
}

.bxclub-code-modal__field {
    display: block;
    margin-bottom: 18px;
}

.bxclub-code-modal__label {
    display: block;
    margin-bottom: 8px;
    color: #40454d;
    font-size: 12px;
    font-weight: 700;
}

.bxclub-code-modal__select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe4ea;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #292d33;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
}

.bxclub-code-modal__select:focus {
    border-color: #77aaf0;
    box-shadow: 0 0 0 4px rgba(77, 149, 245, 0.1);
}

.bxclub-code-modal__textarea {
    display: block;
    width: 100%;
    min-height: 250px;
    padding: 16px;
    resize: vertical;
    border: 1px solid #303744;
    border-radius: 12px;
    outline: none;
    background: #1f242d;
    color: #e7ebf1;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 13px;
    line-height: 1.65;
    tab-size: 4;
}

.bxclub-code-modal__textarea:focus {
    border-color: #5d9df4;
    box-shadow: 0 0 0 4px rgba(77, 149, 245, 0.12);
}

.bxclub-code-modal__preview {
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
}

.bxclub-code-modal__preview-title {
    padding: 10px 14px;
    border-bottom: 1px solid #343a46;
    background: #292f39;
    color: #b8bec8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bxclub-code-modal__preview pre[class*="language-"] {
    max-height: 260px;
    margin: 0;
    overflow: auto;
    border-radius: 0;
    font-size: 12px;
}

.bxclub-code-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e9edf2;
    background: #f8fafc;
}

.bxclub-code-modal__cancel,
.bxclub-code-modal__insert {
    height: 44px;
    padding: 0 20px;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.bxclub-code-modal__cancel {
    border: 1px solid #dce1e7;
    background: #ffffff;
    color: #626973;
}

.bxclub-code-modal__cancel:hover {
    background: #f1f3f6;
}

.bxclub-code-modal__insert {
    border: 0;
    background: #4d95f5;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(77, 149, 245, 0.22);
}

.bxclub-code-modal__insert:hover {
    background: #347fe6;
}

/* =========================================================
   Код внутри редактора и готового ответа
   ========================================================= */

.bxclub-editor__content pre,
.bxclub-answer-card__text pre[class*="language-"],
.bxclub-answer-card__text pre {
    position: relative;
    max-width: 100%;
    margin: 16px 0;
    padding: 18px;
    overflow-x: auto;
    border: 1px solid #303744;
    border-radius: 12px;
    background: #1f242d;
    color: #e7ebf1;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre;
    tab-size: 4;
}

.bxclub-answer-card__text pre[class*="language-"] {
    margin: 16px 0;
}

.bxclub-answer-card__text code[class*="language-"],
.bxclub-answer-card__text pre[class*="language-"] {
    text-shadow: none;
}

/* =========================================================
   Миниатюры изображений в ответах
   ========================================================= */

.bxclub-answer-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.bxclub-answer-image-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #f3f5f8;
    cursor: zoom-in;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.bxclub-answer-image-link:hover {
    border-color: #87b4f2;
    box-shadow: 0 7px 18px rgba(42, 71, 110, 0.15);
    transform: translateY(-2px);
}

.bxclub-answer-image-thumbnail,
.bxclub-answer-card__text .bxclub-answer-image-thumbnail {
    display: block;
    width: 100px;
    height: 100px;
    max-width: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

/**
 * Поддержка старых ответов, где у IMG ещё нет классов.
 */
.bxclub-answer-card__text > p > img {
    display: inline-block;
    width: 100px;
    height: 100px;
    margin: 10px 0;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    object-fit: cover;
    cursor: zoom-in;
}

/* =========================================================
   Лайтбокс изображений
   ========================================================= */

.bxclub-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.bxclub-image-lightbox--open {
    display: flex;
}

.bxclub-image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 13, 18, 0.88);
    backdrop-filter: blur(5px);
    cursor: zoom-out;
}

.bxclub-image-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 60px);
}

.bxclub-image-lightbox__image {
    display: block;
    width: auto;
    max-width: calc(100vw - 60px);
    height: auto;
    max-height: min(1000px, calc(100vh - 60px));
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.bxclub-image-lightbox__close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(24, 28, 35, 0.92);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.bxclub-image-lightbox__close:hover {
    background: #e34c4c;
}

/* =========================================================
   Мобильная версия
   ========================================================= */

@media (max-width: 767px) {
    .bxclub-code-modal {
        align-items: flex-end;
        padding: 0;
    }

    .bxclub-code-modal__dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
    }

    .bxclub-code-modal__header {
        padding: 18px;
    }

    .bxclub-code-modal__body {
        padding: 18px;
    }

    .bxclub-code-modal__footer {
        padding: 14px 18px;
    }

    .bxclub-code-modal__textarea {
        min-height: 220px;
    }

    .bxclub-image-lightbox {
        padding: 15px;
    }

    .bxclub-image-lightbox__dialog {
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 30px);
    }

    .bxclub-image-lightbox__image {
        max-width: calc(100vw - 30px);
        max-height: min(1000px, calc(100vh - 30px));
        border-radius: 8px;
    }

    .bxclub-image-lightbox__close {
        top: 8px;
        right: 8px;
    }
}

/* =========================================================
   Единая панель инструментов редактора
   ========================================================= */

.bxclub-editor__toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 58px;
    padding: 10px 16px;
    overflow-x: auto;
    border-bottom: 1px solid #edf0f4;
    scrollbar-width: thin;
}

.bxclub-editor__tool {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    outline: none;
    background: transparent;
    color: #626975;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.bxclub-editor__tool:hover {
    background: #f0f5fc;
    color: #347fe6;
}

.bxclub-editor__tool:active {
    background: #e5eefb;
    transform: scale(0.96);
}

.bxclub-editor__tool:focus-visible {
    outline: 2px solid rgba(52, 127, 230, 0.38);
    outline-offset: 1px;
}

.bxclub-editor__tool svg {
    display: block;
    width: 20px;
    height: 20px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/**
 * Точки маркированного списка.
 */
.bxclub-editor__tool svg circle[r="1"] {
    fill: currentColor;
    stroke: none;
}

.bxclub-editor__separator {
    display: block;
    flex: 0 0 auto;
    width: 1px;
    height: 24px;
    margin: 0 6px;
    background: #e1e5eb;
}

/* =========================================================
   Иконка авторизации
   ========================================================= */

.bxclub-editor__auth-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   Кнопка добавления фотографии
   ========================================================= */

.bxclub-editor__footer-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    outline: none;
    background: transparent;
    color: #626975;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.bxclub-editor__footer-button:hover {
    background: #f0f5fc;
    color: #347fe6;
}

.bxclub-editor__footer-button:focus-visible {
    outline: 2px solid rgba(52, 127, 230, 0.38);
    outline-offset: 1px;
}

.bxclub-editor__footer-button svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   Кнопка закрытия модального окна кода
   ========================================================= */

.bxclub-code-modal__close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f1f3f6;
    color: #727983;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.bxclub-code-modal__close:hover {
    background: #ffecec;
    color: #df4444;
}

.bxclub-code-modal__close svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

/* =========================================================
   Нижняя часть окна вставки кода
   ========================================================= */

.bxclub-code-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid #e9edf2;
    background: #f8fafc;
}

.bxclub-code-modal__shortcut {
    color: #9aa1ab;
    font-size: 11px;
    font-weight: 500;
}

.bxclub-code-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bxclub-code-modal__insert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bxclub-code-modal__insert svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   Мобильная версия
   ========================================================= */

@media (max-width: 767px) {
    .bxclub-editor__toolbar {
        min-height: 54px;
        padding: 8px 10px;
    }

    .bxclub-editor__tool {
        width: 36px;
        height: 36px;
    }

    .bxclub-editor__tool svg {
        width: 19px;
        height: 19px;
    }

    .bxclub-editor__separator {
        height: 22px;
        margin: 0 3px;
    }

    .bxclub-code-modal__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 18px;
    }

    .bxclub-code-modal__shortcut {
        text-align: center;
    }

    .bxclub-code-modal__actions {
        width: 100%;
    }

    .bxclub-code-modal__cancel,
    .bxclub-code-modal__insert {
        flex: 1 1 50%;
    }
}



