/* Match the storefront and keep TranslatePress's language prompt inside the viewport. */
#trp_ald_modal_container {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background: rgba(22, 18, 13, .58);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    pointer-events: auto;
}

#trp_ald_modal_popup {
    box-sizing: border-box;
    position: absolute;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 34px 32px 28px;
    margin: 0;
    border: 1px solid #c8bba6;
    border-radius: 0;
    background: #f4efe6;
    box-shadow: 0 22px 70px rgba(20, 16, 10, .3);
    color: #292219;
    font-family: Jost, Arial, sans-serif;
}

#trp_ald_popup_text {
    margin: 0;
    color: #292219;
    font: 400 22px/1.45 Jost, Arial, sans-serif;
    overflow-wrap: anywhere;
}

#trp_ald_modal_popup .trp_ald_select_and_button {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}

#trp_ald_modal_popup .trp_ald_ls_container {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-width: 0;
    color: #292219;
}

#trp_ald_modal_popup.qing-ald-ready #trp_ald_popup_select_container {
    display: none !important;
}

#trp_ald_modal_popup .qing-ald-select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 42px 0 15px;
    border: 1px solid #a99982;
    border-radius: 0;
    outline: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235e5244' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 15px center;
    color: #292219;
    font: 400 15px/1.3 Jost, Arial, sans-serif;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#trp_ald_modal_popup .qing-ald-select:focus-visible {
    border-color: #9b7947;
    box-shadow: 0 0 0 2px rgba(155, 121, 71, .16);
}

#trp_ald_modal_popup .trp_ald_button {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

#trp_ald_popup_change_language,
#trp_ald_popup_change_language:hover,
#trp_ald_popup_change_language:focus {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    height: auto;
    padding: 12px 16px;
    border: 1px solid #292219;
    border-radius: 0;
    background: #292219;
    color: #fff;
    font: 600 12px/1.4 Jost, Arial, sans-serif;
    letter-spacing: .08em;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

#trp_ald_popup_change_language:hover {
    border-color: #9b7947;
    background: #9b7947;
}

#trp_ald_modal_popup #trp_ald_x_button_and_textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 18px 0 0;
    color: #6b5e4e !important;
    font: 400 13px/1.5 Jost, Arial, sans-serif;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#trp_ald_modal_popup #trp_ald_x_button,
#trp_ald_modal_popup #trp_ald_x_button::before {
    display: none;
}

#trp_ald_modal_popup #trp_ald_x_button_textarea {
    display: inline;
    width: auto;
    color: inherit !important;
    font: inherit;
    text-align: inherit;
    text-decoration: inherit;
}

@media (max-width: 640px) {
    #trp_ald_modal_popup {
        width: calc(100vw - 32px);
        padding: 28px 22px 24px;
    }

    #trp_ald_popup_text {
        font-size: 19px;
        line-height: 1.45;
    }

    #trp_ald_modal_popup .trp_ald_select_and_button {
        margin-top: 20px;
    }
}
