/* WebVue Newsletter Discount Popup */
.wvn-overlay,
.wvn-overlay * {
    box-sizing: border-box;
}

.wvn-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.wvn-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.wvn-popup {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
    transform: translateY(22px) scale(.97);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.wvn-overlay.is-visible .wvn-popup {
    transform: translateY(0) scale(1);
}

.wvn-content {
    padding: 52px 48px 46px;
    text-align: center;
}

.wvn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f7f5;
    color: #008c61;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.wvn-close:hover {
    transform: rotate(8deg);
    background: #e3f2ed;
}

.wvn-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #edf8f4;
    color: #008c61;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.wvn-content h2 {
    margin: 0;
    color: #151515;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.wvn-intro {
    max-width: 450px;
    margin: 18px auto 26px;
    color: #666;
    font-size: 16px;
    line-height: 1.65;
}

.wvn-form {
    display: grid;
    gap: 14px;
    text-align: left;
}

.wvn-field label {
    display: block;
    margin: 0 0 7px;
    color: #252525;
    font-size: 13px;
    font-weight: 600;
}

.wvn-field input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid #dfe6e3;
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wvn-field input:focus {
    border-color: #008c61;
    box-shadow: 0 0 0 4px rgba(0, 140, 97, .12);
}

.wvn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    border: 0;
    border-radius: 30px;
    background: #008c61;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 140, 97, .24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wvn-submit:hover {
    transform: translateY(-2px);
    background: #007a54;
    box-shadow: 0 16px 32px rgba(0, 140, 97, .3);
}

.wvn-submit:disabled {
    cursor: wait;
    opacity: .82;
    transform: none;
}

.wvn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wvn-spin .7s linear infinite;
}

.wvn-submit.is-loading .wvn-submit-text {
    display: none;
}

.wvn-submit.is-loading .wvn-spinner {
    display: block;
}

.wvn-message {
    min-height: 20px;
    color: #b42318;
    font-size: 13px;
    text-align: center;
}

.wvn-success {
    text-align: center;
}

.wvn-success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #008c61;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.wvn-success h3 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 30px;
    line-height: 1.15;
}

.wvn-success p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.wvn-coupon-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 16px;
    padding: 10px;
    border: 2px dashed #008c61;
    border-radius: 18px;
    background: #f0faf6;
}

.wvn-coupon {
    flex: 1;
    overflow-wrap: anywhere;
    color: #008c61;
    font-size: 20px;
    letter-spacing: .08em;
}

.wvn-copy {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 20px;
    background: #008c61;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wvn-success-note {
    font-size: 12px !important;
}

body.wvn-popup-open {
    overflow: hidden;
}

@keyframes wvn-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .wvn-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .wvn-popup {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 30px;
    }

    .wvn-content {
        padding: 48px 22px 28px;
    }

    .wvn-content h2 {
        font-size: 34px;
    }

    .wvn-intro {
        margin-top: 14px;
        margin-bottom: 22px;
        font-size: 15px;
    }

    .wvn-field input {
        height: 52px;
    }

    .wvn-coupon-wrap {
        align-items: stretch;
        flex-direction: column;
    }

    .wvn-copy {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wvn-overlay,
    .wvn-popup,
    .wvn-close,
    .wvn-submit {
        transition: none !important;
    }

    .wvn-spinner {
        animation-duration: 1.2s;
    }
}
