.ktv-berroja-popup[hidden] {
    display: none !important;
}

.ktv-berroja-popup {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 32px);
    font-family: inherit;
}

.ktv-berroja-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(12, 22, 20, 0.72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    cursor: default;
}

.ktv-berroja-popup__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    width: min(100%, 980px);
    max-height: min(86vh, 680px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 26px;
    background: #f4f0e7;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
    color: #17211d;
}

.ktv-berroja-popup__visual {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #263b32;
}

.ktv-berroja-popup__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% center;
    transform: scale(1.001);
}

.ktv-berroja-popup__visual-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 18, 15, 0.05) 45%, rgba(9, 18, 15, 0.55) 100%),
        linear-gradient(90deg, rgba(9, 18, 15, 0.03), rgba(9, 18, 15, 0.12));
    pointer-events: none;
}

.ktv-berroja-popup__place {
    position: absolute;
    left: 28px;
    bottom: 24px;
    z-index: 2;
    color: #fffdf7;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.ktv-berroja-popup__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 5vw, 66px) clamp(34px, 4.6vw, 58px);
    background: #f4f0e7;
}

.ktv-berroja-popup__eyebrow {
    margin: 0 38px 20px 0;
    color: #5f725c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.4;
}

.ktv-berroja-popup__dialog h2 {
    margin: 0;
    color: #1c2b24;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.96;
}

.ktv-berroja-popup__origin {
    margin-top: 15px;
    color: #57645d;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.ktv-berroja-popup__rule {
    display: block;
    width: 54px;
    height: 1px;
    margin: 25px 0 22px;
    background: #819177;
}

.ktv-berroja-popup__copy {
    color: #3c4943;
    font-size: 15px;
    line-height: 1.62;
}

.ktv-berroja-popup__copy p {
    margin: 0;
}

.ktv-berroja-popup__copy p + p {
    margin-top: 10px;
}

.ktv-berroja-popup__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.ktv-berroja-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 999px;
    padding: 13px 22px;
    background: #25483a;
    color: #fffdf7 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ktv-berroja-popup__cta:hover {
    background: #183b2e;
    box-shadow: 0 10px 24px rgba(27, 57, 45, 0.18);
    transform: translateY(-1px);
}

.ktv-berroja-popup__cta span {
    font-size: 17px;
    font-weight: 400;
    line-height: 0;
}

.ktv-berroja-popup__secondary {
    color: #405149 !important;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-decoration: underline !important;
    text-decoration-color: rgba(64, 81, 73, 0.35) !important;
    text-underline-offset: 5px;
}

.ktv-berroja-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(33, 57, 48, 0.16);
    border-radius: 50%;
    background: rgba(250, 247, 240, 0.9);
    color: #22372e;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.ktv-berroja-popup__close span {
    transform: translateY(-1px);
}

.ktv-berroja-popup__close:hover {
    background: #ffffff;
}

.ktv-berroja-popup__close:focus-visible,
.ktv-berroja-popup__cta:focus-visible,
.ktv-berroja-popup__secondary:focus-visible {
    outline: 3px solid #9cac8e;
    outline-offset: 4px;
}

html.ktv-berroja-popup-open,
html.ktv-berroja-popup-open body {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: no-preference) {
    .ktv-berroja-popup__dialog {
        animation: ktv-berroja-dialog-in 520ms cubic-bezier(.2,.72,.2,1) both;
    }

    .ktv-berroja-popup__image {
        animation: ktv-berroja-image-drift 10s ease-out both;
    }

    .ktv-berroja-popup__eyebrow,
    .ktv-berroja-popup__dialog h2,
    .ktv-berroja-popup__origin,
    .ktv-berroja-popup__rule,
    .ktv-berroja-popup__copy,
    .ktv-berroja-popup__actions {
        animation: ktv-berroja-copy-in 520ms ease both;
    }

    .ktv-berroja-popup__dialog h2 { animation-delay: 80ms; }
    .ktv-berroja-popup__origin { animation-delay: 120ms; }
    .ktv-berroja-popup__rule { animation-delay: 150ms; }
    .ktv-berroja-popup__copy { animation-delay: 180ms; }
    .ktv-berroja-popup__actions { animation-delay: 230ms; }

    @keyframes ktv-berroja-dialog-in {
        from { opacity: 0; transform: translateY(14px) scale(.985); }
        to { opacity: 1; transform: none; }
    }

    @keyframes ktv-berroja-image-drift {
        from { transform: scale(1.001); }
        to { transform: scale(1.025); }
    }

    @keyframes ktv-berroja-copy-in {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: none; }
    }
}

@media (max-width: 780px) {
    .ktv-berroja-popup {
        align-items: center;
        padding: 12px;
    }

    .ktv-berroja-popup__dialog {
        grid-template-columns: 1fr;
        width: min(100%, 520px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        border-radius: 20px;
    }

    .ktv-berroja-popup__visual {
        min-height: 0;
        height: clamp(205px, 34vh, 280px);
    }

    .ktv-berroja-popup__image {
        object-position: 54% center;
    }

    .ktv-berroja-popup__place {
        left: 20px;
        bottom: 17px;
        font-size: 9px;
    }

    .ktv-berroja-popup__content {
        padding: 30px 24px 28px;
    }

    .ktv-berroja-popup__eyebrow {
        margin-bottom: 13px;
        font-size: 9px;
    }

    .ktv-berroja-popup__dialog h2 {
        font-size: clamp(38px, 11vw, 50px);
    }

    .ktv-berroja-popup__origin {
        margin-top: 10px;
        font-size: 12px;
    }

    .ktv-berroja-popup__rule {
        margin: 18px 0 16px;
    }

    .ktv-berroja-popup__copy {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .ktv-berroja-popup__actions {
        margin-top: 22px;
    }

    .ktv-berroja-popup__cta {
        width: 100%;
        padding-inline: 16px;
        font-size: 11px;
    }

    .ktv-berroja-popup__close {
        top: 13px;
        right: 13px;
        width: 36px;
        height: 36px;
        border-color: rgba(255,255,255,.35);
        background: rgba(20, 38, 31, 0.72);
        color: #ffffff;
    }
}

@media (max-height: 680px) and (min-width: 781px) {
    .ktv-berroja-popup__dialog {
        max-height: 92vh;
    }

    .ktv-berroja-popup__visual {
        min-height: 500px;
    }

    .ktv-berroja-popup__content {
        padding-top: 34px;
        padding-bottom: 34px;
    }
}

/* v0.16.1 — mobile-specific Berroja hero composition. */
.ktv-berroja-popup__image--mobile,
.ktv-berroja-popup__mobile-brand {
    display: none;
}

@media (max-width: 780px) {
    .ktv-berroja-popup__visual {
        height: clamp(245px, 36vh, 305px);
        background: #d8ddd7;
    }

    .ktv-berroja-popup__image--desktop {
        display: none;
    }

    .ktv-berroja-popup__image--mobile {
        display: block;
        object-fit: cover;
        object-position: 40% center;
        filter: saturate(1.08) contrast(1.03) brightness(.94);
    }

    .ktv-berroja-popup__visual-shade {
        background:
            linear-gradient(180deg, rgba(245, 241, 231, .04) 0%, rgba(15, 28, 23, .03) 56%, rgba(10, 22, 18, .48) 100%),
            linear-gradient(90deg, rgba(15, 27, 23, .05), rgba(15, 27, 23, .02));
    }

    .ktv-berroja-popup__mobile-brand {
        position: absolute;
        top: clamp(47px, 8.7vh, 70px);
        left: 50%;
        z-index: 3;
        display: flex;
        width: min(88%, 420px);
        transform: translateX(-50%);
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: #16251f;
        text-shadow: 0 1px 10px rgba(255, 255, 255, .38);
        pointer-events: none;
    }

    .ktv-berroja-popup__mobile-title {
        width: 100%;
        font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
        font-size: clamp(25px, 7.1vw, 33px);
        font-weight: 500;
        letter-spacing: .105em;
        line-height: 1;
        white-space: nowrap;
    }

    .ktv-berroja-popup__mobile-origin {
        margin-top: 8px;
        font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
        font-size: clamp(13px, 3.65vw, 17px);
        font-style: italic;
        font-weight: 600;
        letter-spacing: .035em;
        line-height: 1.15;
        white-space: nowrap;
    }

    .ktv-berroja-popup__mobile-rule {
        width: 47px;
        height: 2px;
        margin: 13px 0 11px;
        background: rgba(157, 130, 66, .85);
    }

    .ktv-berroja-popup__mobile-kantauri {
        font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
        font-size: clamp(12px, 3.35vw, 16px);
        font-weight: 500;
        letter-spacing: .14em;
        line-height: 1.1;
        white-space: nowrap;
    }

    .ktv-berroja-popup__mobile-kantauri strong {
        font-style: normal;
        font-weight: 700;
    }

    .ktv-berroja-popup__mobile-kantauri em {
        font-style: italic;
        font-weight: 600;
        letter-spacing: .085em;
    }

    .ktv-berroja-popup__place {
        left: 20px;
        bottom: 16px;
        font-size: 10px;
        letter-spacing: .16em;
    }

    .ktv-berroja-popup__close {
        z-index: 6;
    }
}

@media (max-width: 390px) {
    .ktv-berroja-popup__mobile-brand {
        width: 91%;
    }

    .ktv-berroja-popup__mobile-title {
        font-size: clamp(23px, 6.8vw, 28px);
        letter-spacing: .085em;
    }

    .ktv-berroja-popup__mobile-origin {
        font-size: clamp(12.5px, 3.45vw, 14px);
        letter-spacing: .02em;
    }

    .ktv-berroja-popup__mobile-kantauri {
        font-size: clamp(11.5px, 3.2vw, 13px);
    }
}
