/* Compact language controls and cookie consent panel. */
.language-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(49, 83, 65, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #315341;
    font-size: 14px;
    font-weight: 700;
}

.language-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 54px;
    min-height: 38px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    opacity: .78;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

.language-switch button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.language-switch button[aria-current="true"] {
    background: #315341;
    color: #fff;
    opacity: 1;
    box-shadow: 0 3px 9px rgba(49, 83, 65, .2);
}

.language-switch button > span:first-child {
    font-size: 18px;
    line-height: 1;
}

.mobile-language-switch {
    display: none;
}

.cookie-consent {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: min(780px, calc(100vw - 32px));
    padding: 24px 26px;
    border: 1px solid rgba(49, 83, 65, .2);
    border-radius: 24px;
    background: #fffefa;
    box-shadow: 0 18px 55px rgba(29, 45, 34, .24);
    color: #26342b;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent .eyebrow {
    color: #52705a;
    font-size: 12px;
    letter-spacing: .12em;
    font-weight: 800;
}

.cookie-consent h2 {
    margin: 5px 0 7px;
    color: #263b2e;
    font-size: 20px;
    line-height: 1.25;
}

.cookie-consent p {
    margin: 0 0 7px;
    color: #59635a;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-copy > a {
    color: #315341;
    font-size: 13px;
    font-weight: 700;
    text-underline-offset: 3px;
}

.cookie-consent-actions {
    display: grid;
    min-width: 175px;
    gap: 9px;
}

.cookie-consent-actions button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #315341;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.cookie-accept {
    background: #315341;
    color: #fff;
}

.cookie-reject {
    background: #fffefa;
    color: #315341;
}

.cookie-settings-trigger {
    position: fixed;
    z-index: 1100;
    right: 15px;
    bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(49, 83, 65, .24);
    border-radius: 999px;
    background: rgba(255, 254, 250, .96);
    color: #315341;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 18px rgba(29, 45, 34, .12);
}

@media (max-width: 1000px) {
    .desktop-language-switch {
        display: none;
    }

    .mobile-language-switch {
        display: flex;
        justify-content: flex-start;
        margin-top: 14px;
        width: fit-content;
        padding: 6px;
    }

    .mobile-language-switch > span {
        align-self: center;
        margin: 0 8px;
        font-size: 14px;
        font-weight: 700;
    }

    .mobile-language-switch button {
        min-height: 44px;
        min-width: 78px;
        font-size: 15px;
    }
}

@media (max-width: 700px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr;
        gap: 16px;
        width: calc(100vw - 24px);
        max-height: min(82vh, 620px);
        overflow-y: auto;
        padding: 20px;
        border-radius: 20px;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }

    .cookie-consent-actions button {
        min-height: 48px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .cookie-settings-trigger {
        right: 10px;
        bottom: 10px;
    }
}
