.esop-overlay,
.esop-overlay * {
    box-sizing: border-box;
}

html.esop-lock-scroll,
html.esop-lock-scroll body {
    overflow: hidden !important;
}

.esop-overlay {
    --esop-bg: #F7FBFF;
    --esop-text: #172033;
    --esop-muted: #667085;
    --esop-border: rgba(27, 33, 94, 0.10);
    --esop-border-blue: rgba(59, 114, 228, 0.16);
    --esop-card-shadow: 0 28px 90px rgba(27, 33, 94, 0.18);
    --esop-soft-shadow: 0 16px 38px rgba(59, 114, 228, 0.18);
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 2.4vw, 24px);
    background:
        radial-gradient(circle at 18% 18%, rgba(191, 219, 254, 0.20), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(59, 114, 228, 0.16), transparent 34%),
        rgba(12, 17, 39, 0.58);
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    font-family: Inter, "Cairo", "Tajawal", Arial, sans-serif;
}

.esop-overlay[dir="rtl"] {
    direction: rtl;
}

.esop-overlay[dir="ltr"] {
    direction: ltr;
}

.esop-overlay.esop-visible {
    display: flex;
    animation: esopFadeIn 220ms ease both;
}

.esop-popup {
    width: min(var(--esop-popup-width, 920px), 100%);
    max-height: min(92dvh, calc(100vh - 32px));
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--esop-radius, 28px);
    box-shadow: var(--esop-card-shadow);
    transform: translateY(10px) scale(0.985);
    animation: esopPopupIn 260ms ease 60ms both;
    isolation: isolate;
}

.esop-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 0%, rgba(191, 219, 254, 0.35), transparent 26%),
        radial-gradient(circle at 100% 100%, rgba(59, 114, 228, 0.10), transparent 24%);
    z-index: -1;
}

.esop-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 12;
    width: 42px;
    height: 42px;
    border: 1px solid var(--esop-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--esop-dark, #1B215E);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(27, 33, 94, 0.10);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.esop-close:hover,
.esop-close:focus-visible {
    transform: rotate(90deg) scale(1.03);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(27, 33, 94, 0.15);
    outline: none;
}

.esop-slider {
    position: relative;
    overflow: hidden;
}

.esop-slides {
    position: relative;
    min-height: 476px;
}

.esop-slide {
    width: 100%;
    min-height: 476px;
    display: grid;
    grid-template-columns: minmax(300px, 0.96fr) minmax(0, 1.04fr);
    grid-template-areas: "media content";
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-22px);
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.esop-overlay[dir="rtl"] .esop-slide {
    grid-template-areas: "content media";
    transform: translateX(22px);
}

.esop-slide.esop-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.esop-overlay.esop-image-top .esop-slide,
.esop-overlay.esop-image-top[dir="rtl"] .esop-slide {
    grid-template-columns: 1fr;
    grid-template-areas:
        "media"
        "content";
}

.esop-media {
    grid-area: media;
    min-height: 476px;
    background:
        linear-gradient(135deg, rgba(191, 219, 254, 0.92), rgba(247, 251, 255, 0.96));
    overflow: hidden;
    position: relative;
}

.esop-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0) 46%, rgba(255,255,255,.18) 100%);
    pointer-events: none;
}

.esop-media img {
    width: 100%;
    height: 100%;
    min-height: 476px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.esop-overlay.esop-image-top .esop-media,
.esop-overlay.esop-image-top .esop-media img {
    min-height: 265px;
    max-height: 330px;
}

.esop-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.esop-fallback-mark {
    width: 154px;
    height: 154px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 24% 16%, rgba(255,255,255,.22), transparent 26%),
        linear-gradient(135deg, var(--esop-dark, #1B215E), var(--esop-brand, #3B72E4));
    font-weight: 950;
    letter-spacing: 0.4px;
    box-shadow: 0 22px 50px rgba(59, 114, 228, 0.26);
}

.esop-content {
    grid-area: content;
    padding: clamp(30px, 4.2vw, 46px);
    color: var(--esop-text);
    overflow-y: auto;
    max-height: min(92dvh, calc(100vh - 48px));
    text-align: start;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 114, 228, 0.34) transparent;
}

.esop-content::-webkit-scrollbar {
    width: 8px;
}

.esop-content::-webkit-scrollbar-thumb {
    background: rgba(59, 114, 228, 0.26);
    border-radius: 999px;
}

.esop-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.esop-badge,
.esop-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 114, 228, 0.12);
    background: rgba(191, 219, 254, 0.42);
    color: var(--esop-dark, #1B215E);
    font-size: 13px;
    font-weight: 900;
}

.esop-counter {
    background: rgba(27, 33, 94, 0.055);
    color: var(--esop-muted);
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.esop-content h2 {
    margin: 0 0 12px;
    color: var(--esop-dark, #1B215E);
    font-size: clamp(25px, 3.2vw, 38px);
    line-height: 1.22;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.esop-subtitle {
    margin: 0 0 15px;
    color: #475467;
    font-size: 16px;
    line-height: 1.82;
    font-weight: 600;
}

.esop-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
    flex-wrap: wrap;
}

.esop-price {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--esop-brand, #3B72E4), var(--esop-dark, #1B215E));
    color: #fff;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(59, 114, 228, 0.20);
}

.esop-old-price {
    color: #8a94a6;
    text-decoration: line-through;
    font-size: 15px;
    font-weight: 800;
}

.esop-description {
    margin: 0 0 18px;
    color: #344054;
    font-size: 15.5px;
    line-height: 1.9;
}

.esop-description p {
    margin-top: 0;
}

.esop-description p:last-child {
    margin-bottom: 0;
}

.esop-countdown-wrap {
    margin: 22px 0;
    padding: 16px;
    border: 1px solid var(--esop-border-blue);
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.78);
}

.esop-countdown-label {
    display: block;
    margin-bottom: 11px;
    color: var(--esop-muted);
    font-size: 13px;
    font-weight: 850;
}

.esop-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    direction: ltr;
}

.esop-countdown div {
    min-width: 0;
    padding: 12px 6px 10px;
    border: 1px solid rgba(59, 114, 228, 0.12);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 8px 18px rgba(27, 33, 94, 0.045);
}

.esop-countdown strong {
    display: block;
    color: var(--esop-dark, #1B215E);
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.esop-countdown span {
    display: block;
    margin-top: 6px;
    color: var(--esop-muted);
    font-size: 11px;
    font-weight: 800;
}

.esop-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
}

.esop-cta,
.esop-booking-inline .egb-popup-open.esop-smart-booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--esop-brand, #3B72E4), var(--esop-dark, #1B215E));
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
    box-shadow: var(--esop-soft-shadow);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.esop-cta:hover,
.esop-cta:focus-visible,
.esop-booking-inline .egb-popup-open.esop-smart-booking-button:hover,
.esop-booking-inline .egb-popup-open.esop-smart-booking-button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 20px 42px rgba(59, 114, 228, 0.24);
    outline: none;
}

.esop-booking-inline,
.esop-booking-inline .egb-popup-shortcode,
.esop-booking-inline .egb-popup-open {
    width: 100%;
}

.esop-booking-inline {
    display: block;
}

.esop-booking-inline .egb-popup-shortcode {
    display: block;
    max-width: 100%;
    font-family: Inter, "Cairo", "Tajawal", Arial, sans-serif;
}

.esop-dont-show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 30px;
    padding: 0 8px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--esop-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    box-shadow: none;
    transition: color 180ms ease;
}

.esop-dont-show:hover,
.esop-dont-show:focus-visible {
    color: var(--esop-dark, #1B215E);
    background: transparent;
    outline: none;
}

.esop-nav {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 42px;
    height: 42px;
    border: 1px solid var(--esop-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--esop-dark, #1B215E);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 12px 28px rgba(27, 33, 94, 0.12);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.esop-nav:hover,
.esop-nav:focus-visible {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 16px 34px rgba(27, 33, 94, 0.16);
    outline: none;
}

.esop-prev { inset-inline-start: 12px; }
.esop-next { inset-inline-end: 12px; }

.esop-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(27, 33, 94, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    direction: ltr;
}

.esop-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c9d7f7;
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.esop-dot.esop-active {
    width: 24px;
    background: var(--esop-brand, #3B72E4);
}

.esop-meta-row {
    display: none !important;
}

.esop-overlay .egb-modal,
.esop-overlay .egb-success-modal {
    z-index: 1000005;
    font-family: Inter, "Cairo", "Tajawal", Arial, sans-serif;
}

.esop-overlay .egb-modal-panel {
    max-height: 94dvh;
}

.esop-overlay .egb-modal .egb-wrap {
    box-shadow: none;
}

.esop-floating-trigger {
    position: fixed;
    bottom: 22px;
    z-index: 999990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    min-height: 48px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--esop-brand, #3B72E4), var(--esop-dark, #1B215E));
    color: #ffffff;
    font-family: Inter, "Cairo", "Tajawal", Arial, sans-serif;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(27, 33, 94, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(0.94);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.esop-floating-trigger[dir="rtl"] {
    right: 18px;
    left: auto;
}

.esop-floating-trigger[dir="ltr"] {
    left: 18px;
    right: auto;
}

.esop-floating-trigger.esop-trigger-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.esop-floating-trigger:hover,
.esop-floating-trigger:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 44px rgba(27, 33, 94, 0.34);
    outline: none;
}

.esop-floating-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.esop-floating-trigger-text {
    white-space: nowrap;
}

@keyframes esopFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes esopPopupIn {
    to { transform: translateY(0) scale(1); }
}

@media (max-width: 860px) {
    .esop-overlay {
        padding: 12px;
        align-items: center;
    }

    .esop-popup {
        width: min(460px, 100%);
        max-height: calc(100dvh - 24px);
        border-radius: min(var(--esop-radius, 28px), 24px);
    }

    .esop-slide,
    .esop-overlay[dir="rtl"] .esop-slide,
    .esop-overlay.esop-image-start .esop-slide,
    .esop-overlay.esop-image-start[dir="rtl"] .esop-slide {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "content";
        min-height: 0;
    }

    .esop-slides {
        min-height: 0;
    }

    .esop-media,
    .esop-media img {
        min-height: 210px;
        max-height: 245px;
    }

    .esop-content {
        padding: 26px 22px 28px;
        max-height: calc(100dvh - 270px);
    }

    .esop-topline {
        margin-bottom: 12px;
    }

    .esop-content h2 {
        font-size: 23px;
    }

    .esop-subtitle,
    .esop-description {
        font-size: 14px;
    }

    .esop-countdown-wrap {
        margin: 18px 0;
        padding: 12px;
        border-radius: 18px;
    }

    .esop-countdown {
        gap: 6px;
    }

    .esop-countdown div {
        padding: 9px 4px 8px;
        border-radius: 12px;
    }

    .esop-countdown strong {
        font-size: 18px;
    }

    .esop-countdown span {
        font-size: 10px;
    }

    .esop-cta,
    .esop-booking-inline .egb-popup-open.esop-smart-booking-button {
        min-height: 52px;
        border-radius: 16px;
        padding: 13px 16px;
        font-size: 15px;
    }

    .esop-nav {
        width: 38px;
        height: 38px;
        top: 118px;
    }

    .esop-dots {
        bottom: 14px;
    }

    .esop-actions {
        gap: 8px;
        margin-top: 16px;
    }

    .esop-dont-show {
        font-size: 11.5px;
    }

    .esop-overlay .egb-modal {
        padding: 8px;
        align-items: flex-end;
    }

    .esop-overlay .egb-modal-panel {
        width: 100%;
        max-height: 94dvh;
        border-radius: 24px 24px 0 0;
    }
}

@media (max-width: 430px) {
    .esop-popup {
        border-radius: 22px;
    }

    .esop-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .esop-price {
        font-size: 19px;
        min-height: 39px;
    }

    .esop-floating-trigger {
        bottom: 16px;
        min-width: 54px;
        width: 54px;
        height: 54px;
        min-height: 54px;
        padding: 0;
        gap: 0;
        border-radius: 999px;
    }

    .esop-floating-trigger[dir="rtl"] {
        right: 14px;
    }

    .esop-floating-trigger[dir="ltr"] {
        left: 14px;
    }

    .esop-floating-trigger-icon {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .esop-floating-trigger-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
