.jora-offer-open {
    overflow: hidden;
}

.jora-offer-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.jora-offer-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jora-offer-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 30, .64);
}

.jora-offer-popup.has-blur .jora-offer-popup__backdrop {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.jora-offer-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 660px);
    max-height: 90vh;
    overflow: auto;
    border: 1px solid rgba(199, 166, 107, .68);
    border-radius: 26px;
    background: #fffdfa;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
    transform: translateY(18px) scale(.975);
    transition: transform .32s cubic-bezier(.2, .75, .2, 1);
    outline: none;
}

.jora-offer-popup.is-open .jora-offer-popup__dialog {
    transform: translateY(0) scale(1);
}

.jora-offer-popup__close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 4;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(22, 58, 42, .10);
    border-radius: 50%;
    background: rgba(255, 253, 250, .96);
    color: #163a2a;
    box-shadow: 0 8px 24px rgba(22, 58, 42, .12);
    cursor: pointer;
    font: 300 32px/1 Arial, sans-serif;
    transition: transform .2s ease, background .2s ease;
}

.jora-offer-popup__close:hover {
    transform: rotate(5deg) scale(1.06);
    background: #fff;
}

.jora-offer-popup__flyer-link {
    display: block;
}

.jora-offer-popup__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 25px 25px 0 0;
}

.jora-offer-popup__action {
    display: flex;
    justify-content: center;
    padding: 16px 20px 20px;
    background: #fffdfa;
}

.jora-offer-popup__action .button {
    min-width: 190px;
    text-align: center;
}

.jora-offer-bar {
    position: relative;
    z-index: 9990;
    background: #163a2a;
    color: #fffdfa;
    border-bottom: 1px solid rgba(199, 166, 107, .48);
}

.jora-offer-bar__inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 7px;
    padding-bottom: 7px;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.jora-offer-bar a {
    color: #e3d1aa;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.jora-offer-bar a:hover {
    color: #fffdfa;
}

@media (max-width: 700px) {
    .jora-offer-popup {
        padding: 14px;
    }

    .jora-offer-popup__dialog {
        width: min(94vw, 520px);
        max-height: 88vh;
        border-radius: 20px;
    }

    .jora-offer-popup__image {
        border-radius: 19px 19px 0 0;
    }

    .jora-offer-popup__close {
        top: 9px;
        right: 9px;
        width: 39px;
        height: 39px;
        font-size: 29px;
    }

    .jora-offer-bar__inner {
        gap: 9px;
        font-size: .69rem;
        line-height: 1.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jora-offer-popup,
    .jora-offer-popup__dialog,
    .jora-offer-popup__close {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Special Offer Popup — Fit Entire Flyer in Viewport (v4.4.6)
   -------------------------------------------------------------------------- */
.jora-offer-popup {
    padding: clamp(10px, 2.2vh, 22px) !important;
}
.jora-offer-popup__dialog {
    display: flex !important;
    width: min(92vw, 660px) !important;
    max-width: 92vw !important;
    max-height: calc(100dvh - 24px) !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
.jora-offer-popup__flyer-link {
    display: flex !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fffdfa;
}
.jora-offer-popup__image {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 112px) !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    border-radius: 25px 25px 0 0;
}
.jora-offer-popup__dialog > .jora-offer-popup__image {
    max-height: calc(100dvh - 64px) !important;
}
.jora-offer-popup__action {
    flex: 0 0 auto !important;
    padding: 12px 18px 15px !important;
}
.jora-offer-popup__action .button {
    min-width: 170px !important;
    min-height: 40px !important;
    padding: 10px 22px !important;
}
@media (max-height: 720px) {
    .jora-offer-popup__dialog {
        width: min(88vw, 580px) !important;
        max-height: calc(100dvh - 16px) !important;
    }
    .jora-offer-popup__image { max-height: calc(100dvh - 96px) !important; }
    .jora-offer-popup__dialog > .jora-offer-popup__image { max-height: calc(100dvh - 54px) !important; }
    .jora-offer-popup__action { padding: 8px 14px 10px !important; }
    .jora-offer-popup__action .button {
        min-height: 36px !important;
        padding: 8px 18px !important;
        font-size: .78rem !important;
    }
}
@media (max-width: 700px) {
    .jora-offer-popup { padding: 8px !important; }
    .jora-offer-popup__dialog {
        width: min(96vw, 520px) !important;
        max-width: 96vw !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 18px !important;
    }
    .jora-offer-popup__image {
        max-height: calc(100dvh - 100px) !important;
        border-radius: 17px 17px 0 0 !important;
    }
    .jora-offer-popup__dialog > .jora-offer-popup__image { max-height: calc(100dvh - 48px) !important; }
    .jora-offer-popup__close {
        top: 7px !important;
        right: 7px !important;
        width: 37px !important;
        height: 37px !important;
    }
}
