/* E-Commerce presentation only; native inputs, permissions and owner actions stay intact. */
.ec-label{min-width:0;font-size:13px;font-weight:500;line-height:1.5}.ec-label-copy{display:inline-flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.ec-symbol{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex-shrink:0;width:28px;height:28px;border-radius:8px;margin-right:5px}.ec-symbol svg{flex-shrink:0}.ec-blue{background:#eff6ff;color:#2563eb}.ec-purple{background:#f5f3ff;color:#7c3aed}.ec-green{background:#ecfdf5;color:#059669}.ec-orange{background:#fff7ed;color:#ea580c}.ec-action-icon{flex-shrink:0;vertical-align:middle;margin-right:5px;color:currentColor}
.ec-label>input:not([type=checkbox]):not([type=radio]):not([type=file]),.ec-label>select,.ec-label>textarea{box-sizing:border-box;min-height:44px;max-width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px;background:var(--ui-surface,#fff);color:var(--ui-text,#183047);font:inherit}.ec-label>textarea{min-height:96px;resize:vertical}.ec-label input:focus-visible,.ec-label select:focus-visible,.ec-label textarea:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
form[data-commerce-form]{min-width:0;gap:16px}form[data-commerce-form]>fieldset{min-width:0;border:1px solid #e2e8f0;border-radius:12px;padding:16px}form[data-commerce-form] button{min-height:44px}form[data-commerce-form] [role=alert]{border-radius:9px;padding:12px;background:#fef2f2;color:#991b1b}.ec-minimum-price{display:grid;gap:4px;margin:8px 0;line-height:1.5}.ec-minimum-price strong{font-size:19px;color:#0f766e}.ec-minimum-price small{color:#64748b;font-size:12px}.ec-minimum-note{padding:10px 12px;background:#fff7ed;color:#9a3412;border-radius:9px;font-size:12px;line-height:1.5}
@media(max-width:600px){.ec-label-copy{gap:6px}.ec-symbol{width:25px;height:25px}form[data-commerce-form]{width:100%}}
@media(prefers-color-scheme:dark){html[data-color-mode=dark] .ec-symbol{background:#20344a;color:#93c5fd}}
.ec-order-config{border:1px solid #e2e8f0;border-radius:14px;padding:18px;min-width:0}.ec-order-product{display:flex;align-items:center;gap:14px;margin-bottom:16px}.ec-order-thumbnail{width:72px;height:72px;object-fit:contain;border-radius:10px;background:#f8fafc}.ec-order-config .dp-field{display:grid;gap:8px;margin-bottom:14px}.ec-order-config input:not([type=checkbox]):not([type=radio]),.ec-order-config select,.ec-order-config textarea{box-sizing:border-box;min-height:44px;max-width:100%;width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:9px}.ec-order-config .dp-check{display:inline-flex;align-items:center;gap:8px;margin:4px 12px 4px 0}.ec-order-config button{min-height:44px;padding:10px 14px;border:1px solid #cbd5e1;border-radius:9px;background:var(--ui-surface,#fff);color:var(--ui-text,#183047)}
[data-screen="sites-store-catalog"] .sites-store-tabs button:nth-child(4n+1)>svg{color:#2563eb}[data-screen="sites-store-catalog"] .sites-store-tabs button:nth-child(4n+2)>svg{color:#7c3aed}[data-screen="sites-store-catalog"] .sites-store-tabs button:nth-child(4n+3)>svg{color:#059669}[data-screen="sites-store-catalog"] .sites-store-tabs button:nth-child(4n)>svg{color:#ea580c}
.ec-csv-import{display:inline-flex;flex-direction:column;align-items:flex-start;gap:7px;max-width:100%}.ec-csv-import small{color:#64748b;overflow-wrap:anywhere}.ec-csv-import [role=alert]{font-size:13px;background:#fef2f2;color:#991b1b;border-radius:8px;padding:10px}

/* DEC-108: pictorial E-Commerce surfaces, preserving native fields and owner actions. */
.ec-guide { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:12px; list-style:none; padding:0; margin:18px 0; min-width:0; }
.ec-guide > li { display:flex; align-items:flex-start; gap:12px; min-width:0; padding:16px; border:1px solid var(--ui-border,#e2e8f0); border-radius:14px; background:var(--ui-surface,#fff); }
.ec-guide strong { display:block; font-size:14px; line-height:1.4; color:var(--ui-text,#183047); }
.ec-guide p { margin:6px 0 0; font-size:13px; line-height:1.6; color:var(--ui-muted,#64748b); }
.ec-guide-mark { position:relative; flex-shrink:0; }.ec-guide-mark .ec-symbol { width:42px;height:42px;border-radius:13px;margin:0; }
.ec-guide-number { position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#ddd);font-size:10px;color:var(--ui-muted,#64748b); }
.ec-guide-compact { gap:9px; }.ec-guide-compact>li { padding:12px; }.ec-guide-compact .ec-guide-mark .ec-symbol { width:34px;height:34px; }
.ec-notice { display:flex; align-items:flex-start; gap:10px; padding:14px; border-radius:12px; border:1px solid var(--ui-border,#e2e8f0); background:var(--ui-subtle,#f8fafc); margin:12px 0; min-width:0; }
.ec-notice strong { display:block; line-height:1.5; }.ec-notice-copy { font-size:13px;line-height:1.65;color:var(--ui-muted,#64748b);margin-top:3px; }.ec-notice-copy p { margin:4px 0; }
.ec-visual-empty { display:grid;justify-items:center;text-align:center;gap:12px;padding:30px 16px;border:1px dashed var(--ui-border,#ddd6fe);border-radius:16px;background:var(--ui-subtle,#faf9ff); }.ec-visual-empty p { max-width:36em;margin:0;color:var(--ui-muted,#64748b);font-size:13px;line-height:1.6; }
.ec-empty-art { position:relative;display:grid;place-items:center;width:76px;height:76px;border-radius:24px;background:#f1eaff;color:#7c3aed; }.ec-empty-art>svg:last-child { position:absolute;right:4px;bottom:6px;background:#ecfdf5;color:#059669;border-radius:50%; }
.ec-product-binding,.ec-seller-segment { padding:16px;margin:12px 0;border:1px solid var(--ui-border,#e2e8f0);border-radius:14px;background:var(--ui-surface,#fff);min-width:0; }.ec-product-binding h3 { display:flex;align-items:center;gap:8px; }
.ec-owner-link { display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;line-height:1.5;margin:8px 8px 8px 0; }.ec-state-badge { display:inline-flex;padding:4px 9px;border-radius:99px;font-size:12px;background:var(--ui-subtle,#f1f5f9);color:var(--ui-text,#183047); }
.ec-file-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:14px;padding:0;list-style:none; }.ec-file-grid>li { display:grid;gap:12px;padding:18px;border:1px solid var(--ui-border,#ddd);border-radius:14px;background:var(--ui-surface,#fff);min-width:0;overflow-wrap:anywhere; }.ec-file-grid>li>.ec-symbol {width:48px;height:48px;}.ec-file-grid p{margin:0;font-size:13px;line-height:1.6;}
.ec-store-kind { display:flex;align-items:center;gap:5px; }.ec-order-heading { display:inline-flex;align-items:center;gap:7px; }.ec-order-list { display:grid;gap:14px; }.ec-order-list>li { border:1px solid var(--ui-border,#ddd);border-radius:16px;padding:18px;background:var(--ui-surface,#fff); }.ec-order-list>li>.ec-label {margin:12px 8px 12px 0;}.ec-order-list>li>button {margin:4px;}
.ec-cart-line { padding:16px!important;border:1px solid var(--ui-border,#ddd);border-radius:14px;margin:12px 0!important;background:var(--ui-surface,#fff); }.ec-cart-line>.ec-symbol {width:40px;height:40px;margin-bottom:10px;}.sites-store-cart .ec-guide { grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr)); }
.ec-category-icon { display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#eff6ff;color:#2563eb; }.ec-category-icon[data-category=fashion],.ec-category-icon[data-category=beauty] {background:#fdf2f8;color:#db2777;}.ec-category-icon[data-category=grocery] {background:#ecfdf5;color:#059669;}.ec-category-icon[data-category=home] {background:#fff7ed;color:#ea580c;}
.ec-template-hero-photo { position:relative;min-height:260px;display:grid;place-items:center;padding:26px; }.ec-template-hero-photo img {width:100%;height:300px;object-fit:contain;border-radius:20px;filter:drop-shadow(0 20px 25px #18304720);}.ec-template-hero-photo>span {position:absolute;bottom:12px;right:12px;padding:8px 12px;border-radius:99px;background:var(--ui-surface,#fff);color:var(--ui-text,#183047);font-size:12px;}
.ec-setup-note { display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.6; }.ec-pricing-help {display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.6;}
@layer components {
 .commerce-type-picker .commerce-type-grid>button.commerce-type-card { width:100%!important;max-width:none!important;justify-self:stretch!important; }
 .commerce-type-grid .commerce-type-card>svg { width:30px;height:30px;padding:8px;box-sizing:content-box;border-radius:13px;background:color-mix(in srgb,currentColor 9%,transparent); }
 .commerce-type-summary .ec-guide strong { display:block; }
 .app-shell [data-screen="sites-store-catalog"] .sites-store-tabs { display:grid!important;grid-template-columns:repeat(auto-fit,minmax(106px,1fr));gap:9px;white-space:normal;overflow:visible; }
 .app-shell [data-screen="sites-store-catalog"] .sites-store-tabs button { width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;flex-direction:column;gap:8px;padding:13px 8px!important;border:1px solid var(--ui-border,#e2e8f0)!important;border-radius:13px!important;min-height:88px; }
 .app-shell [data-screen="sites-store-catalog"] .sites-store-tabs button>svg { width:26px;height:26px; }
 .app-shell [data-screen="sites-store-catalog"] .sites-store-tabs button.is-active { background:var(--ui-accent-soft,#eff6ff)!important;border-color:var(--ui-accent,#4264ff)!important; }
 .app-shell [data-screen="sites-store-catalog"] .sites-list-actions { display:flex;flex-wrap:wrap;gap:9px; }
 .app-shell [data-screen="sites-store-catalog"] .sites-list-actions>a { display:inline-flex;align-items:center;gap:5px; }
 .app-shell [data-screen="sites-product"] .sites-product-stepper ol { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:9px;width:100%; }
 .app-shell [data-screen="sites-product"] .sites-product-stepper li { min-width:0; }.app-shell [data-screen="sites-product"] .sites-product-stepper li::after {display:none;}
 .app-shell [data-screen="sites-product"] .sites-product-stepper button { width:100%!important;min-width:0!important;max-width:none!important;justify-self:stretch!important;padding:12px!important;border-radius:12px!important; }
 .app-shell [data-screen="sites-product"] .sites-product-stepper li:nth-child(3n+1) .sites-product-step-dot {color:#2563eb;background:#eff6ff;}.app-shell [data-screen="sites-product"] .sites-product-stepper li:nth-child(3n+2) .sites-product-step-dot {color:#7c3aed;background:#f5f3ff;}.app-shell [data-screen="sites-product"] .sites-product-stepper li:nth-child(3n) .sites-product-step-dot {color:#059669;background:#ecfdf5;}
 .app-shell .dp-page .dp-set-name {width:100%!important;max-width:none!important;display:grid!important;justify-self:stretch!important;justify-content:start!important;text-align:left!important;}.app-shell .dp-page .dp-set-name strong {display:flex;align-items:center;gap:9px;}
 .app-shell .dp-page .dp-swatches button {width:auto!important;max-width:100%!important;}.app-shell .dp-page .dp-check {padding:9px;border:1px solid var(--ui-border,#ddd);border-radius:10px;}
 .app-shell [data-screen="sites-store"] .kind-row-name {width:auto!important;max-width:100%!important;text-align:left!important;justify-content:flex-start!important;}
 .commerce-template-tabs button {display:inline-flex;align-items:center;gap:9px;}.commerce-type-summary h2 {display:flex;align-items:center;gap:8px;}
}
@media(max-width:600px) { .ec-guide {grid-template-columns:1fr;}.ec-guide>li {padding:13px;}.ec-template-hero-photo img {height:220px;}.ec-template-hero-photo {min-height:220px;padding:14px;}.ec-order-list>li {padding:13px;}.ec-cart-line {padding:12px!important;} }
html[data-color-mode=dark] :is(.ec-blue,.ec-category-icon){background:#152d4c;color:#93c5fd;}html[data-color-mode=dark] .ec-purple{background:#322349;color:#d8b4fe;}html[data-color-mode=dark] .ec-green{background:#133a31;color:#6ee7b7;}html[data-color-mode=dark] .ec-orange{background:#422c1b;color:#fdba74;}

@layer components {
 .app-shell [data-screen="sites-store-catalog"] .sites-inv-pager button {width:44px!important;min-width:44px!important;max-width:44px!important;padding:8px!important;}.app-shell [data-screen="sites-product"] .sites-store-thumbs button {width:76px!important;min-width:0!important;max-width:76px!important;padding:4px!important;}.app-shell [data-screen="sites-product"] .sites-store-thumbs button img {width:64px;height:64px;object-fit:contain;}
 .app-shell .dp-page button[aria-label^="Remove"],.app-shell .dp-page button[aria-label^="Move"],.app-shell .dp-page button[aria-label^="Duplicate"] {width:44px!important;min-width:44px!important;max-width:44px!important;padding:8px!important;}
}

.commerce-type-summary>form>fieldset.commerce-type-picker {display:grid;gap:16px;}.commerce-type-summary>form>fieldset>.ec-label,.ec-product-binding>.ec-label {display:grid;gap:8px;}.ec-product-binding .ec-label>select,.ec-product-binding .ec-label>input {width:100%;}.commerce-type-summary>form>fieldset>.ec-label:has(input[type=checkbox]) {display:flex;align-items:center;gap:8px;padding:12px;border:1px solid var(--ui-border,#ddd);border-radius:10px;}

/* Store desk heading keeps its own row ahead of icon-led actions. */
@layer components {
 .app-shell [data-screen="sites-store-catalog"]>.sites-list-head {display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:start!important;gap:14px!important;}
 .app-shell [data-screen="sites-store-catalog"]>.sites-list-head>.sites-store-brand {min-width:0!important;width:100%!important;}
 .app-shell [data-screen="sites-store-catalog"]>.sites-list-head>.sites-list-actions {grid-column:1/-1!important;width:100%!important;justify-content:flex-start!important;margin:0!important;}
 .app-shell [data-screen="sites-store-catalog"] .sites-store-brand h1 {display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;max-width:none!important;width:auto!important;}
 .app-shell [data-screen="sites-store-catalog"] .sites-store-brand .sites-list-lede {max-width:none!important;width:auto!important;}
 .app-shell [data-screen="sites-store-catalog"] .sites-store-title-icon {display:none!important;}
}

/* Product steps wrap into accessible tiles instead of a clipped horizontal rail. */
@layer components {
 .app-shell [data-screen="sites-product"] .sites-product-stepper {display:block!important;overflow:visible!important;min-width:0!important;max-width:100%!important;}
 .app-shell [data-screen="sites-product"] .sites-product-stepper ol {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))!important;grid-auto-flow:row!important;gap:9px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;}
 .app-shell [data-screen="sites-product"] .sites-product-stepper ol>li {width:100%!important;min-width:0!important;max-width:100%!important;}
}
