:root {
    /* Component aliases consume the parent theme contract without redefining
       shared --wl-* tokens. This keeps client dark mode, density and reseller
       radius/surface choices intact when this stylesheet loads after custom.css. */
    --wl-brand-primary: var(--brand-primary, #3451e6);
    --wl-brand-strong: var(--brand-primary-dark, #2336a8);
    --wl-brand-soft: color-mix(in srgb, var(--wl-brand-primary) 9%, #fff);
    --wl-on-brand: #fff;
    --wl-font: inherit;
    --rwl-brand: var(--wl-brand-primary);
    --rwl-brand-strong: var(--wl-brand-strong);
    --rwl-ink: var(--wl-text, var(--text-primary, #111827));
    --rwl-muted: var(--wl-muted, var(--text-muted, #667085));
    --rwl-surface: var(--wl-surface, var(--surface-primary, #fff));
    --rwl-surface-soft: var(--wl-surface-subtle, var(--surface-secondary, #f7f8fb));
    --rwl-border: var(--wl-border, var(--border-color, #e3e7ef));
    --rwl-radius: var(--wl-radius, 16px);
}

.rwl-store { color: var(--rwl-ink); font-family: var(--wl-font); margin: 0 auto; max-width: 1320px; padding: clamp(20px, 4vw, 56px) clamp(16px, 3vw, 32px) 80px; }
.rwl-store *, .rwl-store *::before, .rwl-store *::after { box-sizing: border-box; }
.rwl-store__hero { background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--rwl-brand) 16%, transparent), transparent 34%), linear-gradient(135deg, var(--rwl-surface), var(--rwl-surface-soft)); border: 1px solid var(--rwl-border); border-radius: var(--wl-radius-lg, 24px); display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) auto; margin: 0 0 28px; overflow: hidden; padding: clamp(28px, 6vw, 64px); position: relative; }
.rwl-store__hero-copy { max-width: 780px; position: relative; z-index: 1; }
.rwl-store__hero h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); letter-spacing: -.055em; line-height: 1.02; margin: 10px 0 18px; max-width: 780px; text-wrap: balance; }
.rwl-store__hero p:not(.rwl-store__eyebrow) { color: var(--rwl-muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.65; margin: 0; max-width: 650px; }
.rwl-store__eyebrow { color: var(--rwl-brand-strong); font-size: .75rem; font-weight: 800; letter-spacing: .13em; margin: 0; text-transform: uppercase; }
.rwl-store__hero-mark { align-self: center; border: 1px solid color-mix(in srgb, var(--rwl-brand) 20%, transparent); border-radius: 50%; display: grid; height: 124px; opacity: .9; place-items: center; width: 124px; }
.rwl-store__hero-mark::before { background: var(--rwl-brand); border-radius: 16px; box-shadow: -28px 22px 0 color-mix(in srgb, var(--rwl-brand) 50%, transparent), 28px -22px 0 color-mix(in srgb, var(--rwl-brand) 24%, transparent); content: ""; height: 38px; transform: rotate(45deg); width: 38px; }
.rwl-store__assurance { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -4px 0 28px; }
.rwl-assurance-item { align-items: center; color: var(--rwl-muted); display: flex; font-size: .88rem; gap: 9px; }
.rwl-assurance-item::before { background: var(--wl-brand-soft); border-radius: 50%; color: var(--rwl-brand-strong); content: "\2713"; display: grid; flex: 0 0 24px; font-size: .75rem; font-weight: 900; height: 24px; place-items: center; }
.rwl-store__controls { align-items: end; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--rwl-surface) 94%, transparent); border: 1px solid var(--rwl-border); border-radius: var(--rwl-radius); box-shadow: var(--wl-shadow-sm, 0 1px 2px rgba(16, 24, 40, .04)); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-bottom: 18px; padding: 14px; position: sticky; top: 12px; z-index: 6; }
.rwl-control { display: grid; gap: 7px; min-width: 180px; }
.rwl-control label, .rwl-cycle-picker legend { color: var(--rwl-muted); font-size: .72rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.rwl-control--search { flex: 1 1 220px; max-width: 360px; }
.rwl-control select, .rwl-control input { appearance: none; background: var(--rwl-surface); border: 1px solid var(--rwl-border); border-radius: var(--wl-radius-sm, 10px); color: var(--rwl-ink); min-height: 44px; padding: 9px 13px; width: 100%; }
.rwl-control select { padding-right: 38px; }
.rwl-control select:focus-visible, .rwl-control input:focus-visible, .rwl-cycle-picker button:focus-visible, .rwl-button:focus-visible { border-color: var(--rwl-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rwl-brand) 18%, transparent); outline: 2px solid transparent; }
.rwl-cycle-picker { border: 0; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.rwl-cycle-picker legend { margin-bottom: 7px; width: 100%; }
.rwl-cycle-picker button { background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--rwl-muted); cursor: pointer; min-height: 40px; padding: 8px 13px; }
.rwl-cycle-picker button:hover { background: var(--rwl-surface-soft); color: var(--rwl-ink); }
.rwl-cycle-picker button[aria-pressed="true"] { background: var(--wl-brand-soft); border-color: color-mix(in srgb, var(--rwl-brand) 25%, transparent); color: var(--rwl-brand-strong); font-weight: 750; }
.rwl-store__catalog-heading { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin: 38px 0 16px; }
.rwl-store__catalog-heading h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.03em; margin: 4px 0 0; }
.rwl-store__status { color: var(--rwl-muted); font-size: .875rem; margin: 0; min-height: 20px; text-align: right; }
.rwl-plan-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.rwl-plan { background: var(--rwl-surface); border: 1px solid var(--rwl-border); border-radius: var(--rwl-radius); box-shadow: var(--wl-shadow-sm, 0 1px 2px rgba(16, 24, 40, .04)); display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 24px; position: relative; }
.rwl-plan::before { background: linear-gradient(90deg, var(--rwl-brand), color-mix(in srgb, var(--rwl-brand) 40%, transparent)); content: ""; height: 3px; inset: 0 0 auto; opacity: 0; position: absolute; }
.rwl-plan--featured { border-color: color-mix(in srgb, var(--rwl-brand) 50%, var(--rwl-border)); box-shadow: var(--wl-shadow-lg, 0 24px 60px rgba(16, 24, 40, .12)); }
.rwl-plan--featured::before { opacity: 1; }
.rwl-plan__topline { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 16px; min-height: 28px; }
.rwl-plan__badge { background: var(--wl-brand-soft); border-radius: 999px; color: var(--rwl-brand-strong); font-size: .68rem; font-weight: 850; letter-spacing: .06em; padding: 6px 10px; text-transform: uppercase; }
.rwl-plan__availability { align-items: center; color: var(--wl-success, #087a55); display: inline-flex; font-size: .75rem; font-weight: 700; gap: 6px; margin-left: auto; }
.rwl-plan__availability::before { background: currentColor; border-radius: 50%; content: ""; height: 7px; width: 7px; }
.rwl-plan h3 { font-size: 1.35rem; letter-spacing: -.025em; margin: 0 0 7px; }
.rwl-plan__use-case { align-items: baseline; background: var(--rwl-surface-soft); border-radius: var(--wl-radius-sm, 10px); display: flex; gap: 8px; margin: 8px 0 0; padding: 9px 11px; }
.rwl-plan__use-case span { color: var(--rwl-muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.rwl-plan__use-case strong { font-size: .85rem; }
.rwl-plan__summary { color: var(--rwl-muted); line-height: 1.55; margin: 0; min-height: 48px; }
.rwl-plan__price { border-bottom: 1px solid var(--rwl-border); margin: 20px 0; min-height: 88px; padding-bottom: 20px; }
.rwl-plan__price strong { display: inline; font-size: clamp(1.65rem, 3vw, 2.05rem); letter-spacing: -.04em; }
.rwl-plan__price span { color: var(--rwl-muted); margin-left: 4px; }
.rwl-plan__price small { color: var(--rwl-muted); display: block; font-size: .76rem; margin-top: 6px; }
.rwl-plan__price .rwl-plan__price-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .06em; margin: 0 0 5px; text-transform: uppercase; }
.rwl-plan__features { display: grid; gap: 0; list-style: none; margin: 0 0 24px; padding: 0; }
.rwl-plan__features li { align-items: baseline; border-bottom: 1px solid color-mix(in srgb, var(--rwl-border) 65%, transparent); display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; }
.rwl-plan__features li:last-child { border-bottom: 0; }
.rwl-plan__features span { color: var(--rwl-muted); font-size: .86rem; }
.rwl-plan__features strong { font-size: .88rem; text-align: right; }
.rwl-button { align-items: center; background: var(--rwl-brand); border: 1px solid var(--rwl-brand); border-radius: var(--wl-radius-sm, 10px); color: var(--wl-on-brand); display: inline-flex; font-weight: 750; gap: 8px; justify-content: center; margin-top: auto; min-height: 46px; padding: 11px 16px; text-decoration: none; }
.rwl-store a.rwl-button,
.rwl-store a.rwl-button > span { color: var(--wl-on-brand) !important; }
.rwl-button:hover, .rwl-button:focus-visible { background: var(--rwl-brand-strong); border-color: var(--rwl-brand-strong); color: var(--wl-on-brand); text-decoration: none; }
.rwl-button[data-order-link]::after { content: "\2192"; font-size: 1.05rem; }
.rwl-button[aria-disabled="true"], .rwl-button:disabled { cursor: not-allowed; opacity: .45; }
.rwl-button--secondary { background: transparent; color: var(--rwl-brand-strong); }
.rwl-button--secondary:hover { color: var(--wl-on-brand); }
.rwl-empty-state { background: var(--rwl-surface-soft); border: 1px dashed var(--rwl-border); border-radius: var(--wl-radius-lg, 24px); margin: 32px 0; padding: 56px 24px; text-align: center; }
.rwl-empty-state h2 { letter-spacing: -.025em; }
.rwl-empty-state p { color: var(--rwl-muted); }
.rwl-empty-state .rwl-button { margin-top: 12px; }
.rwl-comparison { border-top: 1px solid var(--rwl-border); margin-top: 64px; padding-top: 40px; }
.rwl-comparison__header { align-items: end; display: flex; gap: 20px; justify-content: space-between; }
.rwl-comparison__header h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.03em; margin: 6px 0 0; }
.rwl-comparison__header .rwl-button { margin: 0; }
.rwl-comparison__scroller { border: 1px solid var(--rwl-border); border-radius: var(--rwl-radius); box-shadow: var(--wl-shadow-sm, 0 1px 2px rgba(16, 24, 40, .04)); margin-top: 24px; overflow: auto; }
.rwl-comparison table { border-collapse: separate; border-spacing: 0; min-width: 760px; width: 100%; }
.rwl-comparison th, .rwl-comparison td { border-bottom: 1px solid var(--rwl-border); padding: 16px; text-align: left; }
.rwl-comparison thead th { background: var(--rwl-surface-soft); color: var(--rwl-ink); position: sticky; top: 0; z-index: 2; }
.rwl-comparison thead th:first-child, .rwl-comparison tbody th { left: 0; position: sticky; z-index: 3; }
.rwl-comparison tbody th { background: var(--rwl-surface); color: var(--rwl-muted); font-weight: 650; }
.rwl-comparison tbody tr:last-child th, .rwl-comparison tbody tr:last-child td { border-bottom: 0; }
.rwl-store[data-loading="true"] { cursor: progress; }
.rwl-store[data-loading="true"]::after { animation: rwl-progress 1s infinite ease-in-out; background: var(--rwl-brand); content: ""; height: 3px; left: 0; position: fixed; right: 0; top: 0; transform-origin: left; z-index: 10000; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
[hidden] { display: none !important; }
@keyframes rwl-progress { 0% { transform: scaleX(.1); } 50% { transform: scaleX(.72); } 100% { transform: scaleX(.96); } }
@media (max-width: 760px) {
    .rwl-store { padding: 16px 16px 56px; }
    .rwl-store__hero { grid-template-columns: 1fr; padding: 32px 24px; }
    .rwl-store__hero-mark { display: none; }
    .rwl-store__assurance { grid-template-columns: 1fr; padding-inline: 4px; }
    .rwl-store__controls { align-items: stretch; flex-direction: column; gap: 1rem; position: static; }
    .rwl-control { min-width: 0; width: 100%; }
    .rwl-control--search { flex: 0 0 auto; max-width: none; }
    .rwl-control input[type="search"] { display: block; height: 44px; min-height: 44px; max-height: 44px; line-height: 1.2; padding: 9px 13px; }
    .rwl-cycle-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .rwl-cycle-picker legend { grid-column: 1 / -1; }
    .rwl-store__catalog-heading, .rwl-comparison__header { align-items: stretch; flex-direction: column; }
    .rwl-store__status { text-align: left; }
    .rwl-plan { padding: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
    .rwl-plan, .rwl-button { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
    .rwl-plan:hover { box-shadow: 0 16px 36px rgba(16, 24, 40, .1); transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .rwl-store[data-loading="true"]::after { animation: none; transform: scaleX(1); } }
@media (forced-colors: active) { .rwl-plan--featured, .rwl-cycle-picker button[aria-pressed="true"] { border: 2px solid ButtonText; } }

/* Configure Product remains the installed Standard Cart form. This wrapper
   changes only composition and presentation; names, scripts, summary and
   validation stay authoritative. */
.rwl-configure { box-sizing: border-box; width: min(100% - 2rem, 1420px); margin: 0 auto; padding: 1rem 0 4rem; color: var(--rwl-ink); }
.rwl-configure *, .rwl-configure *::before, .rwl-configure *::after { box-sizing: border-box; }
.rwl-configure__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; margin-bottom: .65rem; color: var(--rwl-muted); font-size: .76rem; }
.rwl-configure__topline a { color: var(--rwl-muted); font-weight: 700; text-decoration: none; }
.rwl-configure__topline a:hover { color: var(--rwl-brand); }
.rwl-configure__topline span { padding: .28rem .55rem; border: 1px solid var(--rwl-border); border-radius: 999px; background: var(--rwl-surface-soft); font-weight: 750; }
.rwl-configure #order-standard_cart { padding: 0; }
.rwl-configure #order-standard_cart > .row { display: block; margin: 0; }
.rwl-configure #order-standard_cart .cart-sidebar,
.rwl-configure #order-standard_cart .sidebar-collapsed { display: none !important; }
.rwl-configure #order-standard_cart .cart-body { width: 100%; max-width: none; padding: 0; }
.rwl-configure #order-standard_cart .header-lined { margin: 0 0 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--rwl-border); border-radius: calc(var(--rwl-radius) + 4px); background: radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--rwl-brand) 10%, transparent), transparent 35%), var(--rwl-surface); box-shadow: var(--wl-shadow-sm, 0 7px 22px rgba(15, 23, 42, .055)); }
.rwl-configure #order-standard_cart .header-lined h1 { margin: 0; color: var(--rwl-ink); font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 780; letter-spacing: -.04em; }
.rwl-configure #frmConfigureProduct > .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 1rem; margin: 0; }
.rwl-configure #order-standard_cart .secondary-cart-body,
.rwl-configure #order-standard_cart .secondary-cart-sidebar { width: auto; max-width: none; padding: 0; }
.rwl-configure #order-standard_cart .secondary-cart-body { min-width: 0; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--rwl-border); border-radius: var(--rwl-radius); background: var(--rwl-surface); box-shadow: var(--wl-shadow-sm, 0 7px 22px rgba(15, 23, 42, .045)); }
.rwl-configure #order-standard_cart .product-info { margin: 0 0 1.25rem; padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, var(--rwl-brand) 18%, var(--rwl-border)); border-radius: var(--wl-radius-sm, 10px); background: color-mix(in srgb, var(--rwl-brand) 6%, var(--rwl-surface)); }
.rwl-configure #order-standard_cart .product-info .product-title { margin: 0 0 .3rem; color: var(--rwl-ink); font-size: 1.15rem; font-weight: 780; }
.rwl-configure #order-standard_cart .product-info p:last-child { margin-bottom: 0; color: var(--rwl-muted); }
.rwl-configure #order-standard_cart .sub-heading { margin: 1.4rem 0 .75rem; border: 0; text-align: left; }
.rwl-configure #order-standard_cart .sub-heading span { display: block; padding: 0; color: var(--rwl-ink); background: transparent !important; font-size: .92rem; font-weight: 780; }
.rwl-configure #order-standard_cart .field-container { margin: 0; padding: 1rem; border: 1px solid var(--rwl-border); border-radius: var(--wl-radius-sm, 10px); background: var(--rwl-surface-soft); }
.rwl-configure #order-standard_cart .form-group { margin-bottom: 1rem; }
.rwl-configure #order-standard_cart .form-group:last-child { margin-bottom: 0; }
.rwl-configure #order-standard_cart .form-group > label { margin-bottom: .38rem; color: var(--rwl-ink); font-size: .76rem; font-weight: 750; }
.rwl-configure #order-standard_cart .form-control,
.rwl-configure #order-standard_cart .custom-select { min-height: 42px; border-color: var(--rwl-border); border-radius: var(--wl-radius-sm, 10px); color: var(--rwl-ink); background-color: var(--rwl-surface); }
.rwl-configure #order-standard_cart .form-control:focus,
.rwl-configure #order-standard_cart .custom-select:focus { border-color: color-mix(in srgb, var(--rwl-brand) 58%, var(--rwl-border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rwl-brand) 14%, transparent); }
.rwl-configure #order-standard_cart .secondary-cart-sidebar { position: sticky; top: 86px; }
.rwl-configure #order-standard_cart #orderSummary { padding: 1rem; border: 1px solid var(--rwl-border); border-radius: var(--rwl-radius); background: var(--rwl-surface); box-shadow: var(--wl-shadow-sm, 0 7px 22px rgba(15, 23, 42, .055)); }
.rwl-configure #order-standard_cart .order-summary { margin: 0 0 1rem; border: 0; border-radius: 0; background: transparent; }
.rwl-configure #order-standard_cart .order-summary h2 { margin: 0; padding: 0 0 .8rem; border-bottom: 1px solid var(--rwl-border); color: var(--rwl-ink); background: transparent; font-size: 1rem; font-weight: 780; text-align: left; }
.rwl-configure #order-standard_cart #btnCompleteProductConfig { width: 100%; min-height: 44px; border-color: var(--rwl-brand); border-radius: var(--wl-radius-sm, 10px); background: var(--rwl-brand); font-size: .86rem; font-weight: 750; }
.rwl-configure #order-standard_cart .panel-addon { overflow: hidden; border-color: var(--rwl-border); border-radius: var(--wl-radius-sm, 10px); box-shadow: none; }
.rwl-configure #order-standard_cart .alert { border-radius: var(--wl-radius-sm, 10px); }

@media (max-width: 900px) {
    .rwl-configure #frmConfigureProduct > .row { grid-template-columns: 1fr; }
    .rwl-configure #order-standard_cart .secondary-cart-sidebar { position: static; }
}
@media (max-width: 600px) {
    .rwl-configure { width: min(100% - 1rem, 1420px); padding-top: .5rem; }
    .rwl-configure__topline { align-items: flex-start; flex-direction: column; }
    .rwl-configure #order-standard_cart .secondary-cart-body,
    .rwl-configure #order-standard_cart #orderSummary { padding: 1rem; }
}
