/* Wave V2 — Unified Purchase Flow */
/* All selectors scoped with .wv2- to avoid WP theme conflicts */

/* Match the Figma design — load Assistant with the weights the design uses
   (300, 400, 600, 700, 800) so the WP theme can't silently fall back to a
   thinner system font. */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

:root {
    --wv2-brand: #3abaeb;
    --wv2-brand-dark: #2da3d1;
    --wv2-brand-light: #e8f7fc;
    --wv2-brand-shadow: rgba(58, 186, 235, 0.3);
    --wv2-accent: #f0c08f;
    --wv2-accent-dark: #e5b580;
    --wv2-promo-bg: #F5DDB8;
    --wv2-promo-border: #e5cd9f;
    --wv2-bg: #f8fafc;
    --wv2-white: #ffffff;
    --wv2-gray-50: #f9fafb;
    --wv2-gray-100: #f3f4f6;
    --wv2-gray-200: #e5e7eb;
    --wv2-gray-300: #d1d5db;
    --wv2-gray-400: #9ca3af;
    --wv2-gray-500: #6b7280;
    --wv2-gray-600: #4b5563;
    --wv2-gray-700: #374151;
    --wv2-gray-800: #1f2937;
    --wv2-gray-900: #111827;
    --wv2-green: #22c55e;
    --wv2-green-dark: #16a34a;
    --wv2-red: #ef4444;
    --wv2-blue-50: #eff6ff;
    --wv2-blue-100: #dbeafe;
    --wv2-blue-200: #bfdbfe;
    --wv2-radius-card: 1.5rem;
    --wv2-radius-input: 1rem;
    --wv2-radius-btn: 1rem;
    --wv2-radius-full: 9999px;
    --wv2-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --wv2-shadow-lg: 0 10px 40px -4px rgba(0, 0, 0, 0.1);
    --wv2-font: 'Assistant', sans-serif;
}

/* ===== BASE ===== */
.wv2-app {
    font-family: 'Assistant', sans-serif !important;
    background: var(--wv2-bg);
    min-height: 100vh;
    padding: 1rem;
    padding-bottom: 10rem;
    line-height: 1.6;
    color: var(--wv2-gray-900);
    box-sizing: border-box;
    font-size: 16px;
}

.wv2-app *, .wv2-app *::before, .wv2-app *::after {
    box-sizing: border-box;
    font-family: 'Assistant', sans-serif !important;
}

/* Reset Elementor/theme overrides on headings inside the wave-v2 form.
   Elementor's `.elementor-kit-N h2 { font-size: 35px }` wins the specificity
   race against single-class selectors, so we force our sizes with !important. */
.wv2-app h1,
.wv2-app h2,
.wv2-app h3,
.wv2-app h4,
.wv2-app h5,
.wv2-app h6 {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    color: inherit;
}

/* Now re-assert the actual sizes our design wants */
.wv2-app .wv2-promo__title          { font-size: 1.25rem !important; }
.wv2-app .wv2-line-card__title      { font-size: 1.25rem !important; }
.wv2-app .wv2-step-header__title    { font-size: 1.25rem !important; }
.wv2-app .wv2-summary-card__title   { font-size: 1.25rem !important; }
.wv2-app .wv2-success-title         { font-size: 1.875rem !important; }
.wv2-app .wv2-next-steps h2         { font-size: 1.25rem !important; }
.wv2-app .wv2-modal__header h2      { font-size: 1.5rem !important; }
.wv2-app .wv2-popover__title        { font-size: 1rem !important; }
.wv2-app .wv2-add-line-success h2   { font-size: 1.5rem !important; }
.wv2-app .wv2-plan-summary__label   { font-size: 1.125rem !important; }
.wv2-app .wv2-checkout-billing__header h2 { font-size: 1.25rem !important; }

/* Reset theme button/input overrides — only for wv2-prefixed elements */
.wv2-card button,
.wv2-card input,
.wv2-card select,
.wv2-card textarea,
.wv2-actions button,
.wv2-stepper button,
.wv2-modal button,
.wv2-mobile-bar button {
    font-family: var(--wv2-font);
    background-color: transparent;
    color: inherit;
    border: none;
    outline: none;
    margin: 0;
}

.wv2-app a:not(.wv2-checkout-payment a) {
    color: inherit;
    text-decoration: none;
}

.wv2-app svg {
    vertical-align: middle;
    flex-shrink: 0;
}

/* Prevent theme from overriding SVG strokes inside our buttons */
.wv2-app button svg,
.wv2-app [role="button"] svg {
    color: inherit;
    stroke: currentColor;
}

/* Ensure WooCommerce checkout payment area renders correctly.
   We DON'T use `all: revert` because it kills the flex/grid layout.
   Instead, just restore the few properties our reset broke. */
.wv2-checkout-payment {
    font-family: var(--wv2-font);
    width: 100%;
}
.wv2-checkout-payment input[type="text"],
.wv2-checkout-payment input[type="email"],
.wv2-checkout-payment input[type="tel"],
.wv2-checkout-payment input[type="password"],
.wv2-checkout-payment input[type="number"] {
    background-color: var(--wv2-white) !important;
    border: 1px solid var(--wv2-gray-200) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    outline: none !important;
    color: var(--wv2-gray-900) !important;
    width: 100% !important;
    font-size: 0.9375rem !important;
}
.wv2-checkout-payment iframe {
    width: 100% !important;
    border: none;
    display: block;
}
.wv2-checkout-payment label {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: var(--wv2-gray-700);
}
.wv2-checkout-payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wv2-checkout-payment .payment_methods li {
    margin-bottom: 0.75rem;
}
.wv2-checkout-payment .payment_box {
    background: var(--wv2-gray-50);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

/* ===== STEPPER ===== */
.wv2-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 48rem;
    margin: 0 auto 1.5rem;
}

.wv2-app .wv2-stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent !important;
    border: none;
    cursor: default;
    padding: 0;
}
/* Only steps already reached are clickable (back or forward to a visited step). */
.wv2-app .wv2-stepper__step--clickable { cursor: pointer; }
.wv2-app .wv2-stepper__step--clickable:hover .wv2-stepper__circle {
    border-color: var(--wv2-brand);
    transform: scale(1.08);
}

.wv2-stepper__circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--wv2-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: var(--wv2-white) !important;
    border: 2px solid var(--wv2-gray-200);
    color: var(--wv2-gray-400);
}

.wv2-stepper__step--active .wv2-stepper__circle {
    background-color: var(--wv2-brand) !important;
    border-color: var(--wv2-brand);
    color: white;
}

.wv2-stepper__step--done .wv2-stepper__circle {
    background-color: var(--wv2-accent) !important;
    border-color: var(--wv2-accent);
    color: white;
}

.wv2-stepper__label {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--wv2-gray-400);
}

.wv2-stepper__label--full { display: none; }
.wv2-stepper__label--short { display: block; }

.wv2-stepper__step--active .wv2-stepper__label {
    color: var(--wv2-brand);
}
.wv2-stepper__step--done .wv2-stepper__label {
    color: var(--wv2-accent);
}

.wv2-stepper__line {
    flex: 1;
    height: 2px;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--wv2-gray-200);
    transition: background 0.3s;
}

.wv2-stepper__line--filled {
    background: var(--wv2-brand);
}

/* ===== LAYOUT ===== */
.wv2-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.wv2-sidebar { display: none; }

.wv2-main { min-width: 0; }

/* ===== CARDS ===== */
.wv2-card {
    background: var(--wv2-white);
    border-radius: var(--wv2-radius-card);
    padding: 1rem 1rem;
    box-shadow: var(--wv2-shadow);
    border: 1px solid var(--wv2-gray-100);
    position: relative;
}

/* ===== STEP VISIBILITY ===== */
.wv2-step--hidden { display: none !important; }
.wv2-business-fields--hidden { display: none !important; }
.wv2-shipping-fields--hidden { display: none !important; }

/* ===== STEP HEADER ===== */
.wv2-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.wv2-step-header__circle {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--wv2-brand);
    color: white;
    border-radius: var(--wv2-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.125rem;
}

.wv2-step-header__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

/* ===== LINE CARD ===== */
.wv2-line-card { margin-bottom: 1.5rem; }

/* Accordion header */
.wv2-line-card__accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}
.wv2-line-card__header-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}
.wv2-app .wv2-line-card__collapse {
    background-color: transparent !important;
    border: none;
    padding: 0.25rem;
    margin: 0;
    color: var(--wv2-gray-600) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    flex: 0 0 auto;
}
.wv2-app .wv2-line-card__collapse:hover {
    background-color: var(--wv2-gray-100) !important;
    color: var(--wv2-gray-800) !important;
}
.wv2-line-card__chevron {
    transition: transform 0.25s ease;
}
.wv2-line-card--collapsed .wv2-line-card__chevron {
    transform: rotate(-90deg);
}

/* Collapsed-state plan summary shown next to the title */
.wv2-line-card__collapsed-summary {
    font-size: 0.95rem;
    color: var(--wv2-gray-600);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}
.wv2-line-card--collapsed .wv2-line-card__collapsed-summary {
    display: inline;
}

/* Collapsible body. Expanded state keeps overflow visible so the info
   popovers (wider than the card content) aren't clipped; only the
   collapsed state clips, which is what drives the minimize animation. */
.wv2-line-card__body {
    overflow: visible;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease;
    max-height: 6000px;
    opacity: 1;
    margin-top: 1rem;
}
.wv2-line-card--collapsed .wv2-line-card__body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.wv2-app .wv2-line-card__remove {
    flex: 0 0 auto;
    background-color: transparent !important;
    border: none;
    padding: 0.5rem;
    color: var(--wv2-gray-600) !important;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}
.wv2-app .wv2-line-card__remove:hover {
    background-color: var(--wv2-gray-100) !important;
    color: var(--wv2-gray-800) !important;
    transform: scale(1.1);
}

.wv2-line-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wv2-line-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.wv2-line-card__subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--wv2-gray-600);
    margin: 0;
}

/* ===== PROMO BANNER (beige header) ===== */
.wv2-promo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--wv2-promo-bg);
    border: 2px solid var(--wv2-promo-border);
    border-radius: var(--wv2-radius-input);
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s;
}
.wv2-promo:hover { box-shadow: var(--wv2-shadow-lg); }

.wv2-promo__icon {
    width: 3rem;
    height: 3rem;
    background: var(--wv2-accent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wv2-promo__icon svg { animation: wv2-bounce 1s infinite; }

.wv2-promo__title {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
    color: var(--wv2-gray-900);
}

.wv2-promo__desc {
    font-size: 1rem;
    color: var(--wv2-gray-700);
    margin: 0;
    line-height: 1.5;
}

/* ===== FAMILY PROMPT (above add-line button) ===== */
.wv2-family-prompt {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0 0.5rem;
    color: var(--wv2-gray-800);
    line-height: 1.5;
}
.wv2-family-prompt .wv2-text-brand { font-weight: 800; }

/* ===== LIFETIME PRICE BADGE (SVG asset) ===== */
.wv2-lifetime-badge {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.wv2-lifetime-badge--mobile {
    width: 3rem;
    height: 3rem;
}

/* ===== FIELD GROUPS ===== */
.wv2-field-group { margin-bottom: 1.5rem; position: relative; }

.wv2-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.wv2-label--bold { font-weight: 700; color: var(--wv2-gray-900); }
.wv2-label--muted { font-weight: 700; color: var(--wv2-gray-500); }

.wv2-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
/* Drop the label's own bottom margin inside the row so the text and the
   info button line up on the same vertical center. */
.wv2-label-row .wv2-label { margin-bottom: 0; }

/* ===== INPUTS ===== */
.wv2-app .wv2-input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--wv2-gray-50) !important;
    border: 2px solid transparent !important;
    border-radius: var(--wv2-radius-input);
    outline: none;
    font-family: var(--wv2-font);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
    text-align: right;
    color: var(--wv2-gray-900);
}
/* Lighter, more transparent placeholders so example values (e.g. 050-1234567)
   clearly read as a hint, not a real value. */
.wv2-app .wv2-input::placeholder {
    color: var(--wv2-gray-400) !important;
    font-weight: 500 !important;
    opacity: 0.6 !important;
}
.wv2-app .wv2-input::-webkit-input-placeholder {
    color: var(--wv2-gray-400) !important;
    font-weight: 500 !important;
    opacity: 0.6 !important;
}
.wv2-app .wv2-input:focus {
    border-color: var(--wv2-brand) !important;
    background-color: var(--wv2-white) !important;
}
.wv2-app .wv2-input--error { border-color: var(--wv2-red) !important; }

.wv2-app .wv2-input--referral {
    width: 7rem;
    text-align: center;
    letter-spacing: 0.3em;
    border-color: rgba(58, 186, 235, 0.4) !important;
}
.wv2-app .wv2-input--referral:focus { border-color: var(--wv2-brand) !important; }

/* ===== SELECT ===== */
.wv2-select-wrap { position: relative; }

.wv2-app .wv2-select {
    width: 100%;
    padding: 0.75rem;
    padding-left: 2.5rem;
    background-color: var(--wv2-gray-50) !important;
    background-image: none !important;
    border: 2px solid transparent !important;
    border-radius: var(--wv2-radius-input);
    outline: none;
    font-family: var(--wv2-font);
    font-size: 1.125rem;
    font-weight: 700;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
    color: var(--wv2-gray-900) !important;
}
.wv2-app .wv2-select::-ms-expand { display: none; }
.wv2-app .wv2-select:focus {
    border-color: var(--wv2-brand) !important;
    background-color: var(--wv2-white) !important;
}

.wv2-select-arrow {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--wv2-gray-400);
}

/* ===== RADIO CARDS ===== */
.wv2-radio-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.wv2-radio-cards--2col { grid-template-columns: 1fr 1fr; }

.wv2-radio-card {
    border: 2px solid var(--wv2-gray-100);
    border-radius: var(--wv2-radius-input);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
}
.wv2-radio-card:hover { border-color: var(--wv2-gray-200); }
.wv2-radio-card--selected {
    border-color: var(--wv2-brand);
    background: var(--wv2-blue-50);
}

.wv2-radio-card__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Push the SIM type info button to the far end of the card */
.wv2-sim-toggle .wv2-info-btn { margin-inline-start: auto; }

.wv2-radio-card__title {
    font-weight: 700;
    margin: 0;
    font-size: 0.9375rem;
}
.wv2-radio-card__desc {
    font-size: 0.75rem;
    color: var(--wv2-gray-500);
    margin: 0.125rem 0 0;
}
/* "verify later" description: gray note on the right, brand note on the left
   (wraps under on narrow screens). */
.wv2-verify-later-desc {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.wv2-verify-later-desc .wv2-text-brand { font-weight: 700; }

.wv2-radio-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--wv2-radius-full);
    border: 2px solid var(--wv2-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wv2-radio-card--selected .wv2-radio-dot { border-color: var(--wv2-brand); }

.wv2-radio-dot__fill {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--wv2-radius-full);
    background: var(--wv2-brand);
}

.wv2-badge-recommended {
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    background: var(--wv2-brand);
    color: white;
    padding: 0.125rem 0.75rem;
    border-radius: var(--wv2-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px var(--wv2-brand-shadow);
}

.wv2-badge-bonus {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--wv2-blue-100);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wv2-brand);
}

.wv2-bonus-note {
    font-size: 0.75rem;
    color: var(--wv2-gray-500);
    margin-top: 0.75rem;
}

/* ===== SIM TOGGLE ===== */
.wv2-sim-section {
    background: var(--wv2-blue-50);
    border-radius: var(--wv2-radius-input);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wv2-sim-section__title {
    font-weight: 700;
    color: var(--wv2-gray-900);
    margin: 0 0 0.25rem;
}
.wv2-sim-section__subtitle {
    font-weight: 700;
    color: var(--wv2-brand);
    font-size: 0.875rem;
    margin: 0;
}

.wv2-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    background: var(--wv2-white);
    border-radius: 0.75rem;
    padding: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wv2-app .wv2-toggle-btn {
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background-color: transparent !important;
    color: var(--wv2-gray-500) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--wv2-font);
    user-select: none;
}
.wv2-app .wv2-toggle-btn--active {
    background-color: var(--wv2-brand) !important;
    color: white !important;
}

/* ===== INFO BUTTON ===== */
.wv2-app .wv2-info-btn {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: var(--wv2-radius-full);
    background-color: var(--wv2-accent) !important;   /* filled (in color) by default */
    border: 1.5px solid var(--wv2-accent) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    color: #000 !important;                            /* black icon (circle line + "i") by default */
    flex-shrink: 0;
}
.wv2-app .wv2-info-btn:hover {
    background-color: transparent !important;          /* "empty" on hover */
    color: var(--wv2-accent) !important;               /* accent icon on hover */
}
/* "פרטי התוכנית" caption is a click target too (not just the icon). */
.wv2-app .wv2-plan-info-row .wv2-text-muted.wv2-plan-info-trigger { cursor: pointer; }
/* Show the icon SVG inside the circle (the new info-circle snippet).
   pointer-events:none so taps register on the button → popover opens. */
.wv2-app .wv2-info-btn svg { width: 75%; height: 75%; pointer-events: none; }

/* "להסבר" label next to the step-3 info button (opens the same popover). */
.wv2-verify-info-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wv2-brand);
    cursor: pointer;
    margin-inline-end: 0.25rem;
}

/* ===== POPOVER ===== */
.wv2-popover {
    position: absolute;
    z-index: 100;
    background: var(--wv2-white);
    border-radius: var(--wv2-radius-input);
    box-shadow: var(--wv2-shadow-lg);
    border: 1px solid var(--wv2-gray-200);
    padding: 1.25rem;
    width: 20rem;
    max-width: 90vw;
}
.wv2-popover--hidden { display: none; }
.wv2-popover__title { font-weight: 700; margin: 0 0 0.5rem; }
.wv2-popover p { font-size: 0.875rem; color: var(--wv2-gray-600); line-height: 1.6; margin: 0 0 0.5rem; }

/* Info popovers are positioned in JS (position:fixed) right next to the
   clicked icon — see positionPopover() in wave-v2.js. This keeps them beside
   the trigger and immune to container clipping/stacking. */

.wv2-plan-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    margin-top: 0.75rem;
}
/* FAQ button sits at the far (left) end of the plan-info row.
   Needs higher specificity + !important to beat the `.wv2-card button { margin:0 }`
   reset, otherwise it stays glued next to "פרטי התוכנית". */
.wv2-app .wv2-btn-faq--inline { margin-inline-start: auto !important; }

/* ===== INFO BOX ===== */
.wv2-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--wv2-blue-50);
    border: 2px solid var(--wv2-blue-200);
    border-radius: var(--wv2-radius-input);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.wv2-info-box__icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--wv2-brand);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}
.wv2-info-box__icon--alert {
    background: transparent;
    color: var(--wv2-brand);
}

.wv2-info-box__text h3 {
    font-weight: 700;
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
}
.wv2-info-box__text p {
    font-size: 0.875rem;
    color: var(--wv2-gray-700);
    line-height: 1.7;
    margin: 0;
}

.wv2-sms-info { /* shown only when port selected; JS toggles display */ }

/* ===== REFERRAL ===== */
.wv2-referral-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to left, var(--wv2-blue-50), transparent);
    border-radius: var(--wv2-radius-input);
    border: 1px solid var(--wv2-brand-light);
}
/* Always-visible referral on step 2 — a little extra breathing room above the
   "המשך לאימות קווים" button. */
.wv2-step2-referral-section--always { margin-bottom: 1.5rem; }
.wv2-referral-section__info { flex: 1; }
.wv2-referral-section__info .wv2-label { margin-bottom: 0.25rem; }

/* ===== FORM GRID ===== */
.wv2-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.wv2-form-grid--full { grid-column: 1 / -1; }

/* Input wrapper with required-marker (red * always on the LEFT of the field) */
.wv2-input-wrap { position: relative; }
.wv2-input-wrap > .wv2-input { width: 100%; }
.wv2-input-wrap.wv2-required::before {
    content: "*";
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wv2-red);
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}
.wv2-input-wrap.wv2-required > .wv2-input {
    padding-left: 2rem;
}

/* ===== BUTTONS ===== */
.wv2-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.wv2-app .wv2-btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: var(--wv2-brand) !important;
    color: white !important;
    font-weight: 900;
    font-size: 1.125rem;
    border: none;
    border-radius: var(--wv2-radius-input);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px var(--wv2-brand-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--wv2-font);
}
.wv2-app .wv2-btn-primary:hover { background-color: var(--wv2-brand-dark) !important; }
.wv2-app .wv2-btn-primary--disabled {
    background-color: var(--wv2-gray-300) !important;
    color: var(--wv2-gray-500) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.wv2-app .wv2-btn-secondary {
    width: 100%;
    padding: 0.75rem;
    background-color: transparent !important;
    color: var(--wv2-brand) !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--wv2-font);
}
.wv2-app .wv2-btn-secondary:hover { background-color: var(--wv2-brand-light) !important; }

.wv2-app .wv2-btn-add-line {
    width: 100%;
    padding: 0.75rem;
    background-color: transparent !important;
    color: var(--wv2-brand) !important;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-family: var(--wv2-font);
}
.wv2-app .wv2-btn-add-line:hover { background-color: var(--wv2-brand-light) !important; }

.wv2-app .wv2-btn-faq {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent !important;
    border: none;
    color: var(--wv2-brand) !important;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--wv2-font);
    text-decoration: none;
}
.wv2-app .wv2-btn-faq:hover {
    color: #1d4ed8 !important;
    text-decoration: none !important;
}
.wv2-app .wv2-btn-faq svg {
    stroke: var(--wv2-brand) !important;
    color: var(--wv2-brand) !important;
}
.wv2-app .wv2-btn-faq:hover svg {
    stroke: #1d4ed8 !important;
    color: #1d4ed8 !important;
}

/* Modal close (X) — always visible, not just on hover */
.wv2-app .wv2-modal__close svg {
    stroke: var(--wv2-gray-700) !important;
    color: var(--wv2-gray-700) !important;
    opacity: 1 !important;
}
.wv2-app .wv2-modal__close:hover svg {
    stroke: var(--wv2-gray-900) !important;
    color: var(--wv2-gray-900) !important;
}

/* FAQ accordion chevron — brand blue (was being hijacked by currentColor) */
.wv2-app .wv2-accordion__trigger svg {
    stroke: var(--wv2-brand) !important;
    color: var(--wv2-brand) !important;
}

.wv2-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--wv2-green);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--wv2-radius-input);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: background 0.2s;
    font-family: var(--wv2-font);
}
.wv2-btn-whatsapp:hover { background: var(--wv2-green-dark); }

/* ===== LINK ===== */
.wv2-app .wv2-link {
    color: var(--wv2-brand) !important;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    background-color: transparent !important;
    border: none;
    font-size: inherit;
    font-family: var(--wv2-font);
}
.wv2-app .wv2-link:hover {
    color: var(--wv2-brand-dark) !important;
}

/* ===== CHECKBOX ===== */
.wv2-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--wv2-gray-700);
    line-height: 1.6;
}
/* Custom checkbox. The box itself is the styled <input> (square, so any theme
   transform on it is invisible). The CHECKMARK is drawn on the LABEL via a
   pseudo-element, NOT on the input — because the live theme keeps flipping the
   input (scaleX/scaleY), which made every SVG checkmark render reversed/upside
   down. A label pseudo-element is immune to those input transforms. */
.wv2-app input.wv2-checkbox,
.wv2-app input[type="checkbox"].wv2-checkbox {
    box-sizing: border-box !important;   /* exactly 20px incl. border */
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 !important;                /* no margin → predictable position */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    accent-color: transparent !important;
    border: 2px solid var(--wv2-gray-300) !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    background-image: none !important;
    transition: background-color 0.15s, border-color 0.15s;
}
.wv2-app input.wv2-checkbox:checked,
.wv2-app input[type="checkbox"].wv2-checkbox:checked {
    background-color: var(--wv2-brand) !important;
    border-color: var(--wv2-brand) !important;
    background-image: none !important;
}
/* The live theme draws its OWN checkmark/chevron directly on the checkbox input
   (via a pseudo-element / mask / box-shadow, not a plain background-image — which
   is why background-image:none alone didn't remove it). That theme mark rendered
   UNDER our label ::after SVG, showing a second "defective" down-chevron stacked
   below the correct ✓. Kill every possible input-level mark so ONLY our label
   ::after renders. */
.wv2-app input.wv2-checkbox,
.wv2-app input[type="checkbox"].wv2-checkbox,
.wv2-app input.wv2-checkbox:checked,
.wv2-app input[type="checkbox"].wv2-checkbox:checked {
    background-image: none !important;
    box-shadow: none !important;
    -webkit-mask: none !important;
    mask: none !important;
}
.wv2-app input.wv2-checkbox::before,
.wv2-app input.wv2-checkbox::after,
.wv2-app input[type="checkbox"].wv2-checkbox::before,
.wv2-app input[type="checkbox"].wv2-checkbox::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Both labels: top-align the box so the checkmark always lands in the same
   place regardless of how many lines the text wraps to. */
.wv2-app .wv2-checkbox-label,
.wv2-app .wv2-otp-ack-label {
    position: relative;
    align-items: flex-start !important;
}
/* Checkmark drawn on the label (theme-proof — the input transform can't flip
   it). Rendered as a fixed SVG image, NOT rotated border geometry: a rotate()
   tick keeps getting flipped/collapsed by the theme's RTL transforms (it turned
   into a down-chevron when the locale state changed), whereas an SVG path has
   fixed geometry — no rotate to compose, no box-sizing to collapse, and it is
   not a font glyph so keyboard/locale can't affect it. Sized to cover the 20px
   box at the label start (top-right in RTL). */
.wv2-app .wv2-checkbox-label::after,
.wv2-app .wv2-otp-ack-label::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    transform: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
    opacity: 0;
    pointer-events: none;
}
.wv2-app .wv2-checkbox-label:has(.wv2-checkbox:checked)::after,
.wv2-app .wv2-otp-ack-label:has(.wv2-checkbox:checked)::after {
    opacity: 1;
}

/* ===== ERRORS ===== */
.wv2-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--wv2-red);
}
.wv2-errors--hidden { display: none; }

/* Info note above the step-2 continue button (same circled-i icon as the
   order-summary note): continuing saves the details and may trigger one
   abandonment reminder. Customer flow only — the template skips it for reps. */
.wv2-continue-note {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    background: var(--wv2-blue-50);
    border: 1px solid var(--wv2-blue-100);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--wv2-gray-600);
    line-height: 1.5;
}
.wv2-continue-note svg { flex-shrink: 0; margin-top: 0.1875rem; }
.wv2-continue-note p { margin: 0; }

/* ===== ORDER SUMMARY (SIDEBAR) ===== */
.wv2-summary-card {
    background: var(--wv2-white);
    border-radius: var(--wv2-radius-card);
    padding: 1.5rem;
    box-shadow: var(--wv2-shadow);
    border: 1px solid var(--wv2-gray-100);
    /* Follow the page as the user scrolls. Cap the height to the viewport and
       scroll internally so a tall summary (many lines) still reveals its totals
       instead of running off the bottom of the screen. */
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.wv2-summary-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.wv2-summary-card__header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.wv2-summary-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--wv2-blue-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wv2-brand);
}
.wv2-summary-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.wv2-summary-lines { margin-bottom: 1rem; }

.wv2-summary-line {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    border-bottom: 1px solid var(--wv2-gray-100);
}
.wv2-summary-line:last-child { border-bottom: none; }

/* Per-line remove (X) in the order summary — same icon as the step-one
   line remove. Sits in the reserved left gutter (RTL "end"). */
.wv2-app .wv2-summary-line__remove {
    position: absolute;
    top: 0.5rem;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0.25rem;
    background-color: transparent !important;
    border: none;
    color: var(--wv2-gray-600) !important;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}
.wv2-app .wv2-summary-line__remove:hover {
    background-color: var(--wv2-gray-100) !important;
    color: var(--wv2-gray-800) !important;
    transform: scale(1.1);
}

.wv2-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}
.wv2-summary-row--muted { color: var(--wv2-gray-500); padding-top: 1rem; border-top: 1px solid var(--wv2-gray-100); }
.wv2-summary-row--small { font-size: 0.75rem; color: var(--wv2-gray-500); margin-bottom: 0.25rem; }
.wv2-summary-row--big { font-weight: 700; color: var(--wv2-gray-800); }

.wv2-summary-fees { margin-bottom: 1.5rem; }

.wv2-summary-totals {
    background: var(--wv2-gray-50);
    border-radius: var(--wv2-radius-input);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.wv2-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.625rem;
    color: var(--wv2-gray-400);
    line-height: 1.4;
}
.wv2-summary-note svg { flex-shrink: 0; margin-top: 0.125rem; }
.wv2-summary-note p { margin: 0; }

.wv2-summary-bonus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--wv2-brand);
    margin-top: 0.5rem;
}

/* ===== MOBILE BOTTOM BAR ===== */
.wv2-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wv2-white);
    border-top: 1px solid var(--wv2-gray-200);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 -4px 20px -2px rgba(0,0,0,0.1);
    z-index: 9999;
}
/* Drag-handle grabber so it's clear the sheet can be tapped/expanded. */
.wv2-mobile-bar::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--wv2-gray-300);
    margin: 0.5rem auto 0;
}

/* Remove the floating WhatsApp icon widget on all wave-v2 pages (form,
   checkout, success). Glassix is the chat channel on the funnel, and the
   floating WhatsApp button clutters the layout / overlaps other widgets.
   Targets the Elementor icon widget that links to wa.me (keeps any inline
   "צרו איתנו קשר ב-WhatsApp" CTA button, which is a different widget). */
body:has(.wv2-app) .elementor-widget-icon:has(a[href*="wa.me"]),
body:has(.wv2-app) .elementor-widget-icon:has(a[href*="whatsapp"]) {
    display: none !important;
}

/* Push the Glassix LAUNCHER up on all wave-v2 pages (desktop + mobile) so it
   doesn't overlap the WhatsApp floating button. The widget container uses
   inline `bottom: 30px` so we need !important to win.
   The open chat panel is NOT repositioned: its inline height is tuned for its
   inline bottom:110px, so forcing the bottom clips the panel top. While the
   chat is open the launcher is hidden site-wide (neptucom-glassix.php). */
body:is(:has(.wv2-app), :has(.wv2-checkout-page)) #glassix-widget-launcher-container {
    bottom: 100px !important;
}
/* The greeting teaser bubble sits beside the DEFAULT launcher position
   (bottom:30px) — raise it together with the launcher. */
body:is(:has(.wv2-app), :has(.wv2-checkout-page)) #greeting-message-container {
    bottom: 100px !important;
}

/* Push floating buttons (Glassix chat, accessibility) above the mobile
   order-summary bar on mobile, so they don't overlap it. */
@media (max-width: 1023px) {
    /* On mobile the bottom is owned by the sticky order-summary bar, so move the
       floating widgets up INTO the header bar, in the empty space between the
       logo (top-left) and the hamburger (top-right). Both are anchored to the
       horizontal center so it works regardless of header width:
         - accessibility widget just LEFT of center,
         - Glassix chat launcher just RIGHT of center. */

    /* Glassix launcher → right EDGE, just below the site nav. Scaled down from
       its native 60px to ~42px to match the accessibility icon, anchored from
       the top-right so it hugs the right edge. */
    body:has(.wv2-app) #glassix-widget-launcher-container {
        top: 150px !important;
        bottom: auto !important;
        right: 6px !important;
        left: auto !important;
        transform: scale(0.7) !important;
        transform-origin: top right !important;
    }
    /* Open chat panel drops below the header on the right (kept usable). */
    body:has(.wv2-app) #glassix-widget-iframe-container {
        top: 90px !important;
        bottom: auto !important;
    }
    /* With the launcher up in the header there's no icon at the bottom for the
       greeting teaser to point at — hide it on funnel mobile. */
    body:has(.wv2-app) #greeting-message-container {
        display: none !important;
    }

    /* Accessibility toggles (accessibility-light / sitelinx + other vendors)
       → header bar, left of center. */
    body:has(.wv2-app) #sitelinx-toggle-toolbar,
    body:has(.wv2-app) [id*="sitelinx" i],
    body:has(.wv2-app) [class*="sitelinx" i],
    /* UserWay */
    body:has(.wv2-app) #userway-buttons-container,
    body:has(.wv2-app) [id*="userway" i],
    body:has(.wv2-app) [class*="userway" i],
    /* AccessiBe */
    body:has(.wv2-app) #acsb-trigger,
    body:has(.wv2-app) [id*="acsb" i],
    body:has(.wv2-app) [class*="acsb" i],
    /* EqualWeb */
    body:has(.wv2-app) #INDmenu-btn,
    body:has(.wv2-app) [id*="INDmenu" i],
    body:has(.wv2-app) [class*="INDbtn" i],
    body:has(.wv2-app) [id*="equalweb" i],
    body:has(.wv2-app) [class*="equalweb" i],
    /* Nagish */
    body:has(.wv2-app) #nagish,
    body:has(.wv2-app) [id*="nagish" i],
    body:has(.wv2-app) [class*="nagish" i],
    /* Hatabai */
    body:has(.wv2-app) [id*="hatabai" i],
    body:has(.wv2-app) [class*="hatabai" i],
    /* AlleAdd */
    body:has(.wv2-app) [id*="alleadd" i],
    body:has(.wv2-app) [class*="alleadd" i],
    /* Generic accessibility selectors */
    body:has(.wv2-app) [id*="accessib" i],
    body:has(.wv2-app) [class*="accessib" i],
    body:has(.wv2-app) [aria-label*="נגישות"],
    body:has(.wv2-app) [title*="נגישות"],
    body:has(.wv2-app) [aria-label*="accessibility" i],
    body:has(.wv2-app) [title*="accessibility" i] {
        top: 150px !important;
        bottom: auto !important;
        left: 6px !important;
        right: auto !important;
    }
}

.wv2-mobile-bar__details {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid var(--wv2-gray-200);
}
.wv2-mobile-bar__details--hidden { display: none; }

.wv2-app .wv2-mobile-bar__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0.875rem 1rem;
    background-color: transparent !important;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: var(--wv2-font);
    color: var(--wv2-gray-900);
}
.wv2-mobile-bar__toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Defensive: force the toggle row (header + chevron) visible. The "סיכום הזמנה"
   row was rendering blank on the live theme, so we override any theme rule that
   hides it / recolors it to white / collapses its size. High-specificity ids. */
#wv2-mobile-bar #wv2-mobile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 1.5rem !important;
    font-size: 0.9375rem !important;
    color: var(--wv2-gray-900) !important;
}
#wv2-mobile-bar #wv2-mobile-toggle .wv2-text-bold {
    color: var(--wv2-gray-900) !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#wv2-mobile-bar #wv2-mobile-toggle svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#wv2-mobile-bar #wv2-mobile-chevron {
    stroke: var(--wv2-gray-900) !important;
    width: 22px !important;
    height: 22px !important;
}

.wv2-mobile-bar__totals {
    background: linear-gradient(to left, rgba(58,186,235,0.1), rgba(58,186,235,0.05));
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin: 0.75rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/* Totals text fills the row; the lifetime badge sits compact at the (left)
   end, inline — matching the Figma mobile summary. */
.wv2-mobile-bar__totals-text {
    flex: 1 1 auto;
    min-width: 0;
}
.wv2-mobile-bar__totals .wv2-lifetime-badge--mobile {
    flex: 0 0 auto;
}

/* ===== WHATSAPP FAB ===== */
.wv2-whatsapp-fab {
    position: fixed;
    bottom: 6rem;
    left: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--wv2-green);
    color: white;
    border-radius: var(--wv2-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    z-index: 9998;
    transition: all 0.2s;
    text-decoration: none;
}
.wv2-whatsapp-fab:hover { background: var(--wv2-green-dark); transform: scale(1.05); }

/* ===== MODALS ===== */
.wv2-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wv2-modal--hidden { display: none; }

.wv2-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.wv2-modal__content {
    position: relative;
    background: var(--wv2-white);
    border-radius: var(--wv2-radius-card);
    box-shadow: var(--wv2-shadow-lg);
    width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.wv2-modal__content--lg { max-width: 40rem; }
.wv2-modal__content--sm { max-width: 26rem; padding: 2rem; }

.wv2-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--wv2-gray-100);
}
.wv2-modal__header h2 { margin: 0; font-size: 1.5rem; font-weight: 900; }
.wv2-modal__header-title { display: flex; align-items: center; gap: 0.75rem; }
.wv2-modal__header-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--wv2-brand-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv2-app .wv2-modal__close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--wv2-radius-full);
    border: none;
    background-color: transparent !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--wv2-gray-500);
}
.wv2-app .wv2-modal__close:hover { background-color: var(--wv2-gray-100) !important; }

.wv2-modal__body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

/* ===== ACCORDION (FAQ) ===== */
.wv2-accordion__item {
    border: 2px solid var(--wv2-gray-100);
    border-radius: var(--wv2-radius-input);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.wv2-accordion__item:hover { border-color: rgba(58,186,235,0.4); }

.wv2-app .wv2-accordion__trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--wv2-white) !important;
    border: none;
    cursor: pointer;
    font-family: var(--wv2-font);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: right;
    color: var(--wv2-gray-900) !important;
}
.wv2-app .wv2-accordion__trigger span {
    color: var(--wv2-gray-900) !important;
}
.wv2-app .wv2-accordion__trigger:hover {
    background-color: var(--wv2-gray-50) !important;
}
.wv2-accordion__trigger svg { transition: transform 0.3s; flex-shrink: 0; margin-right: 1rem; }
.wv2-accordion__item--open .wv2-accordion__trigger svg { transform: rotate(180deg); }

.wv2-accordion__panel {
    display: none;
    padding: 0 1.5rem 1.5rem;
    background: var(--wv2-gray-50);
}
.wv2-accordion__item--open .wv2-accordion__panel { display: block; }
.wv2-accordion__panel p {
    font-size: 0.9375rem;
    color: var(--wv2-gray-700);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

/* ===== DEVICES MODAL ===== */
.wv2-devices-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.wv2-app .wv2-devices-filter {
    padding: 0.5rem 1rem;
    border-radius: var(--wv2-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background-color: var(--wv2-gray-100) !important;
    color: var(--wv2-gray-700) !important;
    transition: all 0.2s;
    font-family: var(--wv2-font);
}
.wv2-app .wv2-devices-filter:hover { background-color: var(--wv2-gray-200) !important; }
.wv2-app .wv2-devices-filter--active { background-color: var(--wv2-brand) !important; color: white !important; }

.wv2-devices-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}
.wv2-devices-list__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--wv2-gray-700);
}
.wv2-devices-list__dot {
    width: 0.375rem;
    height: 0.375rem;
    background: var(--wv2-gray-400);
    border-radius: var(--wv2-radius-full);
    flex-shrink: 0;
}

/* ===== ADD LINE SUCCESS MODAL ===== */
.wv2-add-line-success { text-align: center; }
.wv2-add-line-success__icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--wv2-brand), var(--wv2-brand-dark));
    border-radius: var(--wv2-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: wv2-bounce 1s infinite;
}
.wv2-add-line-success h2 { font-size: 1.5rem; font-weight: 900; margin: 0 0 1rem; }
.wv2-add-line-success p { margin: 0 0 0.5rem; color: var(--wv2-gray-700); font-size: 1.125rem; }
.wv2-add-line-success__discount {
    font-size: 1.875rem !important;
    font-weight: 900 !important;
    color: var(--wv2-brand) !important;
    margin-bottom: 0 !important;
    line-height: 1.25 !important;
}
/* Second half of the discount headline — same brand blue + bold, a step
   smaller so the two lines read as one sentence. !important mirrors the
   headline rule above (the base `.wv2-add-line-success p` selector wins
   specificity otherwise). */
.wv2-add-line-success__discount-note {
    margin: 0.125rem 0 1.5rem !important;
    color: var(--wv2-brand) !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}
.wv2-add-line-success__note {
    background: var(--wv2-brand-light);
    border-radius: var(--wv2-radius-input);
    padding: 1rem;
    border: 2px solid rgba(58,186,235,0.4);
}
.wv2-add-line-success__note p {
    font-size: 0.875rem;
    color: var(--wv2-brand-dark);
    font-weight: 500;
    margin: 0;
}

/* ===== SUCCESS PAGE ===== */
.wv2-card--success { padding: 1.5rem 2rem; max-width: 40rem; margin: 0 auto; }

.wv2-success-header { text-align: center; margin-bottom: 2rem; }
.wv2-success-icon-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto 1rem;
}
.wv2-success-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #60a5fa, var(--wv2-brand));
    border-radius: var(--wv2-radius-input);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(12deg);
}
.wv2-success-deco {
    position: absolute;
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}
.wv2-success-deco--tr { top: -0.5rem; right: -0.5rem; }
.wv2-success-deco--bl { bottom: -0.25rem; left: -0.5rem; }
.wv2-success-title { font-size: 1.875rem; font-weight: 900; margin: 0 0 0.75rem; }
.wv2-success-subtitle { color: var(--wv2-gray-600); line-height: 1.6; margin: 0; }
.wv2-success-badge {
    display: inline-block;
    background: var(--wv2-blue-50);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}
.wv2-success-badge p { font-size: 0.875rem; font-weight: 700; color: var(--wv2-brand); margin: 0; }

.wv2-next-steps { margin-bottom: 2rem; }
.wv2-next-steps h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 1.5rem; }
.wv2-next-steps__list { display: flex; flex-direction: column; gap: 1rem; }
.wv2-next-steps__item { display: flex; align-items: center; gap: 0.5rem; }
.wv2-next-steps__num {
    width: 2rem;
    height: 2rem;
    background: var(--wv2-brand);
    color: white;
    border-radius: var(--wv2-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.wv2-next-steps__icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--wv2-blue-100);
    border-radius: var(--wv2-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wv2-brand);
    flex-shrink: 0;
}
.wv2-next-steps__item p { font-size: 0.875rem; color: var(--wv2-gray-700); margin: 0; flex: 1; }
.wv2-next-steps__text { flex: 1; }
.wv2-next-steps__item-title { font-weight: 700; color: var(--wv2-gray-900); margin: 0 0 0.125rem; font-size: 0.9375rem; }
.wv2-next-steps__item-body { font-size: 0.875rem; color: var(--wv2-gray-700); margin: 0; }

/* ===== BONUS BANNER (thank-you page) ===== */
.wv2-bonus-banner {
    background: var(--wv2-brand-light);
    border: 1px solid rgba(58,186,235,0.4);
    border-radius: var(--wv2-radius-input);
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.wv2-bonus-banner p {
    margin: 0;
    color: var(--wv2-gray-800);
    font-size: 0.9375rem;
}
.wv2-bonus-banner strong { color: var(--wv2-brand-dark); font-weight: 800; }

.wv2-success-contact { margin-bottom: 1.5rem; }
.wv2-success-contact .wv2-text-bold { margin: 0 0 0.25rem; font-weight: 700; }
.wv2-success-contact .wv2-text-muted { margin: 0 0 1rem; font-size: 0.875rem; color: var(--wv2-gray-600); }

/* ===== OTP (Step 3) ===== */
.wv2-otp-line {
    background: var(--wv2-gray-50);
    border-radius: var(--wv2-radius-input);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.wv2-otp-line__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.wv2-otp-line__name { font-weight: 700; }
.wv2-otp-line__status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--wv2-radius-full);
}
.wv2-otp-line__status--pending { background: #fef3c7; color: #92400e; }
.wv2-otp-line__status--verified { background: #d1fae5; color: #065f46; }

.wv2-otp-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.wv2-otp-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--wv2-gray-200);
    border-radius: 0.75rem;
    font-family: var(--wv2-font);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.3em;
    font-weight: 700;
}
.wv2-otp-input:focus { border-color: var(--wv2-brand); outline: none; }

.wv2-app .wv2-otp-send-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--wv2-brand) !important;
    color: white !important;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--wv2-font);
}
.wv2-app .wv2-otp-send-btn:hover { background-color: var(--wv2-brand-dark) !important; }
.wv2-app .wv2-otp-send-btn:disabled { background-color: var(--wv2-gray-300) !important; cursor: not-allowed; }

/* ===== UTILITY CLASSES ===== */
.wv2-text-brand { color: var(--wv2-brand); }
.wv2-text-red { color: var(--wv2-red); font-weight: 700; }
.wv2-text-bold { font-weight: 700; }
.wv2-text-muted { font-size: 0.875rem; color: var(--wv2-gray-500); }
.wv2-text-xs { font-size: 0.75rem; }
.wv2-text-sm { font-size: 0.875rem; }
.wv2-text-xl { font-size: 1.25rem; font-weight: 900; }
.wv2-text-xxl { font-size: 1.5rem; font-weight: 900; }

/* ===== ANIMATION ===== */
@keyframes wv2-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ===== CHECKOUT PAGE ===== */
.wv2-checkout-page {
    padding-bottom: 2rem;
    width: 100% !important;
    max-width: 100% !important;
}

.wv2-checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
    width: 100% !important;
}

.wv2-checkout-main, .wv2-checkout-sidebar {
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
}

.wv2-checkout-payment,
.wv2-checkout-payment form,
.wv2-checkout-payment form.checkout,
.wv2-checkout-payment .woocommerce-checkout,
.wv2-checkout-page form.checkout,
.wv2-checkout-page .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    margin: 0 !important;
}

.wv2-checkout-page #order_review,
.wv2-checkout-page #order_review_heading,
.wv2-checkout-page #payment {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Forcefully hide terms UI even if our PHP doesn't remove it */
.wv2-checkout-page .woocommerce-terms-and-conditions-wrapper,
.wv2-checkout-page .woocommerce-terms-and-conditions,
.wv2-checkout-page #terms_field,
.wv2-checkout-page p:has(> #terms),
.wv2-checkout-page .validate-required:has(input[name="terms"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide WC error notices for terms specifically */
.wv2-checkout-page .woocommerce-error li[data-id*="terms"] { display: none !important; }

/* Hide privacy policy text & all checkout notices */
.wv2-checkout-page .woocommerce-privacy-policy-text,
.wv2-checkout-page .woocommerce-NoticeGroup-checkout,
.wv2-checkout-page .wc-block-components-checkout-step__description {
    display: none !important;
}

/* Hide entire WC billing/shipping section in case it slips through */
.wv2-checkout-page #customer_details,
.wv2-checkout-page .col2-set { display: none !important; }

/* ===== COUPON SECTION (in summary card) ===== */
.wv2-coupon-section {
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--wv2-gray-100);
}

.wv2-coupon-section__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wv2-brand);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.wv2-app .wv2-coupon-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent !important;
    border: none;
    color: var(--wv2-brand) !important;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0;
    font-family: var(--wv2-font);
}
.wv2-app .wv2-coupon-toggle:hover { color: var(--wv2-brand-dark) !important; }

.wv2-coupon-form { margin-top: 0.5rem; }
.wv2-coupon-form--hidden { display: none; }

.wv2-coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.wv2-app .wv2-coupon-input-group .wv2-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
}

.wv2-app .wv2-coupon-apply-btn {
    background-color: var(--wv2-brand) !important;
    color: white !important;
    border: none;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: var(--wv2-font);
    white-space: nowrap;
}
.wv2-app .wv2-coupon-apply-btn:hover { background-color: var(--wv2-brand-dark) !important; }
.wv2-app .wv2-coupon-apply-btn:disabled { background-color: var(--wv2-gray-300) !important; cursor: not-allowed; }

.wv2-coupon-message {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    min-height: 1rem;
}
.wv2-coupon-message--error { color: var(--wv2-red); }
.wv2-coupon-message--success { color: var(--wv2-green-dark); }

.wv2-coupon-applied {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fae5;
    color: #065f46;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.wv2-coupon-applied--hidden { display: none; }
.wv2-coupon-applied strong { font-weight: 800; }
.wv2-app #wv2-coupon-remove {
    background-color: transparent !important;
    border: none;
    color: #065f46 !important;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    margin-right: auto;
    line-height: 1;
    padding: 0 0.25rem;
}
.wv2-app #wv2-coupon-remove:hover { color: var(--wv2-red) !important; }

.wv2-summary-row--discount {
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* ===== PLAN PICKER (collapsed by default) ===== */
.wv2-plan-summary {
    margin-bottom: 0.75rem;
}
.wv2-plan-summary__label {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--wv2-gray-900);
}
.wv2-plan-summary__name {
    color: var(--wv2-brand);
}
.wv2-app .wv2-plan-change-link {
    display: inline-block;
    margin-top: 0.25rem;
    background: transparent !important;
    border: none;
    color: var(--wv2-brand) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--wv2-font);
    padding: 0;
}
.wv2-app .wv2-plan-change-link:hover { color: var(--wv2-brand-dark) !important; }

/* Rep flow (/joincs/): no summary line — a required-field label sits above the
   always-open plan list instead. */
.wv2-plan-required-label {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--wv2-gray-900);
    margin: 0 0 0.25rem;
}

.wv2-plan-list {
    margin-top: 0.75rem;
    background: var(--wv2-gray-50);
    border: 2px solid var(--wv2-brand);
    border-radius: var(--wv2-radius-input);
    padding: 0.75rem;
}
.wv2-plan-list--hidden { display: none; }
/* Required-plan validation failed (rep flow) */
.wv2-plan-list--error { border-color: var(--wv2-red); }

.wv2-plan-list__group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wv2-gray-500);
    margin: 0 0 0.5rem;
    padding-top: 0.5rem;
}
.wv2-plan-list__group-title:first-child { padding-top: 0; }
.wv2-plan-list__group-title--later {
    border-top: 1px solid var(--wv2-gray-200);
}

.wv2-plan-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    background: white;
    margin-bottom: 0.375rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.wv2-plan-option:hover { background: var(--wv2-brand-light); }
.wv2-plan-option--selected {
    border-color: var(--wv2-brand);
    background: var(--wv2-brand-light);
}
.wv2-plan-option__name { font-weight: 700; flex: 0 0 auto; }
/* Abroad-data-per-year line, centered between the plan name and the price. */
.wv2-plan-option__abroad {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--wv2-gray-600);
    padding: 0 0.5rem;
    line-height: 1.3;
}
.wv2-plan-option__local-tag {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: var(--wv2-gray-200);
    color: var(--wv2-gray-700);
    font-size: 0.6875rem;
    border-radius: var(--wv2-radius-full);
    font-weight: 600;
}
.wv2-plan-option__price {
    font-weight: 800;
    color: var(--wv2-brand);
}

/* ===== PORT PHONE INPUT (step 1) ===== */
.wv2-port-phone-wrap {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(to left, var(--wv2-blue-50), transparent);
    border: 1px solid var(--wv2-brand-light);
    border-radius: var(--wv2-radius-input);
}
.wv2-port-phone-wrap label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wv2-gray-700);
    margin-bottom: 0.5rem;
}
.wv2-app .wv2-port-phone {
    direction: ltr;
    text-align: right;
}

/* ===== STEP 3 — PER-LINE OTP CARDS ===== */
.wv2-otp-line-card {
    background: white;
    border: 1px solid var(--wv2-gray-100);
    border-radius: var(--wv2-radius-input);
    padding: 1rem;
    margin-bottom: 1rem;
}
.wv2-otp-line-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--wv2-gray-100);
}
.wv2-otp-line-card__title {
    font-weight: 700;
    font-size: 1rem;
}
.wv2-otp-line-card__phone {
    font-size: 0.875rem;
    color: var(--wv2-gray-500);
    direction: ltr;
}
.wv2-otp-line-card__choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wv2-otp-ack {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #fef9e7;
    border-radius: 0.75rem;
    border-right: 3px solid #f59e0b;
}
.wv2-otp-ack-label {
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--wv2-gray-800);
}

.wv2-otp-now-panel {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--wv2-brand-light);
    border-radius: 0.75rem;
}

/* Step 3 — new-number contact-phone OTP (customer flow only) */
.wv2-otp-newnum {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--wv2-brand-light);
    border-radius: 0.75rem;
}
.wv2-otp-newnum__info {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--wv2-gray-800);
}
.wv2-otp-newnum .wv2-newnum-phone[readonly] {
    background: var(--wv2-gray-50);
    color: var(--wv2-gray-800);
    letter-spacing: normal;
    direction: ltr;
}
.wv2-otp-newnum__edit {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--wv2-gray-500);
}

.wv2-newnum-code { margin-top: 1rem; }
.wv2-newnum-code__hint {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wv2-gray-800);
    text-align: center;
}
.wv2-newnum-boxes {
    display: flex;
    gap: 0.5rem;
    direction: ltr;
    justify-content: center;
    margin: 0 0 0.5rem;
}
.wv2-newnum-digit {
    width: 2.75rem;
    height: 3.25rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--wv2-font);
    border: 2px solid var(--wv2-gray-200);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0;
}
.wv2-newnum-digit:focus { border-color: var(--wv2-brand); outline: none; }
.wv2-newnum-digit--error {
    border-color: var(--wv2-red) !important;
    background: #fef2f2;
    color: var(--wv2-red);
}
.wv2-newnum-boxes--busy .wv2-newnum-digit { opacity: 0.5; }
.wv2-newnum-boxes--shake { animation: wv2-newnum-shake 0.4s ease; }
@keyframes wv2-newnum-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.wv2-newnum-error {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wv2-red);
    background: #fef2f2;
    border-radius: 0.5rem;
    border-right: 3px solid var(--wv2-red);
    text-align: center;
}
.wv2-newnum-resend-row {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--wv2-gray-500);
    text-align: center;
}

/* ===== STEP 3 LEGAL CHECKBOXES CONTAINER ===== */
.wv2-legal-container {
    background: var(--wv2-gray-50);
    border-radius: var(--wv2-radius-input);
    padding: 1.25rem;
    margin: 1.5rem 0;
}
.wv2-legal-container .wv2-checkbox-label {
    margin-bottom: 0.75rem;
}
.wv2-legal-container .wv2-checkbox-label:last-child { margin-bottom: 0; }
.wv2-legal-required {
    color: var(--wv2-red);
    font-weight: 700;
    margin-right: 0.25rem;
}

/* ===== HEARD FROM dropdown ===== */
.wv2-heard-from-wrap { position: relative; }

/* ===== DISCOUNT DISPLAY in summary ===== */
.wv2-summary-line__discount-note {
    display: block;
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
    margin-top: 0.125rem;
}
.wv2-summary-line__price-strike {
    text-decoration: line-through;
    color: var(--wv2-gray-400);
    font-size: 0.75rem;
    margin-left: 0.375rem;
}

/* ===== THANK-YOU smaller WhatsApp button ===== */
.wv2-app .wv2-btn-whatsapp--small {
    max-width: 16rem;
    margin: 0 auto;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.wv2-checkout-billing {
    margin-bottom: 1.5rem;
}

.wv2-checkout-billing__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.wv2-checkout-billing__header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}
.wv2-checkout-billing__header-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.wv2-app .wv2-checkout-billing__collapse {
    background-color: transparent !important;
    border: none !important;
    padding: 0.25rem !important;
    margin: 0 !important;
    color: var(--wv2-gray-600) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    flex: 0 0 auto;
}
.wv2-checkout-billing__chevron {
    transition: transform 0.25s ease;
}
.wv2-checkout-billing--collapsed .wv2-checkout-billing__chevron {
    transform: rotate(-90deg);
}
.wv2-checkout-billing--collapsed .wv2-checkout-billing__header {
    margin-bottom: 0;
}
/* Collapsible body */
.wv2-checkout-billing__grid {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 1000px;
    opacity: 1;
}
.wv2-checkout-billing--collapsed .wv2-checkout-billing__grid {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.wv2-app .wv2-btn-back-to-form {
    background-color: var(--wv2-brand-light) !important;
    color: var(--wv2-brand) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--wv2-radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--wv2-font);
    display: inline-block;
}
.wv2-app .wv2-btn-back-to-form:hover {
    background-color: var(--wv2-brand) !important;
    color: white !important;
}

.wv2-checkout-billing__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.wv2-checkout-billing__field {
    background: var(--wv2-gray-50);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}
.wv2-checkout-billing__field--full { grid-column: 1 / -1; }

.wv2-checkout-billing__label {
    display: block;
    font-size: 0.75rem;
    color: var(--wv2-gray-400);
    margin-bottom: 0.125rem;
}
.wv2-checkout-billing__value {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--wv2-gray-900);
}

/* Hide WC billing fields — we show our own read-only summary above */
.wv2-checkout-page .woocommerce-billing-fields { display: none !important; }

/* Hide WC terms & conditions checkboxes — already handled in step 3 */
.wv2-checkout-page .woocommerce-terms-and-conditions-wrapper { display: none !important; }

/* Hide the default WC order review table — our summary replaces it */
.wv2-checkout-page .woocommerce-checkout-review-order-table { display: none !important; }

/* Hide coupon form on checkout — not needed */
.wv2-checkout-page .woocommerce-form-coupon-toggle { display: none !important; }
.wv2-checkout-page .checkout_coupon { display: none !important; }

/* Style the WC payment section */
.wv2-checkout-page .woocommerce-checkout { margin-top: 0; }
.wv2-checkout-page #payment {
    background: var(--wv2-white) !important;
    border-radius: var(--wv2-radius-card) !important;
    padding: 1.5rem !important;
    box-shadow: var(--wv2-shadow) !important;
    border: 1px solid var(--wv2-gray-100) !important;
}
.wv2-checkout-page #place_order {
    background-color: var(--wv2-brand) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--wv2-radius-input) !important;
    font-weight: 900 !important;
    font-size: 1.125rem !important;
    padding: 1rem !important;
    width: 100% !important;
    font-family: var(--wv2-font) !important;
    box-shadow: 0 4px 15px var(--wv2-brand-shadow) !important;
    cursor: pointer;
}
.wv2-checkout-page #place_order:hover {
    background-color: var(--wv2-brand-dark) !important;
}

/* Hide the PayPlus saved-card chooser (the "ויזה מסתיים ב…/השתמש בשיטת תשלום
   חדשה" radios) and the "שמור את כרטיס האשראי בחשבון שלי" save-card checkbox.
   wave-v2-checkout.js force-selects the "new card" radio (kept in the DOM, just
   hidden) so checkout always uses a fresh card and never stores it. */
.wv2-checkout-page ul.woocommerce-SavedPaymentMethods,
.wv2-checkout-page .woocommerce-SavedPaymentMethods-saveNew {
    display: none !important;
}

/* Hide the leftover payment-method chrome: the gateway label ("תשלום מאובטח
   בכרטיס אשראי") + its radio, and the "תשלום מאובטח" description text. We must
   NOT hide the whole .payplus-option-description-area — in inline IFrame mode
   PayPlus injects the card-entry iframe inside it, so hiding the area hid the
   card fields. Hide only the text/checkbox; keep the area (and its iframe). The
   gateway radio stays in the DOM (display:none but still checked) so the order
   processes. */
.wv2-checkout-page #payment .payment_methods > li > label,
.wv2-checkout-page #payment .payment_methods > li > input[type="radio"],
.wv2-checkout-page #payment .payplus-option-description-area > .payment-method-description {
    display: none !important;
}
/* Flatten the now-empty payment box so there's no stray gray panel. */
.wv2-checkout-page #payment .payment_box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* On mobile, show the summary above the billing/payment so the customer
   can see totals and enter a coupon code right at the top. */
.wv2-checkout-sidebar {
    display: block;
    order: -1;
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .wv2-app { padding: 2rem; padding-bottom: 2rem; }

    .wv2-stepper { margin-bottom: 1.5rem; }
    .wv2-stepper__circle { width: 2.5rem; height: 2.5rem; }
    .wv2-stepper__label--full { display: block; }
    .wv2-stepper__label--short { display: none; }
    .wv2-stepper__label { font-size: 0.75rem; }

    .wv2-layout {
        grid-template-columns: 2fr 1fr;
    }

    .wv2-sidebar { display: block; }
    .wv2-mobile-bar { display: none; }
    .wv2-whatsapp-fab { display: none; }

    .wv2-checkout-layout { grid-template-columns: 3fr 2fr; }
    .wv2-checkout-sidebar { display: block; order: 0; }

    .wv2-card { padding: 1.5rem; }

    .wv2-form-grid { grid-template-columns: 1fr 1fr; }

    .wv2-radio-cards { grid-template-columns: 1fr 1fr; }

    .wv2-sim-section { flex-direction: row; align-items: center; justify-content: space-between; }
    .wv2-toggle-group { width: auto; }
}

@media (min-width: 768px) {
    .wv2-stepper__line { margin: 0 1rem; }
}

/* ===== REP MODE ===================================================== */
/* The representative flow (/joincs/) reuses every component, but a
   purple brand palette + banner make it unmistakable so a rep can never
   confuse it with the live customer flow. Redefining the brand custom
   properties on .wv2-app--rep re-themes the whole subtree in one place. */
.wv2-app--rep {
    --wv2-brand:        #7c3aed;
    --wv2-brand-dark:   #6d28d9;
    --wv2-brand-light:  #f3e8ff;
    --wv2-brand-shadow: rgba(124, 58, 237, 0.30);
}

/* Persistent "you are in rep mode" banner. !important throughout because
   Elementor/theme rules outrank single-class selectors on this site. */
.wv2-app--rep .wv2-rep-banner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.25rem !important;
    padding: 0.9rem 1rem !important;
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    border-radius: var(--wv2-radius-btn);
    box-shadow: 0 6px 20px -6px var(--wv2-brand-shadow);
}
.wv2-app--rep .wv2-rep-banner span {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    letter-spacing: 0.01em;
}
.wv2-app--rep .wv2-rep-banner svg { flex: 0 0 auto; stroke: #ffffff; }
.wv2-app--rep .wv2-rep-banner__logout {
    margin-inline-start: auto;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: underline;
    opacity: 0.9;
    white-space: nowrap;
}
.wv2-app--rep .wv2-rep-banner__logout:hover { opacity: 1; }

/* Rep-only waiver panel at the top of step 1 */
.wv2-app--rep .wv2-rep-panel {
    background: var(--wv2-brand-light);
    border: 2px dashed var(--wv2-brand);
    border-radius: var(--wv2-radius-card);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.wv2-app--rep .wv2-rep-panel__title {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800 !important;
    color: var(--wv2-brand-dark) !important;
    font-size: 1.1rem !important;
    margin: 0 0 0.75rem !important;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(124, 58, 237, 0.25);
}
.wv2-app--rep .wv2-rep-panel__title svg { stroke: var(--wv2-brand-dark); }

/* Each waiver option on its OWN full-width line */
.wv2-app--rep .wv2-rep-check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 0.2rem;
    margin: 0;
    cursor: pointer;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
}
.wv2-app--rep .wv2-rep-check:first-of-type { border-top: none; }
.wv2-app--rep .wv2-rep-check input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
.wv2-app--rep .wv2-rep-check__box {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 2px solid var(--wv2-brand);
    border-radius: 6px;
    background: #fff;
    position: relative;
    transition: background 0.15s ease;
}
.wv2-app--rep .wv2-rep-check input:checked + .wv2-rep-check__box {
    background: var(--wv2-brand);
}
.wv2-app--rep .wv2-rep-check input:checked + .wv2-rep-check__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.wv2-app--rep .wv2-rep-check input:focus-visible + .wv2-rep-check__box {
    outline: 2px solid var(--wv2-brand-dark);
    outline-offset: 2px;
}
.wv2-app--rep .wv2-rep-check__text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.wv2-app--rep .wv2-rep-check__text strong {
    color: var(--wv2-brand-dark);
    font-weight: 700;
    font-size: 1rem;
}
.wv2-app--rep .wv2-rep-check__text small { color: var(--wv2-gray-500); }

/* Rep name field (required) — sits right under the panel title */
.wv2-app--rep .wv2-rep-name { margin: 0.1rem 0 0.7rem; }
.wv2-app--rep .wv2-rep-name__label {
    display: block;
    font-weight: 700;
    color: var(--wv2-brand-dark);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.wv2-app--rep .wv2-rep-name__req { color: #dc2626; }
.wv2-app--rep .wv2-rep-name__input { width: 100%; }

/* Option pairs sit side by side on one row (two options per row keeps the
   rep panel short). Stacked back to one-per-line on narrow screens below. */
.wv2-app--rep .wv2-rep-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
}
.wv2-app--rep .wv2-rep-row .wv2-rep-check {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    border-top: none;
}
@media (max-width: 640px) {
    .wv2-app--rep .wv2-rep-row { flex-direction: column; gap: 0; }
    .wv2-app--rep .wv2-rep-row .wv2-rep-check + .wv2-rep-check {
        border-top: 1px dashed rgba(124, 58, 237, 0.15);
    }
}

/* The full-width lifetime-price option closes the panel — restore the row
   separator that :first-of-type strips from the panel's only bare <label> */
.wv2-app--rep .wv2-rep-panel .wv2-rep-check--full {
    border-top: 1px solid rgba(124, 58, 237, 0.15);
}

/* Shared note under the GB gift pair (rep discretion + 1-year term) — same
   amber badge look as "באישור מנהל בלבד", centered under the pair. */
.wv2-app--rep .wv2-rep-subnote {
    display: block;
    width: fit-content;
    margin: 0.3rem auto 0.65rem;
    padding: 0.1rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
}

/* ===== "מקור הגעה" — its own required box below the rep panel =====
   Same visual language as the rep panel; the options are single-select pills. */
.wv2-app--rep .wv2-lead-source__hint {
    margin: -0.25rem 0 0.6rem;
    font-size: 0.85rem;
    color: var(--wv2-gray-600);
}
.wv2-app--rep .wv2-lead-source__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.wv2-app--rep .wv2-lead-source__pill {
    display: inline-block;
    padding: 0.45rem 0.9rem !important;
    background: #fff !important;
    border: 2px solid var(--wv2-brand) !important;
    border-radius: 999px !important;
    color: var(--wv2-brand-dark) !important;
    font-family: var(--wv2-font) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: all 0.15s;
}
.wv2-app--rep .wv2-lead-source__pill:hover {
    background: var(--wv2-brand-light) !important;
}
.wv2-app--rep .wv2-lead-source__pill--selected,
.wv2-app--rep .wv2-lead-source__pill--selected:hover {
    background: var(--wv2-brand) !important;
    color: #fff !important;
}
/* Required-field validation failed: the whole box flags red */
.wv2-app--rep .wv2-lead-source--error {
    border-color: var(--wv2-red);
}
.wv2-app--rep .wv2-lead-source--error .wv2-rep-panel__title {
    color: var(--wv2-red) !important;
    border-bottom-color: rgba(239, 68, 68, 0.35);
}
.wv2-app--rep .wv2-lead-source--error .wv2-rep-panel__title svg {
    stroke: var(--wv2-red);
}

/* "באישור מנהל בלבד" pill on the "הטבות דמי חיבור" option */
.wv2-app--rep .wv2-rep-approval {
    display: inline-block;
    width: fit-content;
    margin-top: 0.3rem;
    padding: 0.1rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
}

/* A waived fee shows "בוטל" in green instead of a price */
.wv2-fee-waived {
    color: var(--wv2-green-dark);
    font-weight: 700;
}

/* Rep "מחיר המסלול שנבחר לכל החיים" promise line — shown under the order
   summary totals (step 1 sidebar/mobile bar + checkout page) when granted */
.wv2-summary-lifetime {
    display: flex;
    align-items: center;
    margin-top: 0.6rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--wv2-green-dark);
    background: #ecfdf5;
    border-radius: 8px;
}

/* Passcode gate — compact login card */
.wv2-rep-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    padding: 1.5rem 1rem;
}
.wv2-rep-gate__card {
    width: 100%;
    max-width: 300px;
    background: var(--wv2-white);
    border-radius: var(--wv2-radius-card);
    box-shadow: var(--wv2-shadow-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.wv2-rep-gate__icon {
    display: flex;
    justify-content: center;
    color: var(--wv2-brand);
    margin-bottom: 0.5rem;
}
.wv2-rep-gate__title {
    margin: 0 0 1rem !important;
    font-size: 1.15rem !important;
    color: var(--wv2-gray-900);
}
.wv2-rep-gate__card .wv2-input {
    text-align: center;
    margin-bottom: 0.85rem;
}
.wv2-rep-gate__btn {
    background: var(--wv2-brand);
    color: #fff;
    border: none;
    border-radius: var(--wv2-radius-btn);
    padding: 0.6rem 2.5rem;
    font-family: var(--wv2-font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.wv2-rep-gate__btn:hover { background: var(--wv2-brand-dark); }
.wv2-rep-gate__error {
    background: #fef2f2;
    color: var(--wv2-red);
    border: 1px solid #fecaca;
    border-radius: var(--wv2-radius-input);
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}
