/* =========================================================
   SAVERBIZ COUPON POPUP COMPLETE CSS
========================================================= */


/* =========================================================
   POPUP OVERLAY
========================================================= */

.coupon-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;

    width: 100%;
    height: 100%;

    display: none;
    align-items: flex-start;
    justify-content: center;

    padding: 24px 16px;

    background: rgba(17, 24, 39, 0.76);

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    box-sizing: border-box;
}

.coupon-popup.active {
    display: flex !important;
}

body.coupon-popup-open {
    overflow: hidden !important;
}


/* =========================================================
   POPUP MAIN WRAPPER
========================================================= */

.coupon-popup .dp-popup-box {
    position: relative;

    width: min(720px, 100%);
    max-width: 100%;

    display: grid;
    gap: 14px;

    margin: auto 0;

    background: transparent;

    border: 0;

    box-shadow: none;

    box-sizing: border-box;
}


/* =========================================================
   POPUP CLOSE BUTTON
========================================================= */

.coupon-popup .dp-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: var(--secondary, #0dad9d);
    color: var(--white, #ffffff);

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;

    font-family: inherit;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.coupon-popup .dp-popup-close:hover {
    background: var(--secondary-dark, #079487);
    transform: rotate(4deg);
}

.coupon-popup .dp-popup-close:focus-visible {
    outline: 3px solid rgba(13, 173, 157, 0.28);
    outline-offset: 3px;
}


/* =========================================================
   POPUP TOP SECTION
========================================================= */

.coupon-popup .dp-popup-top {
    width: 100%;

    padding: 34px 42px 32px;

    text-align: center;

    background: linear-gradient(
        135deg,
        var(--white, #ffffff) 0%,
        var(--primary-soft, #f3efff) 100%
    );

    border: 1px solid var(--border, #e5e7eb);
    border-radius: 24px;

    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);

    box-sizing: border-box;
}


/* =========================================================
   STORE LOGO
========================================================= */

.coupon-popup .dp-popup-logo {
    width: 180px;
    height: 86px;

    display: block;

    margin: 0 auto 20px;
    padding: 14px;

    object-fit: contain;
    object-position: center;

    background: var(--white, #ffffff);

    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;

    box-sizing: border-box;
}


/* =========================================================
   POPUP HEADING
========================================================= */

.coupon-popup .dp-popup-top h2 {
    margin: 0 35px 12px;

    color: var(--text, #111827);

    font-size: 28px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -0.3px;

    overflow-wrap: anywhere;
}


/* =========================================================
   USED COUNT / EXPIRY
========================================================= */

.coupon-popup .dp-popup-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 0 18px;

    color: var(--text-light, #475467);

    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.coupon-popup .dp-popup-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 14px;

    background: var(--primary-soft, #f3efff);
    color: var(--primary, #5933d8);

    border-radius: 999px;

    white-space: nowrap;
}


/* =========================================================
   COUPON CODE ROW
========================================================= */

.coupon-popup .dp-code-row {
    width: 100%;
    max-width: 560px;

    margin: 0 auto 18px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;

    background: var(--white, #ffffff);

    border: 2px solid var(--primary, #5933d8);
    border-radius: 18px;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   COUPON CODE TEXT
========================================================= */

.coupon-popup .dp-code-text {
    min-width: 0;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--white, #ffffff);
    color: var(--text, #111827);

    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1px;

    word-break: break-word;
    overflow-wrap: anywhere;

    box-sizing: border-box;
}


/* =========================================================
   COPY BUTTON
========================================================= */

.coupon-popup .dp-copy-btn {
    min-height: 62px;

    padding: 18px 16px;

    background: var(--secondary, #0dad9d);
    color: var(--white, #ffffff);

    border: 0;

    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.coupon-popup .dp-copy-btn:hover {
    background: var(--secondary-dark, #079487);
}

.coupon-popup .dp-copy-btn:focus-visible {
    outline: 3px solid rgba(13, 173, 157, 0.28);
    outline-offset: -4px;
}


/* =========================================================
   CONTINUE TO STORE LINK
========================================================= */

.coupon-popup .dp-continue-link {
    display: inline-block;

    margin: 0 0 10px;

    color: var(--primary, #5933d8);

    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.coupon-popup .dp-continue-link:hover {
    color: var(--primary-dark, #4725c9);
}


/* =========================================================
   DEAL STORE BUTTON
========================================================= */

.coupon-popup .dp-store-big-btn {
    min-width: 280px;
    max-width: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 16px 0;
    padding: 18px 28px;

    background: var(--secondary, #0dad9d);
    color: var(--white, #ffffff);

    border-radius: 16px;

    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;

    text-align: center;
    text-decoration: none;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.coupon-popup .dp-store-big-btn:hover {
    background: var(--secondary-dark, #079487);
    color: var(--white, #ffffff);

    transform: translateY(-1px);
}

.coupon-popup .dp-store-big-btn:focus-visible {
    outline: 3px solid rgba(13, 173, 157, 0.28);
    outline-offset: 3px;
}


/* =========================================================
   POPUP DESCRIPTION
========================================================= */

.coupon-popup .dp-popup-desc {
    max-width: 520px;

    margin: 0 auto;

    color: var(--text-light, #475467);

    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   POPUP NEWSLETTER
========================================================= */

.coupon-popup .dp-newsletter {
    position: relative;

    width: 100%;

    padding: 40px 38px 42px;

    text-align: center;

    background: linear-gradient(
        135deg,
        var(--primary-soft, #f3efff) 0%,
        var(--secondary-soft, #e9fffc) 100%
    );

    border: 1px solid rgba(89, 51, 216, 0.10);
    border-radius: 24px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);

    box-sizing: border-box;
}


/* =========================================================
   NEWSLETTER HEADING
========================================================= */

.coupon-popup .dp-newsletter h3 {
    margin: 0 0 6px;

    color: var(--text, #111827);

    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
}


/* =========================================================
   NEWSLETTER PARAGRAPH
========================================================= */

.coupon-popup .dp-newsletter p {
    margin: 0 0 22px;

    color: var(--text, #111827);

    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
}


/* =========================================================
   NEWSLETTER FORM
========================================================= */

.coupon-popup .dp-newsletter-form {
    position: relative;

    width: 100%;
    max-width: 520px;

    margin: 0 auto 18px;
    padding: 6px;

    display: flex;
    align-items: center;

    background: var(--white, #ffffff);

    border: 2px solid rgba(89, 51, 216, 0.22);
    border-radius: 999px;

    box-sizing: border-box;
}


/* =========================================================
   NEWSLETTER INPUT
========================================================= */

.coupon-popup .dp-newsletter-form input {
    width: 100%;
    min-width: 0;
    height: 48px;

    padding: 0 16px;

    background: transparent;
    color: var(--text, #111827);

    border: 0;
    outline: 0;

    font-family: inherit;
    font-size: 15px;

    box-sizing: border-box;
}

.coupon-popup .dp-newsletter-form input::placeholder {
    color: var(--text-light, #667085);
}


/* =========================================================
   NEWSLETTER SUBMIT BUTTON
========================================================= */

.coupon-popup .dp-newsletter-form button {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: var(--primary, #5933d8);
    color: var(--white, #ffffff);

    border: 0;
    border-radius: 50%;

    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.coupon-popup .dp-newsletter-form button:hover {
    background: var(--primary-dark, #4725c9);
    transform: scale(1.03);
}

.coupon-popup .dp-newsletter-form button:focus-visible {
    outline: 3px solid rgba(89, 51, 216, 0.24);
    outline-offset: 2px;
}


/* =========================================================
   FORM MESSAGE
========================================================= */

.coupon-popup .dp-form-message {
    width: 100%;
    max-width: 520px;

    margin: 0 auto 12px;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.coupon-popup .dp-success-msg {
    color: #039855;
}

.coupon-popup .dp-error-msg {
    color: #d92d20;
}


/* =========================================================
   NEWSLETTER DISCLAIMER
========================================================= */

.coupon-popup .dp-newsletter small {
    display: block;

    width: 100%;
    max-width: 560px;

    margin: 0 auto;

    color: var(--text-light, #475467);

    font-size: 14px;
    line-height: 1.6;

    text-align: left;
}


/* =========================================================
   POPUP TABLET RESPONSIVE
========================================================= */

@media screen and (max-width: 768px) {

    .coupon-popup {
        padding: 18px 14px;
    }

    .coupon-popup .dp-popup-box {
        width: min(560px, 100%);
        gap: 12px;

        margin: auto 0;
    }

    .coupon-popup .dp-popup-top {
        padding: 30px 22px 28px;

        border-radius: 22px;
    }

    .coupon-popup .dp-popup-logo {
        width: 165px;
        height: 80px;

        margin-bottom: 18px;
    }

    .coupon-popup .dp-popup-top h2 {
        font-size: 24px;
    }

    .coupon-popup .dp-code-row {
        grid-template-columns: minmax(0, 1fr);

        max-width: 100%;
    }

    .coupon-popup .dp-copy-btn {
        min-height: 54px;

        padding: 15px;
    }

    .coupon-popup .dp-newsletter {
        padding: 34px 24px 36px;

        border-radius: 22px;
    }

    .coupon-popup .dp-newsletter h3 {
        font-size: 24px;
    }

    .coupon-popup .dp-newsletter p {
        font-size: 18px;
    }
}


/* =========================================================
   POPUP MOBILE RESPONSIVE
========================================================= */

@media screen and (max-width: 640px) {

    .coupon-popup {
        align-items: flex-start;

        padding: 12px;
    }

    .coupon-popup .dp-popup-box {
        width: 100%;

        gap: 12px;

        margin: auto 0;
    }

    .coupon-popup .dp-popup-close {
        top: 10px;
        right: 10px;

        width: 36px;
        height: 36px;

        font-size: 24px;
    }

    .coupon-popup .dp-popup-top {
        padding: 22px 18px 24px;

        border-radius: 20px;
    }

    .coupon-popup .dp-popup-logo {
        width: 150px;
        height: 70px;

        margin-bottom: 18px;
        padding: 10px;

        border-radius: 12px;
    }

    .coupon-popup .dp-popup-top h2 {
        margin-right: 24px;
        margin-left: 24px;

        font-size: 21px;
        line-height: 1.3;
    }

    .coupon-popup .dp-popup-meta {
        gap: 8px;

        margin-bottom: 16px;

        font-size: 13px;
    }

    .coupon-popup .dp-popup-meta span {
        padding: 6px 11px;
    }

    .coupon-popup .dp-code-row {
        grid-template-columns: minmax(0, 1fr);

        border-radius: 14px;
    }

    .coupon-popup .dp-code-text {
        padding: 16px 14px;

        font-size: 22px;

        text-align: center;
    }

    .coupon-popup .dp-copy-btn {
        min-height: 50px;

        padding: 14px;

        font-size: 17px;
    }

    .coupon-popup .dp-continue-link {
        font-size: 15px;
    }

    .coupon-popup .dp-store-big-btn {
        width: 100%;
        min-width: 0;

        padding: 16px 18px;

        border-radius: 14px;

        font-size: 17px;
    }

    .coupon-popup .dp-popup-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .coupon-popup .dp-newsletter {
        padding: 30px 18px;

        border-radius: 20px;
    }

    .coupon-popup .dp-newsletter h3 {
        font-size: 24px;
    }

    .coupon-popup .dp-newsletter p {
        margin-bottom: 20px;

        font-size: 17px;
    }

    .coupon-popup .dp-newsletter-form {
        padding: 5px;
    }

    .coupon-popup .dp-newsletter-form input {
        height: 44px;

        padding: 0 12px;

        font-size: 14px;
    }

    .coupon-popup .dp-newsletter-form button {
        flex-basis: 42px;

        width: 42px;
        height: 42px;

        font-size: 18px;
    }

    .coupon-popup .dp-newsletter small {
        font-size: 13px;

        text-align: center;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media screen and (max-width: 390px) {

    .coupon-popup {
        padding: 8px;
    }

    .coupon-popup .dp-popup-box {
        gap: 9px;
    }

    .coupon-popup .dp-popup-top {
        padding: 20px 14px 22px;
    }

    .coupon-popup .dp-popup-logo {
        width: 135px;
        height: 64px;
    }

    .coupon-popup .dp-popup-top h2 {
        padding-right: 20px;
        padding-left: 20px;

        font-size: 19px;
    }

    .coupon-popup .dp-popup-meta {
        font-size: 12px;
    }

    .coupon-popup .dp-code-text {
        font-size: 19px;
    }

    .coupon-popup .dp-newsletter {
        padding: 26px 14px;
    }

    .coupon-popup .dp-newsletter h3 {
        font-size: 21px;
    }

    .coupon-popup .dp-newsletter p {
        font-size: 15px;
    }

    .coupon-popup .dp-newsletter-form input {
        font-size: 13px;
    }

    .coupon-popup .dp-newsletter small {
        font-size: 12px;
    }
}


/* =========================================================
   COUPON POPUP DESIGN END — FULL RESPONSIVE
========================================================= */