/*
 * Guest store builder (/start): builder-specific layout only.
 * Everything else comes from the shared system: app.css + lm-design.css tokens, lm-buttons.css,
 * onboarding.css (ob-* wizard cards, choice tiles, slug field, dock), auth.css (progress, Google button),
 * phone-input.css.
 * Logical properties only (EN + AR RTL).
 */
.gb-sr { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gb-fieldset { margin: 0 0 var(--space-4); padding: 0; border: 0; min-inline-size: 0; }
.gb-label { display: block; margin-block-end: var(--space-2); font-weight: 600; font-size: 0.9rem; color: #1e293b; padding: 0; }
.gb-field-hint { margin: var(--space-1) 0 0; font-size: 0.8rem; }
.gb-error { margin: var(--space-1) 0 0; color: #b91c1c; font-size: 0.85rem; font-weight: 500; }
.gb-alert { margin-block: var(--space-3) 0; }
.gb-lang { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 600; }
.gb-wizard .ob-wizard__head { margin-block-end: var(--space-4); }
.gb-wizard .ob-wizard__head h1 { margin-block-start: var(--space-4); overflow-wrap: anywhere; }
.gb-wizard { max-inline-size: 42rem; }

/* back link */
.gb-nav { min-block-size: 44px; display: flex; align-items: center; }
.gb-back { display: inline-flex; align-items: center; gap: var(--space-1); min-block-size: 44px; min-inline-size: 44px; color: #475569; font-weight: 500; font-size: 0.95rem; }
[dir="rtl"] .gb-back__icon { transform: scaleX(-1); }

/* step 1: business-type options are full-width white rows, one per row on mobile, two from tablet up. */
.gb-wizard .gb-types { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin-block: 0 var(--space-2); }
@media (min-width: 768px) { .gb-wizard .gb-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gb-wizard .gb-type { display: flex; flex-direction: row; align-items: center; gap: var(--space-3); min-block-size: 56px; padding: var(--space-2) var(--space-3); padding-inline-start: var(--space-3); border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: none; }
.gb-wizard .gb-type::before { display: none; }
.gb-wizard .gb-type:hover { border-color: #94a3b8; }
.gb-wizard .gb-type:has(input:checked) { border-color: #0f766e; background: #fff; box-shadow: 0 0 0 1px #0f766e; }
.gb-wizard .gb-type:has(input:focus-visible) { outline: 3px solid rgba(15, 118, 110, 0.35); outline-offset: 2px; }
.gb-wizard .gb-type strong { flex: 1 1 auto; min-inline-size: 0; margin: 0; font-size: 1rem; color: #0f172a; overflow-wrap: anywhere; }
.gb-wizard .gb-type:has(input:checked) strong { color: #0f172a; }
.gb-wizard .gb-type__icon { flex: none; color: #0f766e; font-size: 1.5rem; }
.gb-wizard .gb-type__check { flex: none; margin-inline-start: auto; color: #0f766e; visibility: hidden; }
.gb-wizard .gb-type input:checked ~ .gb-type__check { visibility: visible; }

/* step 4: currency choice stays a compact two-up pair */
.gb-wizard .gb-currencies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-block: 0 var(--space-2); }
.gb-wizard .gb-type--inline { min-block-size: 56px; justify-content: center; }
.gb-wizard .gb-type--inline strong { flex: 0 1 auto; text-align: center; }

/* step 3: logo, swatches, covers */
.gb-wizard .form-group > label.gb-logo { margin-block-end: 0; display: flex; align-items: center; gap: var(--space-3); min-block-size: 76px; padding: var(--space-2) var(--space-3); border: 1.5px dashed #94a3b8; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; }
.gb-wizard .gb-logo:has(+ .gb-sr:focus-visible) { outline: 3px solid rgba(15, 118, 110, 0.35); outline-offset: 2px; }
.gb-wizard .gb-logo__thumb { display: grid; place-items: center; flex: none; inline-size: 56px; block-size: 56px; border-radius: 14px; background: var(--gb-brand, #0f766e); color: #fff; overflow: hidden; }
.gb-wizard .gb-logo__thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.gb-wizard .gb-swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.gb-wizard .gb-swatch { position: relative; display: grid; place-items: center; inline-size: 48px; block-size: 48px; cursor: pointer; }
.gb-wizard .gb-swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.gb-wizard .gb-swatch__dot { inline-size: 34px; block-size: 34px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform var(--duration-press, 160ms) var(--ease-out-strong, ease), box-shadow var(--duration-ui, 200ms) ease; }
.gb-wizard .gb-swatch input:checked + .gb-swatch__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sw); transform: scale(1.04); }
.gb-wizard .gb-swatch input:focus-visible + .gb-swatch__dot { outline: 3px solid #0c1222; outline-offset: 4px; }
.gb-wizard .form-group > label.gb-custom { font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-block-start: var(--space-2); font-size: 0.875rem; color: #475569; }
.gb-wizard .gb-custom .form-control { max-inline-size: 160px; text-align: start; }
.gb-wizard .gb-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.gb-wizard .gb-cover { position: relative; display: flex; flex-direction: column; gap: var(--space-1); cursor: pointer; font-size: 0.8rem; font-weight: 500; text-align: center; }
.gb-wizard .gb-cover input { position: absolute; opacity: 0; inset: 0; margin: 0; inline-size: 100%; block-size: 100%; cursor: pointer; }
.gb-wizard .gb-cover__chip { display: block; min-block-size: 52px; border-radius: 12px; background: var(--gb-brand, #0f766e); }
.gb-wizard .gb-cover--sunrise { background: linear-gradient(135deg, var(--gb-brand), #f59e0b); }
.gb-wizard .gb-cover--ocean { background: linear-gradient(135deg, var(--gb-brand), #0ea5e9); }
.gb-wizard .gb-cover--mint { background: linear-gradient(135deg, var(--gb-brand), #34d399); }
.gb-wizard .gb-cover--dusk { background: linear-gradient(135deg, var(--gb-brand), #7c3aed); }
.gb-wizard .gb-cover input:checked ~ .gb-cover__chip { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0c1222; }
.gb-wizard .gb-cover input:focus-visible ~ .gb-cover__chip { outline: 3px solid #0c1222; outline-offset: 5px; }

/* step 4 */
.gb-product { margin-block-end: var(--space-3); padding: var(--space-4); }
.gb-product__n { margin: 0 0 var(--space-3); font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.gb-product .form-group:last-child { margin-block-end: 0; }
.gb-product__fields { display: grid; gap: var(--space-2); }

/* step 5: the no-JS field replaces the widget */
html:not(.js) .gb-phonefield { display: none; }
html.js noscript { display: none; }

/* step 2: link suggestions */
.gb-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-block-start: var(--space-2); }
.gb-suggest[hidden] { display: none; }
.gb-suggest__label { font-size: 0.85rem; color: #475569; }
.gb-suggest__chip { min-block-size: 44px; padding: 0 var(--space-3); border: 1.5px solid #94a3b8; border-radius: 999px; background: #fff; color: #0f766e; font: inherit; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.gb-suggest__chip:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
/* step 6 */
.gb-wizard .gb-wall-store { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-3); margin-block-start: 0; }
.gb-wizard .gb-wall-store__logo { color: #fff; font-size: 1.25rem; display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 14px; background: var(--gb-brand); color: #fff; font-weight: 700; overflow: hidden; }
.gb-wizard .gb-wall-store__logo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.gb-wizard .gb-wall-store__text { display: grid; min-inline-size: 0; overflow-wrap: anywhere; }
.gb-hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.gb-turnstile { display: flex; justify-content: center; margin-block: var(--space-3); min-block-size: 65px; }
.gb-later { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; min-inline-size: 44px; padding-inline: var(--space-3); color: #64748b; font-size: 0.9rem; font-weight: 500; }
.gb-oauth { margin-block-end: var(--space-2); }

/* busy submit */
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .gb-swatch__dot, .btn { transition: none !important; }
  .btn:active:not(:disabled) { transform: none; }
}

/* steps 6 and 7: account form (POST /register) */
.gb-code { margin-block-start: var(--space-2); }
.gb-code > summary { display: flex; align-items: center; min-block-size: 44px; cursor: pointer; color: #0f766e; font-weight: 600; font-size: 0.9rem; }
.gb-wizard .auth-ref-pill { margin-block: var(--space-3) 0; overflow-wrap: anywhere; }
.gb-wizard .auth-check { min-block-size: 44px; align-items: center; }
.gb-wizard .auth-footer { text-align: center; margin-block-start: var(--space-3); }

/* Account step: password toggle sits inside the input at the inline end (flips in RTL); shared lm-password-field.css uses physical right. */
.gb-wizard .lm-password-field__toggle { right: auto; inset-inline-end: 0; min-inline-size: 44px; min-block-size: 44px; border-radius: 0; border-start-end-radius: var(--radius-tiny); border-end-end-radius: var(--radius-tiny); }

/* validation: one banner, inline errors, invalid control */
.gb-alert[hidden], .gb-error[hidden] { display: none; }
.gb-alert__list { margin: var(--space-1) 0 0; padding-inline-start: var(--space-4); }
.gb-alert__list a { color: inherit; text-decoration: underline; font-weight: 600; }
.gb-form [aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { border-color: #b91c1c; }
.gb-form > .gb-alert { margin-block: 0 var(--space-3); }
