.bcdl-language-trigger,
.bcdl-language-dialog {
    display: none !important;
}

@media (max-width: 767px) {
    .bcdl-language-anchor {
        position: relative;
    }

    .bcdl-language-trigger {
        display: inline-flex !important;
        position: absolute;
        z-index: 2;
        float: none;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 52px;
        height: 40px;
        margin: 0 !important;
        padding: 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #30143e !important;
        cursor: pointer;
    }

    .bcdl-language-trigger::before,
    .bcdl-language-trigger::after,
    .bcdl-language-back::before,
    .bcdl-language-back::after {
        display: none !important;
        content: none !important;
    }

    .bcdl-language-trigger-flag {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        overflow: hidden;
        border: 1px solid #bbb;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px #0003;
        font-size: 22px;
        line-height: 1;
    }

    .bcdl-language-chevron {
        display: block;
        flex: 0 0 8px;
        width: 8px;
        height: 8px;
        margin-top: -4px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .bcdl-language-dialog:not([hidden]) {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 2147483000;
        overflow-y: auto;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
        background: #fff;
        color: #30143e;
    }

    body.bcdl-language-open {
        overflow: hidden !important;
    }

    .bcdl-language-dialog-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 58px;
        padding: 8px 54px;
    }

    .bcdl-language-back {
        position: absolute;
        left: 16px;
        top: 5px;
        width: 44px;
        height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        color: #30143e !important;
        font-family: Arial, sans-serif;
        font-size: 30px;
        line-height: 1;
        text-decoration: none !important;
        appearance: none;
        cursor: pointer;
    }

    .bcdl-language-title {
        margin: 0;
        color: #30143e;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
    }

    .bcdl-language-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 12px;
        max-width: 430px;
        margin: 8px auto 0;
        padding: 12px 24px 36px;
    }

    .bcdl-language-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        min-height: 106px;
        color: #30143e;
        text-decoration: none;
    }

    .bcdl-language-flag {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 76px;
        height: 76px;
        border: 2px solid #aaa;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 5px #0003;
        font-size: 48px;
        line-height: 1;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .bcdl-language-option:hover .bcdl-language-flag,
    .bcdl-language-option:focus-visible .bcdl-language-flag {
        transform: scale(1.06);
        box-shadow: 0 4px 10px #0003;
    }

    .bcdl-language-name {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
    }

    .bcdl-language-trigger:focus-visible,
    .bcdl-language-back:focus-visible,
    .bcdl-language-option:focus-visible {
        outline: 2px solid #e4a900;
        outline-offset: 3px;
    }
}
