/* Seelenbalsam — Gift Voucher CTA widget */

.sb-voucher {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: clamp(520px, 52vw, 620px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #8f3553 !important;
    background-image: var(--sb-voucher-bg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: #fff;
    overflow: hidden;
    padding: clamp(96px, 10vw, 140px) var(--mx-gutter);
}

.sb-voucher--no-image {
    background:
        radial-gradient(120% 100% at 15% 95%, rgba(236, 153, 174, 0.28), transparent 48%),
        linear-gradient(135deg, #7e3549 0%, #9b4962 46%, #88304f 100%);
}

.sb-voucher::before {
    content: none !important;
}

.sb-voucher__overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.sb-voucher__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 920px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sb-voucher__heading {
    font-family: var(--mx-font-body, "Aileron", system-ui, sans-serif);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0 0 14px;
}

.sb-voucher__sub {
    font-family: 'Gelica', 'Tiempos Headline', 'Suisse Intl', "Aileron", Georgia, serif;
    font-weight: 400;
    font-size: clamp(38px, 4.6vw, 64px);
    line-height: 1.08;
    color: #fff;
    margin: 0;
    max-width: 760px;
    letter-spacing: 0;
}

.sb-voucher__divider {
    position: relative;
    display: block;
    width: 138px;
    height: 1px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 2px;
    margin: 26px 0 38px;
}

.sb-voucher__divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 0;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.sb-voucher__form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 690px);
    min-height: 70px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    padding: 9px 10px 9px 48px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 22px 55px rgba(70, 23, 38, 0.22);
    backdrop-filter: blur(18px);
}

.sb-voucher__email-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.sb-voucher__email {
    flex: 1;
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-family: var(--mx-font-body, system-ui, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    padding: 14px 0;
}

.sb-voucher__email::placeholder {
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
}

.sb-voucher__cta {
    appearance: none;
    border: 0;
    cursor: pointer;
    min-height: 52px;
    background: #fff;
    color: #6b2940;
    font-family: var(--mx-font-body, "Aileron", system-ui, sans-serif);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0;
    padding: 0 34px;
    border-radius: 999px;
    transition:
        transform var(--mx-dur-fast, 160ms) var(--mx-ease-out, ease);
    white-space: nowrap;
    box-shadow: none;
}

.sb-voucher__cta:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.sb-voucher__cta:active {
    transform: translateY(0);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .sb-voucher {
        min-height: auto !important;
        padding: 56px var(--mx-space-lg, 22px) !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .sb-voucher__heading {
        font-size: 14px !important;
        letter-spacing: 0.08em !important;
    }

    .sb-voucher__sub {
        font-size: clamp(28px, 8vw, 38px);
    }

    .sb-voucher__form {
        width: min(100%, 640px);
        min-height: auto;
        flex-direction: column;
        border-radius: 28px;
        padding: 18px;
        gap: 12px;
    }

    .sb-voucher__email-wrap {
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.10);
        box-sizing: border-box !important;
    }

    .sb-voucher__email {
        text-align: center;
    }

    .sb-voucher__cta {
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 8px 24px rgba(87, 38, 54, 0.24);
    }
}

/* ── Responsive padding fix ── */
@media (max-width: 1024px) {
    .sb-voucher { padding-left: 40px !important; padding-right: 40px !important; }
    .sb-voucher__inner { padding-inline: 0 !important; }
}
@media (max-width: 1024px) {
    .sb-voucher { padding-left: 20px !important; padding-right: 20px !important; }
    .sb-voucher__inner { padding-inline: 0 !important; }
}

/* ── Button overflow fix on mobile ── */
@media (max-width: 1024px) {
    .sb-voucher__cta {
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        white-space: normal !important;
        text-align: center !important;
    }
}

/* Subscribe success/error alert under the form */
.sb-voucher__alert {
    margin: 14px auto 0;
    max-width: min(100%, 690px);
    min-height: 1.2em;
    font-family: var(--mx-font-body, "Aileron", system-ui, sans-serif);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s ease;
}
.sb-voucher__alert.is-visible { opacity: 1; transform: none; }
.sb-voucher__alert.is-error { color: #ffe0e0; }
