/** * Onboarding Wizard styles. * * Extracted from includes/Admin/views/onboarding-wizard.php. * Enqueued via includes/Admin/Menu.php (handle: subscrpt-onboarding-wizard). */ #subscrpt-onboarding-wizard { max-width: 900px; } /* Two columns: the steps on the left, a persistent live-preview rail on the right that stays put while the steps swap. */ /* One card: steps top-left, its nav footer bottom-left, and the preview spanning the full height of the right column. */ .wpsubs-wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: 1fr auto; grid-template-areas: "steps preview" "footer preview"; background: var(--wpsubs-surface, #fff); border: 1px solid var(--wpsubs-border, #e5e7eb); border-radius: var(--wpsubs-radius, 8px); box-shadow: var(--wpsubs-shadow, 0 1px 3px rgba(0, 0, 0, 0.08)); } .wpsubs-wizard-steps { grid-area: steps; min-width: 0; padding: 28px 32px; } .wpsubs-wizard-aside { grid-area: preview; display: flex; flex-direction: column; justify-content: center; padding: 28px 32px; border-left: 1px solid var(--wpsubs-border, #e5e7eb); } .wpsubs-preview { width: 100%; } /* Footer carries the step's Back / Continue buttons, under the steps only. */ .wpsubs-wizard-footer { grid-area: footer; border-top: 1px solid var(--wpsubs-border, #e5e7eb); padding: 16px 32px; } .wpsubs-wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; } /* `display: flex` outweighs the bare `hidden` attribute, so restate it. */ .wpsubs-wizard-nav[hidden] { display: none; } /* Grouped secondary links on the finish step (left of the Finish button). */ .wpsubs-wizard-nav__group { display: flex; gap: 12px; } .wpsubs-preview__label { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wpsubs-text-muted, #6b7280); text-align: center; } .wpsubs-preview__caption { margin: 12px 2px 0; font-size: 12px; line-height: 1.5; color: var(--wpsubs-text-muted, #6b7280); text-align: center; } @media (max-width: 900px) { .wpsubs-wizard-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "preview" "footer"; } .wpsubs-wizard-aside { justify-content: flex-start; border-left: none; border-top: 1px solid var(--wpsubs-border, #e5e7eb); } } /* Page sections — all rendered, JS toggles visibility. The active section animates in on each step change. */ .wpsubs-wizard-section { display: none; } .wpsubs-wizard-section.active { display: block; animation: wpsubs-section-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; } @keyframes wpsubs-section-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @media (prefers-reduced-motion: reduce) { .wpsubs-wizard-section.active { animation: none; } } /* The welcome step animates its own inner content and hosts an absolutely positioned background layer, so it must NOT get the section-level transform — a transform would make it a containing block and shrink that background to the centered card instead of the full panel. */ #subscrpt-section-0.wpsubs-wizard-section.active { animation: none; } /* Stepper */ .wpsubs-wizard-stepper { display: flex; align-items: center; width: fit-content; margin: 0 auto 32px; gap: 0; } .wpsubs-wizard-stepper__step { display: flex; align-items: center; gap: 10px; } .wpsubs-wizard-stepper__num { width: 28px; height: 28px; border-radius: 50%; background: var(--wpsubs-surface-muted); border: 1.5px solid var(--wpsubs-border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--wpsubs-text-muted); flex-shrink: 0; transition: all 0.2s; } .wpsubs-wizard-stepper__step.active .wpsubs-wizard-stepper__num { background: var(--wpsubs-brand); border-color: var(--wpsubs-brand); color: var(--wpsubs-surface); } .wpsubs-wizard-stepper__step.done .wpsubs-wizard-stepper__num { background: var(--wpsubs-brand); border-color: var(--wpsubs-brand); color: transparent; position: relative; } .wpsubs-wizard-stepper__step.done .wpsubs-wizard-stepper__num::after { content: "✓"; position: absolute; color: var(--wpsubs-surface); font-size: 11px; font-weight: 700; top: 50%; left: 50%; transform: translate(-50%, -50%); } .wpsubs-wizard-stepper__step.done + .wpsubs-wizard-stepper__line { background: var(--wpsubs-brand); } .wpsubs-wizard-stepper__label { font-size: 13px; font-weight: 500; color: var(--wpsubs-text-muted); white-space: nowrap; transition: color 0.2s; } .wpsubs-wizard-stepper__step.active .wpsubs-wizard-stepper__label { color: var(--wpsubs-brand); } .wpsubs-wizard-stepper__line { width: 48px; flex-shrink: 0; height: 1px; background: var(--wpsubs-border); margin: 0 8px; } /* Card */ /* No longer its own box — it is the left half of the shared card. */ .wpsubs-wizard-card { padding: 0; margin-bottom: 16px; } /* Welcome page (step 0): standalone intro — no preview, no footer nav. */ .wpsubs-wizard-layout.is-welcome { grid-template-columns: 1fr; grid-template-areas: "steps"; position: relative; overflow: hidden; } .wpsubs-wizard-layout.is-welcome .wpsubs-wizard-aside, .wpsubs-wizard-layout.is-welcome .wpsubs-wizard-footer { display: none; } /* Center the intro in the available height so it doesn't sit at the top. */ .wpsubs-wizard-layout.is-welcome .wpsubs-wizard-steps { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 500px; overflow: hidden; } /* Faint dotted texture across the whole panel. */ .wpsubs-wizard-layout.is-welcome .wpsubs-wizard-steps::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(var(--wpsubs-border, #e5e7eb) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 40%, transparent 100%); opacity: 0.5; pointer-events: none; } /* Two soft brand blobs drifting behind the card. */ .wpsubs-welcome-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; } .wpsubs-welcome-bg::before, .wpsubs-welcome-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(48px); } .wpsubs-welcome-bg::before { width: 320px; height: 320px; top: -110px; left: -90px; background: radial-gradient(circle at 30% 30%, rgba(255, 77, 0, 0.22), transparent 70%); animation: wpsubs-welcome-float-a 13s ease-in-out infinite; } .wpsubs-welcome-bg::after { width: 360px; height: 360px; right: -120px; bottom: -140px; background: radial-gradient(circle at 60% 60%, rgba(255, 166, 133, 0.28), transparent 70%); animation: wpsubs-welcome-float-b 17s ease-in-out infinite; } @keyframes wpsubs-welcome-float-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(26px, 20px) scale(1.08); } } @keyframes wpsubs-welcome-float-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, -18px) scale(1.1); } } .wpsubs-welcome { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; padding: 8px 0; text-align: center; animation: wpsubs-welcome-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; } @keyframes wpsubs-welcome-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } .wpsubs-welcome__logo { display: block; width: 64px; height: 64px; margin: 0 auto 20px; background: transparent; /* drop-shadow follows the icon's transparent shape (box-shadow would frame the square box and show through the transparent corners). */ filter: drop-shadow(0 8px 16px rgba(255, 77, 0, 0.28)); animation: wpsubs-welcome-float-logo 5.5s ease-in-out infinite; } @keyframes wpsubs-welcome-float-logo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } } .wpsubs-welcome__title { font-size: 25px; font-weight: 800; color: var(--wpsubs-text, #374151); margin: 0 0 10px; line-height: 1.25; } .wpsubs-welcome__lead { font-size: 14px; color: var(--wpsubs-text-muted, #6b7280); line-height: 1.65; margin: 0 auto; max-width: 400px; } .wpsubs-welcome__steps { list-style: none; margin: 28px auto 0; padding: 0; text-align: left; display: grid; gap: 10px; } .wpsubs-welcome__steps li { display: flex; align-items: center; gap: 12px; padding: 13px 15px; font-size: 13.5px; font-weight: 500; color: var(--wpsubs-text, #374151); background: var(--wpsubs-surface-muted, #f9fafb); border: 1px solid var(--wpsubs-border, #e5e7eb); border-radius: var(--wpsubs-radius, 8px); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; animation: wpsubs-welcome-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; } .wpsubs-welcome__steps li:nth-child(1) { animation-delay: 0.12s; } .wpsubs-welcome__steps li:nth-child(2) { animation-delay: 0.19s; } .wpsubs-welcome__steps li:nth-child(3) { animation-delay: 0.26s; } .wpsubs-welcome__steps li:hover { border-color: var(--wpsubs-brand, #ff4d00); box-shadow: 0 2px 10px rgba(255, 77, 0, 0.1); transform: translateX(2px); } .wpsubs-welcome__num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--wpsubs-brand, #ff4d00); color: #fff; font-size: 12px; font-weight: 700; } .wpsubs-welcome__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; } .wpsubs-btn--lg { padding: 10px 22px; font-size: 14px; } .wpsubs-welcome__skip { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--wpsubs-text-muted, #6b7280); } .wpsubs-welcome__skip:hover { color: var(--wpsubs-text, #374151); text-decoration: underline; } /* Respect reduced-motion: keep the layout, drop the movement. */ @media (prefers-reduced-motion: reduce) { .wpsubs-welcome, .wpsubs-welcome__logo, .wpsubs-welcome__steps li, .wpsubs-welcome-bg::before, .wpsubs-welcome-bg::after { animation: none; } } /* Form rows (shared) */ .wpsubs-form-row { margin-bottom: 16px; } .wpsubs-form-row label { display: block; font-size: 13px; font-weight: 500; color: var(--wpsubs-text); margin-bottom: 6px; } /* Page 2 */ .wpsubs-p2-page-title { font-size: 22px; font-weight: 800; color: var(--wpsubs-text); margin: 0 0 8px; line-height: 1.25; } .wpsubs-p2-page-subtitle { font-size: 13.5px; color: var(--wpsubs-text-muted); line-height: 1.6; margin: 0 0 28px; } .wpsubs-p2-section-block { margin-bottom: 28px; } .wpsubs-p2-section-label { font-size: 14px; font-weight: 700; color: var(--wpsubs-text); margin: 0 0 4px; } .wpsubs-p2-section-desc { font-size: 13px; color: var(--wpsubs-text-muted); margin: 0 0 14px; } /* Option cards */ .wpsubs-p2-option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; } .wpsubs-p2-option-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius); background: var(--wpsubs-surface); cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; } .wpsubs-p2-option-card:hover { border-color: var(--wpsubs-brand); } .wpsubs-p2-option-card.active { border-color: var(--wpsubs-brand); background: var(--wpsubs-brand-light); } .wpsubs-p2-option-card__icon { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--wpsubs-border); background: var(--wpsubs-surface); display: flex; align-items: center; justify-content: center; color: var(--wpsubs-text-muted); margin-bottom: 4px; } .wpsubs-p2-option-card.active .wpsubs-p2-option-card__icon { border-color: var(--wpsubs-brand); color: var(--wpsubs-brand); } .wpsubs-p2-option-card__title { font-size: 13px; font-weight: 700; color: var(--wpsubs-text); margin: 0; } .wpsubs-p2-option-card__desc { font-size: 12px; color: var(--wpsubs-text-muted); margin: 0; line-height: 1.5; } /* Selected product chip */ .wpsubs-p2-selected-product { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius); background: var(--wpsubs-surface); margin-bottom: 4px; } .wpsubs-p2-selected-product__avatar { width: 36px; height: 36px; border-radius: 6px; background: var(--wpsubs-surface-muted); border: 1px solid var(--wpsubs-border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--wpsubs-text-muted); flex-shrink: 0; } .wpsubs-p2-selected-product__info { flex: 1; min-width: 0; } .wpsubs-p2-selected-product__name { font-size: 13px; font-weight: 600; color: var(--wpsubs-text); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wpsubs-p2-selected-product__meta { font-size: 12px; color: var(--wpsubs-text-muted); margin: 0; } .wpsubs-p2-selected-product__clear { background: none; border: none; cursor: pointer; color: var(--wpsubs-text-muted); font-size: 18px; line-height: 1; padding: 0 4px; flex-shrink: 0; transition: color 0.15s; } .wpsubs-p2-selected-product__clear:hover { color: var(--wpsubs-text); } /* Section 2 body */ .wpsubs-p2-body { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start; } .wpsubs-p2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; } .wpsubs-p2-form-grid .wpsubs-form-row { margin-bottom: 0; } .wpsubs-p2-input-wrap { position: relative; } .wpsubs-p2-input-prefix { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--wpsubs-text-muted); pointer-events: none; z-index: 1; } .wpsubs-p2-input-prefix + .wpsubs-input { padding-left: 24px !important; } .wpsubs-p2-input-suffix { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--wpsubs-text-muted); pointer-events: none; } .wpsubs-p2-input-suffix-input { padding-right: 44px !important; } .wpsubs-p2-field-hint { font-size: 12px; color: var(--wpsubs-text-muted); margin-top: 5px; line-height: 1.4; } /* Page 3: per-duration pricing rows (name + price + on/off toggle) --------- */ .wpsubs-connect-dur { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--wpsubs-border, #e5e7eb); border-radius: var(--wpsubs-radius, 8px); background: var(--wpsubs-surface, #fff); margin-bottom: 8px; } .wpsubs-connect-dur:last-child { margin-bottom: 0; } .wpsubs-connect-dur__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; background: var(--wpsubs-brand-light, #fff1eb); color: var(--wpsubs-brand, #ff4d00); } .wpsubs-connect-dur__icon svg { width: 15px; height: 15px; } .wpsubs-connect-dur__text { flex: 1; min-width: 0; } .wpsubs-connect-dur__name { margin: 0; font-size: 13px; font-weight: 600; color: var(--wpsubs-text, #374151); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wpsubs-connect-dur__billing { margin: 0; font-size: 11.5px; color: var(--wpsubs-text-muted, #6b7280); } .wpsubs-connect-dur__price { flex-shrink: 0; width: 104px; } .wpsubs-connect-dur__price .wpsubs-input { width: 100%; } .wpsubs-connect-dur__switch { flex-shrink: 0; display: inline-flex; align-items: center; cursor: pointer; } /* Dim the price of a duration that's toggled off. */ .wpsubs-connect-dur.is-off .wpsubs-connect-dur__text, .wpsubs-connect-dur.is-off .wpsubs-connect-dur__price { opacity: 0.5; } .wpsubs-p2-label-optional { font-weight: 400; color: var(--wpsubs-text-subtle); font-size: 12px; margin-left: 4px; } /* Page 2 right preview */ .wpsubs-p2-preview-col { position: sticky; top: 80px; } .wpsubs-p2-preview-col-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wpsubs-text-muted); margin: 0 0 10px; } .wpsubs-p2-preview-col-desc { font-size: 12px; color: var(--wpsubs-text-muted); line-height: 1.5; margin-top: 10px; } /* Page 2 nav (outside card) */ .wpsubs-p2-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; } .wpsubs-p2-nav-back { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--wpsubs-text-muted); display: flex; align-items: center; gap: 4px; padding: 0; transition: color 0.15s; } .wpsubs-p2-nav-back:hover { color: var(--wpsubs-text); } /* Product search */ .wpsubs-p2-product-search { position: relative; } .wpsubs-p2-product-search__input-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius); padding: 0 12px; background: var(--wpsubs-surface); transition: border-color 0.15s, box-shadow 0.15s; } .wpsubs-p2-product-search__input-wrap:focus-within { border-color: var(--wpsubs-brand); box-shadow: 0 0 0 3px var(--wpsubs-brand-ring); } .wpsubs-p2-product-search__icon { color: var(--wpsubs-text-muted); flex-shrink: 0; } .wpsubs-p2-product-search__input, .wpsubs-p2-product-search__input:focus { flex: 1; border: none !important; outline: none !important; box-shadow: none !important; padding: 9px 0 !important; font-size: 13px; background: transparent !important; } .wpsubs-p2-product-search__dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--wpsubs-surface); border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius); box-shadow: var(--wpsubs-shadow-md); z-index: 999; max-height: 300px; overflow-y: auto; padding: 4px; } .wpsubs-p2-product-search__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--wpsubs-radius-sm); cursor: pointer; transition: background 0.1s; } .wpsubs-p2-product-search__item:hover { background: var(--wpsubs-surface-muted); } .wpsubs-p2-product-search__avatar { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; } .wpsubs-p2-product-search__info { flex: 1; min-width: 0; } .wpsubs-p2-product-search__name { font-size: 13px; font-weight: 600; color: var(--wpsubs-text); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wpsubs-p2-product-search__meta { font-size: 12px; color: var(--wpsubs-text-muted); margin: 0; } .wpsubs-p2-product-search__price { font-size: 13px; font-weight: 600; color: var(--wpsubs-text); white-space: nowrap; flex-shrink: 0; } .wpsubs-p2-product-search__empty { padding: 12px 10px; font-size: 13px; color: var(--wpsubs-text-muted); text-align: center; } .wpsubs-p2-product-search__item--locked { opacity: 0.55; cursor: not-allowed; } /* A product already attached to a plan — not selectable. */ .wpsubs-p2-product-search__item--disabled { cursor: not-allowed; } .wpsubs-p2-product-search__item--disabled:hover { background: transparent; } .wpsubs-p2-product-search__item--disabled .wpsubs-p2-product-search__avatar, .wpsubs-p2-product-search__item--disabled .wpsubs-p2-product-search__info { opacity: 0.5; } /* Inline "Added to another plan" note next to the product name (matches the Plans admin product tab). */ .wpsubs-p2-product-search__connected { margin-left: 8px; font-size: 12px; font-weight: 400; font-style: italic; color: var(--wpsubs-text-muted, #6b7280); } /* Billing every group — number input + standalone adv-select, matching the plan duration editor (two separate controls with an 8px gap). */ .wpsubs-p2-billing-group { display: flex; gap: 8px; align-items: center; width: 100%; } .wpsubs-p2-billing-group .wpsubs-p2-billing-per-input { flex: 1 1 auto; min-width: 0; } /* Locked (no Pro): frequency is fixed at 1 and not editable. */ .wpsubs-p2-billing-per-input[readonly] { background: var(--wpsubs-surface-muted, #f3f4f6) !important; color: var(--wpsubs-text-muted, #6b7280); cursor: not-allowed; } #subscrpt-billing-period-select { width: 100%; } /* Pro badge + locked fields */ .wpsubs-p2-pro-badge { display: inline-flex; align-items: center; background: var(--wpsubs-brand); color: var(--wpsubs-surface); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em; margin-left: 6px; vertical-align: middle; } .wpsubs-p2-field-pro-locked { opacity: 0.6; } /* Variation picker */ .wpsubs-p2-variation-picker { margin-top: 12px; } .wpsubs-p2-variation-picker__label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wpsubs-text-muted); margin: 0 0 8px; } .wpsubs-p2-variation-picker__loading { font-size: 13px; color: var(--wpsubs-text-muted); padding: 10px 0; } .wpsubs-p2-variation-picker__list { border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius); overflow: hidden; } .wpsubs-p2-variation-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--wpsubs-border); } .wpsubs-p2-variation-item:last-child { border-bottom: none; } .wpsubs-p2-variation-item:hover { background: var(--wpsubs-surface-muted); } .wpsubs-p2-variation-item.selected { background: var(--wpsubs-brand-light); } .wpsubs-p2-variation-item__check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--wpsubs-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: transparent; transition: all 0.15s; } .wpsubs-p2-variation-item.selected .wpsubs-p2-variation-item__check { background: var(--wpsubs-brand); border-color: var(--wpsubs-brand); color: var(--wpsubs-surface); } .wpsubs-p2-variation-item__info { flex: 1; min-width: 0; } .wpsubs-p2-variation-item__name { font-size: 13px; font-weight: 500; color: var(--wpsubs-text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wpsubs-p2-variation-item__meta { font-size: 12px; color: var(--wpsubs-text-muted); margin: 0; } .wpsubs-p2-variation-item__price { font-size: 13px; font-weight: 600; color: var(--wpsubs-text); white-space: nowrap; flex-shrink: 0; } /* Page 3 */ .wpsubs-p3-card { text-align: center; padding: 40px 40px 32px; } /* Final step: working / error states -------------------------------------- */ .wpsubs-finalize-progress, .wpsubs-finalize-error { text-align: center; } .wpsubs-finalize-spinner { width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid var(--wpsubs-brand-light, #fff1eb); border-top-color: var(--wpsubs-brand, #ff4d00); animation: wpsubs-finalize-spin 0.7s linear infinite; } @keyframes wpsubs-finalize-spin { to { transform: rotate(360deg); } } .wpsubs-finalize-steps { list-style: none; margin: 4px auto 0; padding: 0; max-width: 260px; text-align: left; } .wpsubs-finalize-steps li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; font-weight: 500; color: var(--wpsubs-text-muted, #6b7280); } .wpsubs-finalize-steps__dot { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--wpsubs-border-strong, #cbd5e1); background: var(--wpsubs-surface, #fff); transition: border-color 0.2s, background 0.2s; } .wpsubs-finalize-steps li.is-doing { color: var(--wpsubs-text, #374151); } .wpsubs-finalize-steps li.is-doing .wpsubs-finalize-steps__dot { border-color: var(--wpsubs-brand, #ff4d00); border-top-color: transparent; animation: wpsubs-finalize-spin 0.7s linear infinite; } .wpsubs-finalize-steps li.is-done { color: var(--wpsubs-text, #374151); } .wpsubs-finalize-steps li.is-done .wpsubs-finalize-steps__dot { border-color: var(--wpsubs-brand, #ff4d00); background: var(--wpsubs-brand, #ff4d00) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5L6.5 12L13 5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / 11px no-repeat; } .wpsubs-finalize-error__icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; background: #fee2e2; color: #dc2626; } .wpsubs-finalize-error .wpsubs-btn { margin-top: 4px; } .wpsubs-p3-success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--wpsubs-brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; } .wpsubs-p3-heading { font-size: 24px; font-weight: 700; color: var(--wpsubs-text); margin-bottom: 10px; } .wpsubs-p3-subtext { font-size: 13.5px; color: var(--wpsubs-text-muted); line-height: 1.6; max-width: 440px; margin: 0 auto 28px; } /* Product card */ .wpsubs-p3-product-card { border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius); overflow: hidden; margin-bottom: 24px; text-align: left; } .wpsubs-p3-product-card__header { display: grid; grid-template-columns: 1fr 160px 110px; padding: 8px 16px; border-bottom: 1px solid var(--wpsubs-border); } .wpsubs-p3-product-card__header span { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; color: var(--wpsubs-text-muted); text-transform: uppercase; } .wpsubs-p3-product-card__row { display: grid; grid-template-columns: 1fr 160px 110px; align-items: center; padding: 14px 16px; } .wpsubs-p3-product-card__product { display: flex; align-items: center; gap: 12px; } .wpsubs-p3-product-avatar { width: 36px; height: 36px; border-radius: 6px; background: #fde8d8; color: #c2440f; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .wpsubs-p3-product-name { font-size: 13px; font-weight: 600; color: var(--wpsubs-text); margin: 0 0 2px; } .wpsubs-p3-product-meta { font-size: 11.5px; color: var(--wpsubs-text-muted); margin: 0; } .wpsubs-p3-product-card__status { display: flex; flex-direction: column; gap: 4px; } .wpsubs-p3-status-badge { display: inline-flex; align-items: center; gap: 5px; background: #ecfdf5; color: #065f46; font-size: 12px; font-weight: 500; padding: 3px 8px 3px 6px; border-radius: 12px; width: fit-content; } .wpsubs-p3-status-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; flex-shrink: 0; } .wpsubs-p3-status-sub { font-size: 11.5px; color: var(--wpsubs-text-muted); margin: 0; } .wpsubs-p3-product-card__price { text-align: right; } .wpsubs-p3-price-amount { display: block; font-size: 15px; font-weight: 700; color: var(--wpsubs-text); } .wpsubs-p3-price-period { font-size: 11.5px; color: var(--wpsubs-text-muted); } /* What now section */ .wpsubs-p3-what-now-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--wpsubs-text-muted); text-transform: uppercase; text-align: left; margin-bottom: 8px; } .wpsubs-p3-action-rows { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius); overflow: hidden; margin-bottom: 20px; } .wpsubs-p3-action-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--wpsubs-surface); text-decoration: none; text-align: left; border: none; cursor: pointer; width: 100%; box-sizing: border-box; transition: background 0.12s; font-family: inherit; } .wpsubs-p3-action-row + .wpsubs-p3-action-row { border-top: 1px solid var(--wpsubs-border); } .wpsubs-p3-action-row:hover { background: var(--wpsubs-surface-muted); } .wpsubs-p3-action-row__icon { width: 34px; height: 34px; border: 1px solid var(--wpsubs-border); border-radius: var(--wpsubs-radius-sm); background: var(--wpsubs-surface-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--wpsubs-text-muted); } .wpsubs-p3-action-row__content { flex: 1; min-width: 0; } .wpsubs-p3-action-row__title { font-size: 13px; font-weight: 600; color: var(--wpsubs-text); margin: 0 0 2px; } .wpsubs-p3-action-row__desc { font-size: 12px; color: var(--wpsubs-text-muted); margin: 0; } .wpsubs-p3-action-row__chevron { color: var(--wpsubs-text-subtle); flex-shrink: 0; } /* Help footer */ .wpsubs-p3-help-text { font-size: 12.5px; color: var(--wpsubs-text-muted); text-align: center; } .wpsubs-p3-help-link { color: var(--wpsubs-brand); text-decoration: none; } .wpsubs-p3-help-link:hover { text-decoration: underline; } /* Page 3 nav */ .wpsubs-p3-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; } .wpsubs-p3-nav .wpsubs-btn { min-width: 140px; height: 36px; box-sizing: border-box; } /* Page 1 specific — two-column hero layout */ .wpsubs-p1-left { display: flex; flex-direction: column; gap: 0; } .wpsubs-p1-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--wpsubs-brand-light); color: var(--wpsubs-brand); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--wpsubs-border); margin-bottom: 20px; width: fit-content; } .wpsubs-p1-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wpsubs-brand); flex-shrink: 0; } .wpsubs-p1-heading { font-size: 26px; font-weight: 800; color: var(--wpsubs-text); line-height: 1.25; margin: 0 0 20px; } .wpsubs-p1-heading__accent { color: var(--wpsubs-brand); } .wpsubs-p1-desc { font-size: 13.5px; color: var(--wpsubs-text-muted); line-height: 1.6; margin: 0 0 24px; } .wpsubs-p1-bullets { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-direction: column; gap: 12px; } .wpsubs-p1-bullets li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wpsubs-text); } .wpsubs-p1-bullet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wpsubs-brand); flex-shrink: 0; } .wpsubs-p1-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .wpsubs-p1-skip { font-size: 13px; color: var(--wpsubs-text-muted); background: none; border: none; cursor: pointer; padding: 0; text-decoration: none; } .wpsubs-p1-skip:hover { color: var(--wpsubs-text); } /* Right — product preview mockup */ .wpsubs-p1-right { background: var(--wpsubs-surface-muted); border-radius: var(--wpsubs-radius); padding: 20px 20px 14px; border: 1px solid var(--wpsubs-border); transform: rotate(-3deg); transform-origin: center center; } .wpsubs-p1-preview-label { font-size: 13px; font-weight: 600; color: var(--wpsubs-text); margin: 0 0 2px; } .wpsubs-p1-preview-sublabel { font-size: 12px; color: var(--wpsubs-text-muted); margin: 0 0 16px; } .wpsubs-p1-preview-card { background: var(--wpsubs-surface); border-radius: var(--wpsubs-radius); border: 1px solid var(--wpsubs-border); overflow: hidden; box-shadow: var(--wpsubs-shadow-md); } .wpsubs-p1-preview-img { width: 100%; height: 100px; background: linear-gradient(135deg, var(--wpsubs-brand-light) 0%, var(--wpsubs-surface-muted) 100%); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--wpsubs-border); } .wpsubs-p1-preview-img svg { width: 36px; height: 36px; color: var(--wpsubs-brand); opacity: 0.8; } .wpsubs-p1-preview-img__dots { display: flex; gap: 4px; } .wpsubs-p1-preview-img__dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--wpsubs-brand); opacity: 0.3; } .wpsubs-p1-preview-body { padding: 14px; } .wpsubs-p1-preview-name { font-size: 13px; font-weight: 700; text-align: center; color: var(--wpsubs-text); margin: 0 0 4px; } .wpsubs-p1-preview-price { font-size: 13px; text-align: center; color: var(--wpsubs-text); margin: 0 0 12px; } .wpsubs-p1-preview-price span { color: var(--wpsubs-text-muted); font-size: 12px; } .wpsubs-p1-preview-btn { display: block; width: 100%; box-sizing: border-box; background: var(--wpsubs-brand); color: var(--wpsubs-surface); text-align: center; padding: 9px 12px; border-radius: var(--wpsubs-radius-sm); font-size: 13px; font-weight: 600; border: none; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wpsubs-p1-preview-skeletons { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; } .wpsubs-p1-preview-skeleton { height: 10px; border-radius: 4px; background: var(--wpsubs-border); } .wpsubs-p1-preview-skeleton:last-child { width: 65%; } .wpsubs-p1-starts-here { text-align: right; font-size: 11px; color: var(--wpsubs-brand); margin-top: 12px; font-style: italic; display: flex; align-items: center; justify-content: flex-end; gap: 4px; } @media (max-width: 782px) { /* Stack the two-column body (form + preview/summary) on narrow screens. */ .wpsubs-p2-body { grid-template-columns: 1fr; gap: 20px; } .wpsubs-p2-preview-col { position: static; } } /* Page 1 animated plan-structure preview (right column): one Plan -> three Durations -> two Products, joined by flowing lines. */ .wpsubs-p1-graph { position: relative; /* Fluid: fill the preview column instead of a fixed pixel box, so the nodes scale with the rail rather than needing a wider container. */ width: 100%; aspect-ratio: 300 / 420; margin: 10px auto 0; } .wpsubs-p1-graph__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .wpsubs-p1-flow { fill: none; /* Muted by default; a line only turns brand-orange once the duration it belongs to is filled (.is-active, toggled from JS). */ stroke: var(--wpsubs-border, #e5e7eb); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 6; opacity: 0.35; } .wpsubs-p1-flow.is-active { stroke: var(--wpsubs-brand, #ff4d00); opacity: 0.55; animation: wpsubs-p1-flow 0.9s linear infinite; } @keyframes wpsubs-p1-flow { to { stroke-dashoffset: -9; } } .wpsubs-p1-node { position: absolute; z-index: 1; display: flex; align-items: center; gap: 8px; box-sizing: border-box; padding: 10px 12px; background: var(--wpsubs-surface, #fff); border: 1px solid var(--wpsubs-border, #e5e7eb); border-radius: 9px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); font-size: 12px; font-weight: 600; color: var(--wpsubs-text, #374151); line-height: 1.2; white-space: nowrap; overflow: hidden; transform-origin: center; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.12s ease; } .wpsubs-p1-node__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: var(--wpsubs-surface-muted, #f3f4f6); color: var(--wpsubs-text-muted, #6b7280); } .wpsubs-p1-node__icon svg { width: 14px; height: 14px; } .wpsubs-p1-node__label { overflow: hidden; text-overflow: ellipsis; } /* Two-line node body: title over a muted subtitle. */ .wpsubs-p1-node__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .wpsubs-p1-node__title { font-size: 12px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wpsubs-p1-node__sub { font-size: 10px; font-weight: 500; line-height: 1.3; color: var(--wpsubs-text-muted, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wpsubs-p1-node--plan .wpsubs-p1-node__sub { color: var(--wpsubs-brand, #ff4d00); opacity: 0.85; } /* Plan node — brand accent, top of the fan-out. Widths are a % of the graph so they scale with the column. */ .wpsubs-p1-node--plan { width: 58%; border-color: var(--wpsubs-brand, #ff4d00); background: var(--wpsubs-brand-light, #fff1eb); color: var(--wpsubs-brand-dark, #d93f00); } .wpsubs-p1-node--plan .wpsubs-p1-node__icon { background: var(--wpsubs-brand, #ff4d00); color: #fff; } /* Durations (x3) — narrower, so tighten padding/icon to keep text room. */ .wpsubs-p1-node--dur { width: 30%; padding: 8px 9px; gap: 6px; } .wpsubs-p1-node--dur .wpsubs-p1-node__icon { width: 20px; height: 20px; } /* Products (x2). */ .wpsubs-p1-node--prod { width: 44%; } /* Ghost nodes — the "you can add more later" placeholders. */ .wpsubs-p1-node--ghost { opacity: 0.45; border-style: dashed; box-shadow: none; } /* The product card stays muted on the plan/duration steps and only comes to life on the connect step (and after). */ .wpsubs-p1-graph:not([data-active="prod"]):not([data-active="done"]) .wpsubs-p1-node--prod:not(.wpsubs-p1-node--ghost) { opacity: 0.45; border-style: dashed; box-shadow: none; } /* The group belonging to the current step gets a brand ring. Ghosts never light up — only the node the step actually fills in. */ .wpsubs-p1-graph[data-active="plan"] .wpsubs-p1-node--plan, .wpsubs-p1-graph[data-active="dur"] .wpsubs-p1-node--dur:not(.wpsubs-p1-node--ghost), .wpsubs-p1-graph[data-active="prod"] .wpsubs-p1-node--prod:not(.wpsubs-p1-node--ghost) { border-color: var(--wpsubs-brand, #ff4d00); background: var(--wpsubs-brand-light, #fff1eb); box-shadow: 0 0 0 3px var(--wpsubs-brand-ring, rgba(255, 77, 0, 0.22)); animation: wpsubs-p1-pulse 1.6s ease-in-out infinite; } /* Keep the subtitle readable on the tinted background. */ .wpsubs-p1-graph[data-active="dur"] .wpsubs-p1-node--dur:not(.wpsubs-p1-node--ghost) .wpsubs-p1-node__sub, .wpsubs-p1-graph[data-active="prod"] .wpsubs-p1-node--prod:not(.wpsubs-p1-node--ghost) .wpsubs-p1-node__sub { color: var(--wpsubs-brand-dark, #d93f00); } /* Past the durations step, the set duration cards keep a static brand tint (no pulse) — the same way the plan card stays coloured after step 1. */ .wpsubs-p1-graph[data-active="prod"] .wpsubs-p1-node--dur:not(.wpsubs-p1-node--ghost), .wpsubs-p1-graph[data-active="done"] .wpsubs-p1-node--dur:not(.wpsubs-p1-node--ghost), .wpsubs-p1-graph[data-active="done"] .wpsubs-p1-node--prod:not(.wpsubs-p1-node--ghost) { border-color: var(--wpsubs-brand, #ff4d00); background: var(--wpsubs-brand-light, #fff1eb); } .wpsubs-p1-graph[data-active="prod"] .wpsubs-p1-node--dur:not(.wpsubs-p1-node--ghost) .wpsubs-p1-node__sub, .wpsubs-p1-graph[data-active="done"] .wpsubs-p1-node--dur:not(.wpsubs-p1-node--ghost) .wpsubs-p1-node__sub, .wpsubs-p1-graph[data-active="done"] .wpsubs-p1-node--prod:not(.wpsubs-p1-node--ghost) .wpsubs-p1-node__sub { color: var(--wpsubs-brand-dark, #d93f00); } @keyframes wpsubs-p1-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--wpsubs-brand-ring, rgba(255, 77, 0, 0.22)); } 50% { box-shadow: 0 0 0 5px rgba(255, 77, 0, 0.1); } } /* Zoom the card whose field is currently focused (wins over the pulse). */ .wpsubs-p1-graph[data-focus="plan"] .wpsubs-p1-node--plan, .wpsubs-p1-graph[data-focus="prod"] .wpsubs-p1-node--prod:not(.wpsubs-p1-node--ghost), .wpsubs-p1-node.is-zoom:not(.wpsubs-p1-node--ghost) { transform: scale(1.14); z-index: 3; border-color: var(--wpsubs-brand, #ff4d00); box-shadow: 0 10px 22px rgba(255, 77, 0, 0.2); animation: none; } @media (prefers-reduced-motion: reduce) { .wpsubs-p1-flow, .wpsubs-p1-graph .wpsubs-p1-node { animation: none; } } /* Button loading state (plan create / connect requests in flight). */ .wpsubs-btn.is-loading { opacity: 0.6; cursor: progress; pointer-events: none; } /* Free-trial line in the step-2 plan preview. */ .wpsubs-p1-preview-trial { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #15803d; } /* Pro-locked plan-type cards on the create-plan step. */ .wpsubs-p2-option-card:disabled { opacity: 0.55; cursor: not-allowed; } /* List layout for the plan-type cards (create-plan step): each row is icon + text, full width, with the check centered on the right. */ .wpsubs-p2-option-cards--list { display: flex; flex-direction: column; gap: 8px; } .wpsubs-p2-option-cards--list .wpsubs-p2-option-card { flex-direction: row; align-items: center; gap: 12px; padding: 12px 44px 12px 16px; } .wpsubs-p2-option-cards--list .wpsubs-p2-option-card__icon { margin-bottom: 0; flex-shrink: 0; } .wpsubs-p2-option-card__text { min-width: 0; } /* Compact option cards (connect step): horizontal icon + title, no description, so the two choices stay small. */ .wpsubs-p2-option-cards--compact .wpsubs-p2-option-card { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; } .wpsubs-p2-option-cards--compact .wpsubs-p2-option-card__icon { width: 28px; height: 28px; margin-bottom: 0; flex-shrink: 0; } .wpsubs-p2-option-cards--compact .wpsubs-p2-option-card__title { font-size: 12.5px; } /* Durations accordion (step 2). */ .wpsubs-dur { border: 1px solid var(--wpsubs-border, #e5e7eb); border-radius: var(--wpsubs-radius, 8px); background: var(--wpsubs-surface, #fff); margin-bottom: 10px; } .wpsubs-dur__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; } .wpsubs-dur.is-open .wpsubs-dur__head { border-bottom: 1px solid var(--wpsubs-border, #e5e7eb); } .wpsubs-dur__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; background: var(--wpsubs-brand-light, #fff1eb); color: var(--wpsubs-brand, #ff4d00); } .wpsubs-dur__icon svg { width: 15px; height: 15px; } .wpsubs-dur__title { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--wpsubs-text, #374151); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wpsubs-dur__remove { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border: none; background: none; border-radius: 5px; color: var(--wpsubs-text-subtle, #9ca3af); font-size: 20px; line-height: 1; cursor: pointer; transition: color 0.12s, background 0.12s; } .wpsubs-dur__remove:hover { color: #dc2626; background: #fef2f2; } #subscrpt-durations.has-multiple .wpsubs-dur__remove { display: inline-flex; } .wpsubs-dur__chevron { flex-shrink: 0; color: var(--wpsubs-text-subtle, #9ca3af); transition: transform 0.18s ease; } .wpsubs-dur.is-open .wpsubs-dur__chevron { transform: rotate(180deg); } .wpsubs-dur__body { padding: 14px; } .wpsubs-dur:not(.is-open) .wpsubs-dur__body { display: none; } /* Cadence picker keeps its content width; the number input flexes to fill the rest, so the picker never gets squeezed. */ .wpsubs-dur__interval { flex: 0 0 auto; }