/* Campaign popup, loaded only while the popup is enabled */
.campaign-popup-open,
.campaign-popup-open body {
    overflow: hidden;
}.campaign-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.campaign-popup[hidden] {
    display: none;
}
.campaign-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    cursor: pointer;
}
.campaign-popup-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 1000px;
    max-height: 100%;
    overflow: auto;
    background: #faf8f1;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    color: #2d2e2c;
}
.campaign-popup-dialog:focus {
    outline: none;
}
/* The theme's global scrollbar has an inset shadow meant for the page, popups get a thin one instead */
.campaign-popup-dialog,
.campaign-popup-content {
    scrollbar-width: thin;
    scrollbar-color: #dbd3b5 transparent;
}
.campaign-popup-dialog::-webkit-scrollbar,
.campaign-popup-content::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}
.campaign-popup-dialog::-webkit-scrollbar-track,
.campaign-popup-content::-webkit-scrollbar-track {
    box-shadow: none;
    background: transparent;
}
.campaign-popup-dialog::-webkit-scrollbar-thumb,
.campaign-popup-content::-webkit-scrollbar-thumb {
    border-radius: 3px;
    outline: none;
    background: #dbd3b5;
}
.campaign-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #2d2e2c;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
    transition: background-color .4s ease;
}
.campaign-popup-close:hover {
    background: #eaddad;
}
.campaign-popup-close:focus-visible {
    outline: 2px solid #2d2e2c;
    outline-offset: 2px;
}
.campaign-popup-visual {
    position: relative;
    display: block;
    min-height: min(520px, calc(100vh - 48px));
}
.campaign-popup-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.campaign-popup-content {
    display: flex;
    flex-direction: column;
    container: popup-content / inline-size;
    gap: 18px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 60px 48px 44px;
    font-size: 20px;
    line-height: 140%;
}
.campaign-popup-content p,
.campaign-popup-content li {
    margin: 0;
    text-wrap: pretty;
}
.campaign-popup-title {
    padding-right: 24px;
    font-size: 32px;
    font-weight: normal;
    line-height: 110%;
    color: #000;
    text-wrap: balance;
}
.campaign-popup-text {
    color: #32323b;
}
.campaign-popup-text p + p {
    margin-top: 6px;
}
.campaign-popup-content .campaign-popup-list-title {
    font-family: 'Lato';
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a7c53;
    margin: 0 0 12px;
}
.campaign-popup-list ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.campaign-popup-list li {
    position: relative;
    padding-left: 24px;
    color: #32323b;
}
.campaign-popup-list li::before {
    content: '';
    position: absolute;
    top: .7em;
    left: 0;
    width: 12px;
    height: 1px;
    background: #bda589;
}
/* Cormorant ships one weight, so the keyword is set in italic instead of a faux bold */
.campaign-popup-list strong {
    font-weight: normal;
    font-style: italic;
    color: #000;
}
.campaign-popup-outro {
    font-size: 18px;
    color: #32323b;
}
.campaign-popup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: auto;
    padding-top: 10px;
}
.campaign-popup-actions .btn {
    padding: 15px 28px;
    white-space: normal;
    text-align: center;
}

/* English and Russian copy runs longer, so the desktop type is smaller */
@media all and (min-width: 768px) {
    .campaign-popup:is(:lang(en), :lang(ru)) .campaign-popup-content {
        gap: 14px;
        padding: 52px 40px 36px;
        font-size: 17px;
    }
    .campaign-popup:is(:lang(en), :lang(ru)) .campaign-popup-title {
        font-size: 24px;
    }
    .campaign-popup:is(:lang(en), :lang(ru)) .campaign-popup-list ul {
        gap: 4px;
    }
    .campaign-popup:is(:lang(en), :lang(ru)) .campaign-popup-outro {
        font-size: 16px;
    }
    /* Tighter buttons so the longer Russian labels still sit side by side */
    .campaign-popup:is(:lang(en), :lang(ru)) .campaign-popup-actions {
        column-gap: 12px;
    }
    .campaign-popup:is(:lang(en), :lang(ru)) .campaign-popup-actions .btn {
        padding-inline: 22px;
    }
}

@media all and (max-width: 767px) {
    .campaign-popup {
        padding: 16px;
    }
    .campaign-popup-dialog {
        display: flex;
        flex-direction: column;
        max-width: 420px;
    }
    /* Sticky so the close button stays reachable while the dialog scrolls */
    .campaign-popup-close {
        position: sticky;
        top: 10px;
        right: auto;
        flex: none;
        align-self: flex-end;
        margin: 10px 10px -54px 0;
    }
    .campaign-popup-visual {
        flex: none;
        min-height: 0;
        aspect-ratio: 3 / 2;
    }
    .campaign-popup-content {
        gap: 14px;
        max-height: none;
        overflow-y: visible;
        /* Extra bottom space so the last line scrolls clear of the CookieYes badge (bottom left, 60px tall) */
        padding: 24px 20px 64px;
        font-size: 18px;
    }
    .campaign-popup-title {
        padding-right: 0;
        font-size: 24px;
    }
    .campaign-popup-outro {
        font-size: 16px;
    }
}

/* Stack the buttons when they would not fit on one row */
@container popup-content (max-width: 330px) {
    .campaign-popup-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Campaign popup */
