/* ==========================================================================
   SISIMO — WELCOME OFFER (side tab + slide-in panel)
   Green + white + black, no gradients / shadows / glassmorphism.
   ========================================================================== */

:root {
    --wo-green: #7CBD91;
    --wo-green-dark: #67aa7c;
}

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */
.welcome-offer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 100010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-out, visibility 300ms ease-out;
}

.welcome-offer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   Tab (closed state) — fixed vertical tab, mid-right of viewport
   -------------------------------------------------------------------------- */
.welcome-offer-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 260px;
    z-index: 100030;
    background-color: var(--wo-green);
    border: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 0 14px;
    cursor: pointer;
    transition: right 350ms ease-out, background-color 200ms ease, filter 200ms ease;
}

.welcome-offer-tab:hover {
    filter: brightness(1.06);
}

.welcome-offer-tab-arrow {
    color: #ffffff;
    font-size: 13px;
    opacity: 0.9;
    transition: transform 300ms ease-out;
}

.welcome-offer-tab-icon {
    color: #ffffff;
    font-size: 19px;
}

.welcome-offer-tab-text {
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* When the panel is open, the tab sticks to the panel's left edge and its
   arrow flips to point the other way (matches the reference behaviour). */
.welcome-offer-tab.is-open .welcome-offer-tab-arrow {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Panel (open state)
   -------------------------------------------------------------------------- */
.welcome-offer-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 460px;
    max-width: 100vw;
    background: #ffffff;
    z-index: 100020;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
}

.welcome-offer-panel.is-open {
    transform: translateX(0);
}

.welcome-offer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #111111;
    cursor: pointer;
    z-index: 5;
    padding: 0;
}

.welcome-offer-close svg {
    width: 24px;
    height: 24px;
}

/* Zone 1 — promotional header */
.welcome-offer-header {
    flex: 0 0 auto;
    min-height: 410px;
    background-color: var(--wo-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
}

.welcome-offer-title {
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 46px;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.welcome-offer-offer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    margin: 0 0 16px;
}

.welcome-offer-offer .wo-enjoy {
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

.welcome-offer-offer .wo-discount {
    font-size: 42px;
    font-weight: 700;
}

.welcome-offer-offer .wo-off {
    font-size: 20px;
    font-weight: 500;
    text-transform: lowercase;
    margin-left: 2px;
}

.welcome-offer-desc {
    color: #ffffff;
    font-size: 13px;
    margin: 0 0 6px;
}

.welcome-offer-terms {
    margin: 0;
}

.welcome-offer-terms a {
    color: #ffffff;
    font-size: 12px;
    text-decoration: underline;
}

/* Zone 2 — form */
.welcome-offer-body {
    flex: 1 1 auto;
    background: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-offer-form-title {
    color: #111111;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    max-width: 340px;
    margin: 0 0 22px;
}

.welcome-offer-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.welcome-offer-input {
    width: 100%;
    height: 40px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background: #ffffff;
    padding: 0 16px;
    font-size: 14px;
    color: #333333;
}

.welcome-offer-input:focus {
    outline: none;
    border-color: var(--wo-green);
}

.welcome-offer-feedback {
    width: 100%;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    min-height: 0;
}

.welcome-offer-feedback.is-error { color: #d0362f; }
.welcome-offer-feedback.is-success { color: var(--wo-green-dark); }

.welcome-offer-submit {
    width: 180px;
    height: 40px;
    background-color: var(--wo-green);
    color: #ffffff;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 200ms ease;
}

.welcome-offer-submit:hover {
    background-color: var(--wo-green-dark);
}

.welcome-offer-submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.welcome-offer-disclaimer {
    font-size: 10px;
    line-height: 1.4;
    color: #222222;
    text-align: center;
    margin: 18px 0 0;
}

.welcome-offer-disclaimer a {
    color: #222222;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Breakpoints — panel width
   -------------------------------------------------------------------------- */
@media (max-width: 1439px) {
    .welcome-offer-panel { width: 420px; }
}

@media (max-width: 1023px) {
    .welcome-offer-panel { width: 390px; }
}

@media (max-width: 767px) {
    .welcome-offer-tab {
        width: 44px;
        height: 220px;
        gap: 10px;
    }

    .welcome-offer-tab-text {
        font-size: 15px;
    }

    .welcome-offer-panel {
        width: 100vw;
    }

    .welcome-offer-header {
        min-height: 0;
        padding: 60px 24px 32px;
    }

    .welcome-offer-title {
        font-size: 32px;
    }

    .welcome-offer-offer .wo-discount {
        font-size: 34px;
    }

    .welcome-offer-body {
        padding: 25px;
    }

    .welcome-offer-close {
        top: 12px;
        right: 12px;
    }
}
