.yashariel-language-detect-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(5px);
}

.yashariel-language-detect-backdrop[hidden] {
    display: none !important;
}

.yashariel-language-detect-dialog {
    width: min(100%, 560px);
    background:
        linear-gradient(
            180deg,
            rgba(28, 24, 20, 0.99),
            rgba(15, 13, 11, 0.99)
        );
    border: 1px solid rgba(177, 126, 66, 0.58);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.65),
        inset 0 1px rgba(255, 255, 255, 0.025);
    color: #e8e0d6;
}

.yashariel-language-detect-header {
    padding: 30px 32px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(177, 126, 66, 0.25);
}

.yashariel-language-detect-kicker {
    margin: 0 0 10px;
    color: #b9884e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.yashariel-language-detect-title {
    margin: 0;
    color: #f2ebe2;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.2;
}

.yashariel-language-detect-body {
    padding: 28px 32px 32px;
}

.yashariel-language-detect-text {
    margin: 0;
    color: #c9c0b6;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

.yashariel-language-detect-language {
    margin: 22px 0 0;
    padding: 15px 18px;
    border-left: 3px solid #ad7d43;
    background: rgba(0, 0, 0, 0.24);
    color: #eee4d8;
    text-align: center;
    font-weight: 700;
}

.yashariel-language-detect-actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.yashariel-language-detect-button {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid rgba(177, 126, 66, 0.55);
    background: rgba(177, 126, 66, 0.08);
    color: #eee4d8;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.yashariel-language-detect-button:hover,
.yashariel-language-detect-button:focus-visible {
    background: rgba(177, 126, 66, 0.18);
    border-color: rgba(205, 153, 88, 0.9);
    outline: none;
}

.yashariel-language-detect-button:active {
    transform: translateY(1px);
}

.yashariel-language-detect-button--primary {
    background: #9d6d37;
    border-color: #bd8950;
    color: #fff8ef;
}

.yashariel-language-detect-button--primary:hover,
.yashariel-language-detect-button--primary:focus-visible {
    background: #ad7b40;
}

@media (max-width: 600px) {

    .yashariel-language-detect-backdrop {
        align-items: flex-end;
        padding: 14px;
    }

    .yashariel-language-detect-header {
        padding: 24px 22px 18px;
    }

    .yashariel-language-detect-body {
        padding: 22px;
    }
}
