/* =============================================
   Exit Discount Popup
   Shown when closing the COD popup, closing the
   cart panel, or pressing back to leave the page.
   ============================================= */

.cl-exit-discount-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.cl-exit-discount-overlay.cl-exit-discount-open {
    display: flex;
}

.cl-exit-discount-box {
    background: #ffffff;
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: cl-exit-discount-pop 0.25s ease;
}

@keyframes cl-exit-discount-pop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Text styles are scoped under the overlay so global heading rules
   (h2 font-size, heading font family, letter-spacing, RTL h2 overrides)
   never leak into the compact popup layout. */
.cl-exit-discount-overlay .cl-exit-discount-headline {
    font-family: var(--main-font, inherit);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--secondary-color, #1a1a1a);
}

.cl-exit-discount-overlay .cl-exit-discount-subtext {
    font-size: 15px;
    color: var(--cl-text-light, #555);
    margin: 0 0 12px;
    line-height: 1.4;
}

.cl-exit-discount-overlay .cl-exit-discount-cta {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color, #1a1a1a);
    margin: 0 0 18px;
    line-height: 1.35;
}

.cl-exit-discount-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.cl-exit-discount-badge {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    padding: 10px;
    background: var(--cl-success, #16a34a);
    clip-path: polygon(
        50% 0%, 61% 10%, 75% 4%, 80% 18%, 94% 18%,
        93% 33%, 100% 43%, 89% 50%, 100% 57%,
        93% 67%, 94% 82%, 80% 82%, 75% 96%,
        61% 90%, 50% 100%, 39% 90%, 25% 96%,
        20% 82%, 6% 82%, 7% 67%, 0% 57%,
        11% 50%, 0% 43%, 7% 33%, 6% 18%,
        20% 18%, 25% 4%, 39% 10%
    );
}

.cl-exit-discount-accept,
.cl-exit-discount-decline {
    width: 100%;
    display: block;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cl-exit-discount-accept {
    background: var(--cl-success, #16a34a);
    color: #ffffff;
    border: none;
    margin-bottom: 10px;
}

.cl-exit-discount-accept:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.cl-exit-discount-decline {
    background: transparent;
    color: var(--secondary-color, #1a1a1a);
    border: 1px solid var(--cl-border, #d1d5db);
}

.cl-exit-discount-decline:hover {
    background: var(--cl-bg-light, #f9fafb);
}

/* RTL support */
body.rtl-mode .cl-exit-discount-box,
html[dir="rtl"] .cl-exit-discount-box {
    direction: rtl;
}
