:root{--accent:#165b49;--ink:#172c26;--paper:#f5f3ee;--muted:#68766f}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Tahoma,Arial,sans-serif;line-height:1.7}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:9px;padding:12px 19px;background:var(--accent);color:white;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px}button:hover,.button:hover{filter:brightness(.93)}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:#e5ebe5;color:var(--ink)}input,select,textarea{display:block;width:100%;border:1px solid #ccd3ca;border-radius:8px;padding:11px 12px;background:white;color:var(--ink);min-width:0}textarea{min-height:95px;resize:vertical}label{display:block;font-size:14px;font-weight:600}a{color:var(--accent)}h1,h2,h3{line-height:1.3}h1{font-size:34px}h2{font-size:27px}p{color:var(--muted)}.brand{letter-spacing:2px;font-size:15px;font-weight:800;color:var(--accent)}.workspace{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.workspace aside{padding:30px 20px;border-inline-end:1px solid #d9dfd6;background:#f9f9f5}.workspace aside label{margin-top:30px}.workspace nav{display:grid;gap:7px;margin:26px 0}.nav{justify-content:flex-start;background:transparent;color:var(--muted)}.nav.active{background:var(--accent);color:white}.aside-note{font-size:12px;margin-top:40px}.workspace main{padding:35px 45px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent);font-weight:700}.panel{background:white;border:1px solid #dde2d9;border-radius:16px;padding:26px;margin:20px 0}.integration{font-size:13px;padding:12px 18px;border-radius:9px;background:#eee8d6;color:#665a32}.stats,.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.stats .panel{margin:0}.stats strong{display:block;font-size:34px}.cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin:20px 0}.cards article{border:1px solid #e1e4dc;padding:20px;border-radius:12px}.welcome{background:linear-gradient(130deg,#e4eddf,#fdfbf5)}.welcome h2{font-size:46px}.fields{display:grid;gap:18px;max-width:780px}.market,.toolbar,.builder-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.market>input{max-width:130px}.check{display:flex;align-items:center;gap:10px}.check input{width:auto}.notice{padding:10px;color:#165b49}.notice:empty{display:none}.bad{color:#9d302a}.domain,.builder-block{padding:20px;border:1px solid #d8dfd5;border-radius:12px;margin:18px 0}.domain code{overflow-wrap:anywhere}.builder-block label{margin-top:12px}.builder-block .toolbar>b{margin-inline-end:auto}.builder-block button{padding:6px 12px;min-height:36px}.table{overflow:auto}table{border-collapse:collapse;width:100%;text-align:start;font-size:13px}td,th{padding:14px;border-bottom:1px solid #e1e5de;vertical-align:top}.login{max-width:480px;margin:10vh auto;padding:30px}.login h1{font-size:46px}.login form{display:grid;gap:18px;margin-top:30px}.empty{text-align:center;padding:100px 25px}.store-header{padding:20px max(24px,calc((100vw - 1200px)/2));background:white;border-bottom:1px solid #dde2d9;position:relative;z-index:2}.store-header>a{font-size:22px;font-weight:800;text-decoration:none}.store-header>span{font-size:12px;background:#e9f0e4;border-radius:20px;padding:7px 14px}.storefront{max-width:1180px;margin:auto;padding:0 24px 100px}.store-section{padding:65px 0;border-bottom:1px solid #dce1d7}.store-section h2{text-align:center;margin-bottom:30px}.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:60px}.hero h1{font-size:50px;line-height:1.6}.hero p{font-size:20px;white-space:pre-line}.hero img{width:100%;border-radius:26px;aspect-ratio:1;object-fit:cover}.trust{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:20px}.trust span{padding:7px 13px;background:#e5ecdf;border-radius:20px}.benefits{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:20px}.benefits p{padding:24px;background:white;border-radius:12px;white-space:pre-line}.gallery,video{display:block;max-width:100%;max-height:650px;border-radius:18px;margin:auto}.store-section details{background:white;padding:20px;border-radius:10px;margin:12px 0}.store-section summary{cursor:pointer;font-weight:700}.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}.product{background:white;padding:22px;border-radius:18px}.product img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px}.product p{white-space:pre-line}.product button{width:100%}#checkoutForm{max-width:650px;margin:35px auto;background:white;padding:30px;border-radius:20px;border:1px solid #dae0d4}#checkoutForm label{margin:15px 0}#checkoutForm button[type=submit]{width:100%;font-weight:bold}#checkoutForm input{font-size:16px}.cart-line{padding:15px;border:1px solid #dce3d7;border-radius:12px;margin-bottom:15px}.cart-line select{font-size:16px}.totals{background:#edf2e8;border-radius:12px;padding:20px}.totals p{display:flex;justify-content:space-between;gap:15px;color:var(--ink)}.totals bdi{white-space:nowrap}.totals .grand{border-top:1px solid #cbd7c2;padding-top:15px;font-weight:bold}.honey{position:absolute!important;left:-10000px!important;width:1px;overflow:hidden}.sticky-order{display:none}footer{padding:35px 0;text-align:center;color:var(--muted);font-size:13px}.preview-banner{background:#b78b38;color:white;text-align:center;padding:8px;position:sticky;top:0;z-index:5}@media(max-width:950px){.workspace{grid-template-columns:190px minmax(0,1fr)}.workspace main{padding:25px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:28px}.hero h1{font-size:34px}}@media(max-width:650px){.workspace{display:block}.workspace aside{padding:18px;border-bottom:1px solid #d9dfd6}.workspace nav{grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0}.workspace aside label{margin-top:14px}.workspace main{padding:18px}.aside-note{display:none}header{flex-wrap:wrap}h1{font-size:28px}.panel{padding:18px}.welcome h2{font-size:34px}.store-header{padding:16px;gap:12px}.store-header>a{font-size:18px}.storefront{padding-inline:18px}.hero{display:flex;flex-direction:column-reverse;gap:24px}.hero h1{font-size:31px;margin-top:8px}.hero p{font-size:17px}.hero img{max-height:350px}.store-section{padding:35px 0}.store-section h2{font-size:25px}.sticky-order{display:flex;position:fixed;bottom:12px;inset-inline:16px;z-index:4;box-shadow:0 5px 25px #17382b3d}.product-grid{grid-template-columns:minmax(0,1fr)}#checkoutForm{padding:20px}.stats .panel{padding:15px}.benefits{grid-template-columns:minmax(0,1fr)}.fields{width:100%}.builder-block .toolbar{gap:5px}}
/* Keep the non-user honeypot out of RTL scroll geometry. */
.honey{display:none!important}

.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;margin-top:26px}.media-asset{min-width:0;padding:18px;border:1px solid #d8dfd5;border-radius:12px}.media-asset img,.media-asset video{width:100%;height:220px;object-fit:contain;background:#f5f3ee;border-radius:8px}.media-asset h3{overflow-wrap:anywhere;font-size:16px}.media-asset input{font-size:13px}.media-asset button{margin-top:12px}

.test-order-badge{display:inline-block;background:#eee8d6;color:#665a32;padding:3px 8px;border-radius:6px;white-space:nowrap}
/* Full-width media keeps original proportions without clipping. */
.storefront .hero{display:flex;flex-direction:column;gap:24px}.storefront .hero>div{max-width:850px;width:100%}.storefront .hero img,.storefront img.gallery{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:0}.storefront .image-full{width:100vw;max-width:none;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw}.storefront .image-full>h2,.storefront .image-full>p{padding-inline:24px}.storefront .image-contained{width:100%;margin-inline:0}.offer-choices{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0}.receipt-page{max-width:680px;margin:8vh auto;padding:24px;text-align:center;overflow-wrap:anywhere}.receipt-symbol{margin:auto;background:#e1eee5;border-radius:50%;width:70px;height:70px;display:grid;place-items:center;color:#165b49;font-size:32px}.receipt-summary{background:white;border:1px solid #d8dfd5;border-radius:16px;padding:24px;margin:24px 0;text-align:start}.receipt-summary p{display:flex;justify-content:space-between;gap:16px}.receipt-summary .grand{border-top:1px solid #d8dfd5;padding-top:16px;font-weight:bold}.review-order-badge{display:inline-block;background:#fff0d0;color:#75541e;padding:4px 8px;border-radius:6px}@media(max-width:650px){.storefront .hero img{max-height:none}.receipt-page{margin:24px auto;padding:20px}.receipt-summary{padding:18px}}
.storefront .hero>div{padding-inline:24px}
.code-editor{font-family:ui-monospace,monospace;font-size:13px;min-height:280px;white-space:pre;tab-size:2}.custom-code-section{border:0;padding:0}.lp-code-frame{display:block;width:100%;min-height:80px;border:0;background:transparent}
[hidden]{display:none!important}
.page-public-url{margin:10px 0;font-size:13px}.danger-action{color:#9d302a;margin-top:14px}.page-chrome-settings{border:1px solid #d8dfd5;border-radius:10px;padding:16px;display:grid;gap:12px}.page-chrome-settings legend{padding:0 6px;font-weight:bold}.cards .toolbar{margin-top:10px}

.section-spacing-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid #d8dfd5;border-radius:10px;padding:14px;margin-top:14px}.section-spacing-controls small{grid-column:1/-1}.store-section>h2:empty,.store-section>p:empty{display:none}.store-section[data-space-top="0"]>:first-child{margin-top:0}.store-section[data-space-bottom="0"]{border-bottom:0}.store-section[data-space-bottom="0"]>:last-child{margin-bottom:0}
.order-details{width:min(860px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:1px solid #d8dfd5;border-radius:16px;padding:24px;color:var(--ink);background:var(--paper);overscroll-behavior:contain}.order-details::backdrop{background:#14231dcc}.order-details header{align-items:flex-start}.order-details h2{margin:0}.order-details section{padding:16px;background:white;border-radius:10px;margin:16px 0}.order-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}.order-detail-fields>div{min-width:0}.order-detail-fields dt{font-size:12px;color:var(--muted)}.order-detail-fields dd{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext}.order-detail-item{border-bottom:1px solid #d8dfd5;padding-bottom:14px;margin-bottom:14px}.order-details h3{margin-top:0}@media(max-width:650px){.order-details{padding:14px}.order-detail-fields{grid-template-columns:minmax(0,1fr)}.section-spacing-controls{grid-template-columns:minmax(0,1fr)}}

/* Arabic offer cards: prices/quantities come only from the configured product. */
.checkout-section{--checkout-gold:#795c2f;--checkout-border:#d9c9ae;--checkout-paper:#fbf8f2;max-width:760px;margin-inline:auto}.checkout-section>h2{color:#33291c;margin-bottom:12px}.checkout-section>p{text-align:center;max-width:650px;margin-inline:auto;white-space:pre-line}.checkout-section #checkoutForm{max-width:680px;padding:28px;border:1px solid var(--checkout-border);border-radius:16px;box-shadow:0 12px 32px #4732180a;margin:24px auto;background:#fff}.offer-product{margin-bottom:24px}.offer-brand{color:var(--checkout-gold);font-size:12px;margin:0 0 7px;font-weight:bold;letter-spacing:.5px}.offer-product h3{font-size:25px;margin:0;line-height:1.7;color:#302719;overflow-wrap:anywhere}.offer-product-description{font-size:14px;white-space:pre-line;margin:8px 0 0;color:#736858;overflow-wrap:anywhere}.offer-options{border:0;padding:0;margin:0;min-width:0}.offer-options legend{font-size:17px;font-weight:bold;padding:0;margin-bottom:6px;color:#41331e}.checkout-step-number,.checkout-step>span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eee5d6;color:#614925;font-size:12px;margin-inline-end:7px;flex-shrink:0}.offer-price-note{font-size:12px;margin:0 0 15px}.checkout-section #checkoutForm .offer-card{display:grid;grid-template-columns:18px 52px minmax(0,1fr) auto;gap:12px;align-items:center;position:relative;padding:15px 14px;margin:11px 0;border:1px solid #d8d4cd;border-radius:10px;cursor:pointer;transition:background .15s,border-color .15s;min-height:88px}.offer-card:has(input:checked){border:2px solid var(--checkout-gold);padding:14px 13px!important;background:var(--checkout-paper);box-shadow:0 2px 9px #795c2f0a}.offer-card:has(input:focus-visible){outline:3px solid #b4935a;outline-offset:3px}.checkout-section #checkoutForm .offer-card input{accent-color:var(--co-offer-border,var(--checkout-gold));min-width:0;width:18px;height:18px;padding:0;margin:0;cursor:pointer}.offer-card img{width:52px;height:60px;object-fit:contain;border-radius:5px;background:#f8f7f4}.offer-card-copy{min-width:0}.offer-card-copy strong{font-size:17px;color:#302719;display:block}.offer-card-copy small{font-size:11px;display:block;color:#81735e;font-weight:normal}.offer-card-price{font-size:17px;font-weight:bold;color:#5d4520;white-space:nowrap}.checkout-step{display:flex;align-items:center;margin-top:26px;margin-bottom:5px}.checkout-step h3{font-size:17px;margin:0;color:#41331e}.checkout-field-note{font-size:12px;margin:0 0 13px}.checkout-section #checkoutForm .customer-fields label{font-size:13px;color:#574b39;margin:12px 0}.checkout-section #checkoutForm .customer-fields input,.checkout-section #checkoutForm select{border:1px solid #d7d3ca;border-radius:7px;min-height:49px;padding:12px;background:#fff}.checkout-section #checkoutForm input:focus,.checkout-section #checkoutForm select:focus{outline:2px solid #b4935a;outline-offset:2px}.checkout-section .totals{background:#f8f5ee;border:1px solid #eee5d8;border-radius:9px;padding:15px 18px;margin-top:21px;font-size:14px}.checkout-section .totals p{margin:6px 0;color:#625744}.checkout-section .totals .grand{font-size:17px;color:#3f301b;border-top-color:#e4d8c6;margin-top:12px;padding-top:12px}.checkout-confirmation-note{font-size:12px;margin:16px 0;color:#776c5c}.checkout-section #placeOrder{background:linear-gradient(110deg,#6a512d,#927340);min-height:53px;border-radius:8px;font-size:16px;box-shadow:0 5px 13px #795c2f22}.checkout-assurance{display:grid;gap:6px;text-align:center;color:#6b5a40;font-size:12px;margin-top:18px}.checkout-assurance b{display:inline-block;margin-inline-end:5px;color:var(--checkout-gold)}.checkout-section #checkoutMessage{font-size:13px;overflow-wrap:anywhere}.checkout-section #checkoutMessage:empty{display:none}@media(max-width:650px){.checkout-section #checkoutForm{padding:19px 15px;margin:18px auto;border-radius:12px}.offer-product h3{font-size:21px}.checkout-section #checkoutForm .offer-card{grid-template-columns:17px 40px minmax(0,1fr) auto;gap:8px;padding:13px 10px;min-height:84px}.offer-card:has(input:checked){padding:12px 9px!important}.offer-card img{width:40px;height:51px}.offer-card-copy strong{font-size:15px}.offer-card-copy small{font-size:10px}.offer-card-price{font-size:14px}.checkout-section .totals{padding:13px;font-size:13px}.checkout-section .totals .grand{font-size:15px}.offer-options legend{font-size:16px}}@media(max-width:350px){.checkout-section #checkoutForm .offer-card{grid-template-columns:16px 32px minmax(0,1fr);gap:7px}.offer-card img{width:32px;height:45px}.offer-card-price{grid-column:3;justify-self:start;margin-top:-5px}.offer-card-copy strong{font-size:14px}}

.checkout-sticky{background:linear-gradient(110deg,#6a512d,#927340)}

.offer-content-editor{border:1px solid #d8dfd5;border-radius:9px;padding:14px;margin:12px 0}.offer-content-editor summary{cursor:pointer;font-weight:bold}.offer-card{position:relative;min-width:0}.offer-card-copy strong,.offer-card-copy small{overflow-wrap:anywhere}.offer-card-badge{grid-column:1/-1;justify-self:start;max-width:100%;background:var(--co-badge-bg,#70552d);color:var(--co-badge-text,#fff);padding:3px 10px;border-radius:14px;line-height:1.5;font-size:11px;overflow-wrap:anywhere}
/* The owner's selected-offer colours. The id-scoped .offer-card rule above outranks the plain selected-card rule (a pre-existing quirk kept as it is
   for checkouts nobody edited), so these only apply where the owner set a colour (applyCheckoutColors marks the section). */
.checkout-section[data-co-border] #checkoutForm .offer-card:has(input:checked){border:2px solid var(--co-offer-border)}
.checkout-section[data-co-bg] #checkoutForm .offer-card:has(input:checked){background:var(--co-offer-bg)}
.offer-saving{display:inline-block;margin-top:4px;padding:2px 9px;border-radius:12px;font-size:11px;line-height:1.5;background:var(--co-badge-bg,#70552d);color:var(--co-badge-text,#fff);overflow-wrap:anywhere}.offer-card-quantity{display:block;font-size:11px;color:#776b58}.offer-card .offer-current{color:#70552d}

.analytics-page{--analytics-accent:#7950ce}.analytics-period h2{margin-top:0}.analytics-period .toolbar button{font-size:12px;padding:8px 11px;min-height:38px}.analytics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.analytics-grid .panel{margin:0}.analytics-card{min-width:0;display:flex;flex-direction:column;gap:10px;overflow:hidden}.analytics-card>span{font-size:13px;color:var(--muted)}.analytics-card>strong{font-size:27px;line-height:1.3;overflow-wrap:anywhere}.analytics-card small{color:var(--muted);font-size:11px}.analytics-card h3{font-size:16px;margin:0}.analytics-line{display:block;width:100%;height:140px;margin-top:auto}.analytics-line text{font-size:9px;fill:#797384}.analytics-bars{display:grid;gap:14px;width:100%;margin:12px 0}.analytics-bars>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;min-width:0}.analytics-bars span{overflow-wrap:anywhere;font-size:12px}.analytics-bars b{font-size:12px}.analytics-bars i{grid-column:1/-1;background:var(--analytics-accent);height:9px;border-radius:5px;min-width:2px}.analytics-empty{font-size:12px;margin:auto 0;text-align:center;padding:30px 0}.analytics-confidence{font-size:12px;overflow-wrap:anywhere}.analytics-period [hidden]{display:none!important}@media(max-width:1100px){.analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.analytics-grid{grid-template-columns:minmax(0,1fr)}.analytics-card>strong{font-size:28px}.analytics-period .toolbar{gap:6px}.analytics-period .toolbar label{width:100%}.analytics-period .toolbar input{width:100%}}

.policy-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;padding:0 16px}.policy-footer a{overflow-wrap:anywhere}.policy-page{max-width:900px;margin:auto;padding:32px 20px}.store-content-text{white-space:pre-wrap;overflow-wrap:anywhere}.receipt-image{display:block;width:100%;height:auto;margin:16px auto}.policy-footer[hidden]{display:none}

/* CLUQR admin theme. Public storefront selectors and legacy tokens stay unchanged. */
:root {
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-navy: #111827;
  --color-sidebar: #0F172A;
  --color-background: #F5F7FB;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8FAFC;
  --color-text-primary: #111827;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-placeholder: #94A3B8;
  --color-border: #E2E8F0;
  --color-divider: #F1F5F9;
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger: #DC2626;
  --color-chart-secondary: #60A5FA;
  --color-chart-third: #93C5FD;
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-input: 8px;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-hover: 0 4px 16px rgba(15, 23, 42, .07);
}
/* Scope legacy variable aliases to admin screens, including loading and dialogs. */
body:has(.workspace), body:has(.login) {
  --accent: var(--color-primary);
  --ink: var(--color-text-primary);
  --paper: var(--color-background);
  --muted: var(--color-text-muted);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans", "DejaVu Sans", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.workspace, .login { color-scheme: light; }
.workspace h1, .login h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.workspace h2, .login h2 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.workspace h3 { font-size: 18px; font-weight: 650; }
.workspace p, .login p { color: var(--color-text-secondary); }
.workspace small { color: var(--color-text-muted); font-size: 12px; }
.workspace main > header h1 { margin: 6px 0 0; overflow-wrap: anywhere; }
.workspace .eyebrow, .login .brand { color: var(--color-primary); }
.workspace .eyebrow { letter-spacing: .12em; font-size: 11px; }
.workspace aside {
  background: var(--color-sidebar);
  color: #F8FAFC;
  border-color: var(--color-sidebar);
}
.workspace aside .brand { color: #F8FAFC; letter-spacing: .09em; }
.workspace aside .brand::first-letter { color: #60A5FA; }
.workspace aside label { color: #CBD5E1; font-size: 12px; }
.workspace aside select {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
  margin-top: 8px;
}
.workspace aside > .secondary { margin-inline-end: 6px; margin-block-start: 6px; }
.workspace aside .aside-note { color: #94A3B8; line-height: 1.8; }
.workspace .nav {
  min-width: 0;
  border: 1px solid transparent;
  color: #CBD5E1;
  border-radius: var(--radius-button);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 11px 14px;
  overflow-wrap: anywhere;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}
.workspace .nav:hover { background: #1E293B; color: #FFFFFF; filter: none; }
.workspace .nav.active { background: var(--color-primary); color: #FFFFFF; }
.workspace .nav.active:hover { background: var(--color-primary-hover); }
.workspace aside .secondary { background: #1E293B; border-color: #334155; color: #F8FAFC; }
.workspace aside .secondary:hover { background: #334155; border-color: #475569; color: #FFFFFF; }
.workspace button, .workspace .button, .login button,
body:has(.workspace) .order-details button {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-button);
  color: #FFFFFF;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms, color 150ms;
}
.workspace button:hover, .workspace .button:hover, .login button:hover,
body:has(.workspace) .order-details button:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  filter: none;
}
.workspace .secondary, body:has(.workspace) .order-details .secondary {
  background: var(--color-surface);
  color: #334155;
  border-color: var(--color-border);
}
.workspace .secondary:hover, body:has(.workspace) .order-details .secondary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  border-color: #BFDBFE;
}
/* Navigation is also a button; retain its dark-surface states. */
.workspace aside button.nav { background: transparent; border-color: transparent; color: #CBD5E1; justify-content: flex-start; }
.workspace aside button.nav:hover { background: #1E293B; color: #FFFFFF; }
.workspace aside button.nav.active { background: var(--color-primary); color: #FFFFFF; }
.workspace aside button.nav.active:hover { background: var(--color-primary-hover); }
.workspace aside button.secondary { background: #1E293B; border-color: #334155; color: #F8FAFC; }
.workspace aside button.secondary:hover { background: #334155; border-color: #475569; }
.workspace button.danger-action, .workspace button[data-drop-bundle], .workspace button[data-remove] {
  background: #FFFFFF;
  color: var(--color-danger);
  border-color: #FECACA;
}
.workspace button.danger-action:hover, .workspace button[data-drop-bundle]:hover, .workspace button[data-remove]:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #B91C1C;
}
.workspace button:disabled, .workspace button:disabled:hover, .login button:disabled,
.workspace aside button:disabled {
  background: #F1F5F9;
  border-color: var(--color-border);
  color: var(--color-text-muted);
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
.workspace :is(button, a, input, select, textarea, summary):focus-visible,
.login :is(button, a, input, select, textarea):focus-visible,
body:has(.workspace) .order-details :is(button, a, summary):focus-visible {
  outline: 3px solid #60A5FA;
  outline-offset: 3px;
}
.workspace input, .workspace select, .workspace textarea, .login input {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-input);
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  accent-color: var(--color-primary);
  transition: border-color 150ms, box-shadow 150ms;
}
.workspace input::placeholder, .workspace textarea::placeholder, .login input::placeholder { color: var(--color-placeholder); opacity: 1; }
.workspace :is(input, select, textarea):focus, .login input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px #2563EB1F;
}
.workspace input:disabled, .workspace select:disabled { background: #F1F5F9; color: var(--color-text-muted); }
.workspace label, .login label { color: var(--color-text-secondary); font-size: 13px; font-weight: 600; }
.workspace .check { align-items: center; }
.workspace .check input { min-height: 18px; width: 18px; height: 18px; padding: 0; flex-shrink: 0; }
.workspace input[type=color] { padding: 5px; }
.workspace input[type=file] { padding: 8px; }
.workspace input[type=file]::file-selector-button { border: 0; padding: 6px 10px; border-radius: 5px; background: var(--color-primary-light); color: var(--color-primary-hover); margin-inline-end: 12px; }
.workspace fieldset { min-inline-size: 0; border: 1px solid var(--color-border); border-radius: var(--radius-input); padding: 16px; }
.workspace legend { padding-inline: 6px; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.workspace .panel, .login.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: border-color 150ms, box-shadow 150ms;
}
.workspace .panel:hover { border-color: #CBD5E1; box-shadow: var(--shadow-hover); }
.workspace .welcome { background: var(--color-surface); }
.workspace .welcome h2 { color: var(--color-navy); font-size: 32px; line-height: 1.25; letter-spacing: -.03em; }
.workspace .stats .panel > span, .workspace .analytics-card > span { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.workspace .stats strong, .workspace .analytics-card > strong { font-size: 28px; font-weight: 650; color: var(--color-text-primary); line-height: 1.3; letter-spacing: -.025em; margin-top: 8px; }
.workspace .analytics-card small { font-size: 12px; line-height: 1.6; }
.workspace .analytics-card h3 { font-size: 16px; }
.workspace .cards article, .workspace .domain, .workspace .builder-block, .workspace .media-asset {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.workspace .cards h3, .workspace .domain h3, .workspace .media-asset h3 { overflow-wrap: anywhere; }
.workspace .media-asset img, .workspace .media-asset video { background: var(--color-background); }
.workspace .offer-content-editor { border-color: var(--color-border); background: var(--color-surface-hover); }
.workspace .table { overflow-x: auto; max-width: 100%; border: 1px solid var(--color-border); border-radius: 8px; }
.workspace table { color: var(--color-text-secondary); font-size: 13px; }
.workspace th { background: var(--color-surface-hover); color: var(--color-text-secondary); font-weight: 600; white-space: nowrap; }
.workspace td, .workspace th { border-color: var(--color-divider); padding: 14px 16px; }
.workspace td { background: var(--color-surface); }
.workspace tr:hover td { background: var(--color-surface-hover); }
.workspace tbody tr:last-child td { border-bottom: 0; }
.workspace td :is(p, small, li) { overflow-wrap: anywhere; }
.workspace .table:has([data-order-details]) table { min-width: 900px; }
.workspace .order-review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 12px; }
.workspace .integration { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; font-size: 12px; }
.workspace .notice:not(:empty) { color: #166534; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 8px; padding: 12px 16px; margin-block: 16px; }
.workspace .bad, .login .bad { color: var(--color-danger); }
.workspace .notice.bad:not(:empty), .login .notice.bad:not(:empty) { color: #991B1B; background: #FEF2F2; border-color: #FECACA; }
.workspace .test-order-badge, .workspace .review-order-badge { color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 6px; font-size: 12px; }
.workspace .analytics-page { --analytics-accent: var(--color-primary); }
.workspace .analytics-line { background: var(--color-surface); }
.workspace .analytics-line path { stroke: var(--color-border); }
.workspace .analytics-line polyline { stroke: var(--color-primary); }
.workspace .analytics-line circle { fill: var(--color-primary); }
.workspace .analytics-line text { fill: var(--color-text-muted); font-size: 10px; }
.workspace .analytics-bars i { background: var(--color-primary); border-radius: 5px; }
.workspace .analytics-bars span, .workspace .analytics-bars b { font-size: 13px; }
.workspace .analytics-period .toolbar { gap: 8px; }
.workspace .analytics-period .toolbar button { min-height: 44px; padding: 9px 13px; font-size: 12px; }
.workspace .analytics-period [data-analytics-period].secondary { background: var(--color-surface); color: var(--color-text-secondary); border-color: var(--color-border); }
.workspace .analytics-period [data-analytics-period].secondary:hover { background: var(--color-primary-light); color: var(--color-primary-hover); }
.workspace .store-loading-bar { background: #E2E8F0; }
.workspace .store-loading-panel [role=status], .login [role=status] { color: var(--color-text-muted); }
.workspace .store-loading-error { border-color: #FECACA; background: #FEF2F2; }
.workspace .code-editor { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.login { width: calc(100% - 32px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
body:has(.workspace) .order-details { background: var(--color-background); color: var(--color-text-primary); border-color: var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-hover); font-size: 14px; }
body:has(.workspace) .order-details::backdrop { background: #0F172AB3; }
body:has(.workspace) .order-details section { border: 1px solid var(--color-border); background: var(--color-surface); }
body:has(.workspace) .order-details h2 { font-size: 20px; }
body:has(.workspace) .order-details h3 { font-size: 18px; }
body:has(.workspace) .order-detail-item { border-color: var(--color-divider); }
@media (max-width: 950px) {
  .workspace .panel { padding: 20px; }
  .workspace .stats strong { font-size: 26px; }
}
@media (max-width: 650px) {
  .workspace h1 { font-size: 24px; }
  .workspace .panel { padding: 18px; }
  .workspace .stats .panel { padding: 16px; }
  .workspace .stats strong { font-size: 26px; }
  .workspace .nav { font-size: 12px; padding: 10px 8px; }
  .workspace aside button.nav { min-height: 44px; }
  .workspace aside > .secondary { margin-top: 6px; }
  .workspace .welcome h2 { font-size: 28px; }
  .workspace .analytics-period .toolbar { gap: 6px; }
  .workspace .analytics-period .toolbar button { padding: 9px 11px; }
  .workspace header .button { max-width: 100%; }
  .workspace .fields, .workspace .builder-tools, .workspace .toolbar { min-width: 0; }
  .workspace .builder-tools > select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace *, .login * { transition: none !important; }
}

.workspace .product-builder-details { display: grid; gap: 16px; }
.workspace .product-builder-details details { padding: 14px; border: 1px solid var(--color-border); border-radius: 8px; }
.workspace .product-builder-details summary { cursor: pointer; font-weight: 600; }
.workspace .product-builder-details details label { margin-top: 12px; }
.workspace .product-builder-details select[multiple] { min-height: 140px; }

.shop-connection { overflow-wrap: anywhere; }

.domains-page {display:grid;gap:1rem;min-width:0;max-width:56rem}
.domains-page form {align-items:end}
.domain-card,.domain-card li,.dns-record {min-width:0;overflow-wrap:anywhere}
.domain-card header {display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.domain-card ol {padding-inline-start:1.7rem}
.domain-card li {padding:.35rem 0}
.domain-card h4 {margin:.5rem 0}
.dns-record {border:1px solid var(--border,#a7b4be);border-radius:.5rem;padding:.75rem;margin:.5rem 0}
.dns-result {margin-inline-start:1rem}
.dns-record code {white-space:normal;user-select:all;margin:.25rem}
.dns-record button {margin:.25rem;padding:.25rem .55rem}
@media(max-width:600px){.domains-page form {display:grid;grid-template-columns:minmax(0,1fr)}.dns-record code {display:block}.domain-card header {display:block}}
.domains-page {max-width:76rem}
.domain-layout {display:grid;grid-template-columns:minmax(0,2.5fr) minmax(12rem,1fr);gap:1rem;align-items:start}
.domain-list,.domain-guide {display:grid;gap:1rem;min-width:0}
.domains-page .panel {border-radius:14px;overflow-wrap:anywhere}
.domain-guide .panel {padding:1rem}.domain-guide ul {padding-inline-start:1.2rem}
.domains-page form h3 {grid-column:1/-1;margin:0}
.domain-steps {margin:.85rem 0}.domain-steps summary {cursor:pointer;font-weight:600}
.dns-result,.domain-pill {border-radius:1em;padding:.2em .65em;background:#e8eef8;color:#243f69;font-size:.85rem}
.dns-result[data-seen="1"],.domain-pill[data-state="Live"] {color:#185637;background:#dcf5e8}
.domain-pill[data-state="Needs attention"] {color:#813318;background:#ffeadb}
@media(min-width:801px){.dns-record {display:grid;grid-template-columns:4rem minmax(0,1fr) minmax(0,1.4fr) auto;align-items:start;gap:.5rem}.dns-result {grid-column:4;grid-row:1}.dns-record>div {grid-row:1}.dns-record>div:first-of-type {grid-column:2}.dns-record>div:last-of-type {grid-column:3}}
@media(max-width:800px){.domain-layout {grid-template-columns:minmax(0,1fr)}}

.domain-card .domain-warning { padding:.65rem .85rem; border:1px solid #d8a74d; border-radius:.5rem; background:#fff4d6; color:#744509; }

.catalog-edit { padding:0; margin:0; border:0; min-inline-size:0 }
.catalog-product header { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between }
.catalog-layout { display:grid; grid-template-columns:minmax(0,2.35fr) minmax(14rem,1fr); gap:1rem }
.catalog-main,.catalog-sidebar { min-width:0; display:grid; align-content:start; gap:1rem }
.workspace .catalog-sidebar { padding:0; background:transparent; border:0 }
.catalog-product .panel { min-width:0; overflow-wrap:anywhere }
.catalog-save { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:1rem; padding:.75rem; position:sticky; bottom:0; background:var(--paper); z-index:1 }
.catalog-save[hidden] { display:none }
.catalog-variant { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.65rem; border-top:1px solid #d8dfd5; padding:.9rem 0 }
.catalog-variant img { max-width:72px; height:auto }
.catalog-variant input,.catalog-product input[type=file] { min-width:0; max-width:100% }
.catalog-product textarea { width:100% }
@media(max-width:900px){.catalog-layout {grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.catalog-variant {grid-template-columns:minmax(0,1fr)}}

.catalog-preview-image { display:block; max-width:100%; max-height:16rem; object-fit:contain }
/* Offers (8b step 3) */
.offer-units{display:grid;gap:.6rem;border:1px solid var(--line,#ddd);border-radius:12px;padding:.8rem;margin:.8rem 0}
.offer-units label{display:grid;gap:.3rem}.offer-units select{width:100%}
.offer-was{opacity:.6;font-size:.85em;margin-inline-start:.3rem}
.offer-row-head{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between;align-items:center}
.offer-allowed{display:flex;flex-wrap:wrap;gap:.6rem}.offer-allowed p{width:100%;margin:0}
.offer-types{display:flex;flex-wrap:wrap;gap:.8rem}
.catalog-offers{margin-top:1rem;min-width:0}.catalog-offers .fields{min-width:0}

.catalog-field-list{display:grid;gap:1rem;margin-block:1rem;overflow-wrap:anywhere}
#customCheckoutFields fieldset{min-width:0;overflow-wrap:anywhere}
