/* The preview and the live storefront consume the same validated design tokens. */
body .button.button:not(.secondary):not(.danger){background:var(--button-bg,var(--action));color:var(--button-ink,var(--on-action))}
body .button.button{min-height:var(--button-height,48px);font-weight:var(--button-weight,600);text-transform:var(--button-case,none);box-shadow:var(--button-shadow,none)}
body .button.button:not(.secondary):not(.danger):hover{background:var(--action-hover);color:var(--on-action)}
.store-body .product-grid{grid-template-columns:repeat(var(--grid-columns,4),minmax(0,1fr))}
.store-body .product-card .product-image{aspect-ratio:var(--photo-ratio,3 / 4)}
.store-body .layout-image_left .hero-image{grid-column:1;grid-row:1}
.store-body .layout-image_left .hero-copy{grid-column:2;grid-row:1}
lexxy-editor{display:block;min-height:160px;max-width:100%;border:1px solid var(--control-border);border-radius:8px;background:white;color:var(--ink);overflow-wrap:anywhere}
lexxy-toolbar button[name="strikethrough"],lexxy-toolbar button[name="underline"],lexxy-toolbar lexxy-highlight-dropdown,lexxy-toolbar button[name="code"],lexxy-toolbar button[name="divider"]{display:none!important}
.appearance-group-heading{margin:28px 0 14px;padding-top:14px;border-top:1px solid var(--line);font:600 15px Arial,Helvetica,sans-serif;color:var(--ink)}
.lexxy-content,.product-description,.boutique-rich-text,.preview-boutique{overflow-wrap:anywhere}
.lexxy-content ul,.lexxy-content ol,.product-description ul,.product-description ol,.boutique-rich-text ul,.boutique-rich-text ol{padding-left:24px}
.lexxy-content table,.product-description table,.boutique-rich-text table{max-width:100%;display:block;overflow-x:auto;border-collapse:collapse}
.lexxy-content th,.lexxy-content td,.product-description th,.product-description td,.boutique-rich-text th,.boutique-rich-text td{border:1px solid var(--line);padding:6px}
.appearance-preview [contenteditable]{outline:1px dashed transparent;outline-offset:4px;cursor:text}
.appearance-preview [contenteditable]:hover,.appearance-preview [contenteditable]:focus{outline-color:var(--accent)}
.preview-boutique{padding:20px;background:var(--gold-soft);font-size:11px;overflow-wrap:anywhere}
.preview-boutique h3{font-family:var(--heading-font);font-size:22px}
.appearance-history{margin-top:24px}.appearance-history p{font-size:13px;overflow-wrap:anywhere}
.preview-image-left{display:grid;grid-template-columns:1fr 1fr}.preview-image-left .preview-header,.preview-image-left .preview-announcement,.preview-image-left .preview-components,.preview-image-left .preview-boutique{grid-column:1/-1}.preview-image-left .preview-photo{grid-column:1;grid-row:3}.preview-image-left .preview-hero{grid-column:2;grid-row:3}.preview-image-left .preview-photo img{height:100%;object-fit:cover}
.preview-image-left .preview-hero{padding:16px}.preview-image-left .preview-hero h2{font-size:25px}
@media(max-width:800px){.store-body .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-boutique{grid-column:1/-1}}
@media(max-width:540px){.store-body .layout-image_left .hero-image,.store-body .layout-image_left .hero-copy{grid-column:auto;grid-row:auto}.appearance-preview.preview-image-left{display:block}.preview-image-left .preview-photo img{height:160px}}

.preview-product-grid{display:grid;grid-template-columns:repeat(var(--grid-columns,4),minmax(0,1fr));gap:8px;margin:16px 0}.preview-product-grid img{width:100%;height:auto;aspect-ratio:var(--photo-ratio,3 / 4);object-fit:cover}.preview-product-grid strong{display:block;font-size:8px;margin:6px 0 2px;overflow-wrap:anywhere}.preview-product-grid small{font-size:9px}.preview-benefits{padding:12px;text-align:center;font-size:9px;grid-column:1/-1}
@media(min-width:801px){.appearance-preview-column{max-height:calc(100vh - 40px);overflow-y:auto;padding:4px 6px 12px}.appearance-editor{grid-template-columns:minmax(0,1fr) minmax(300px,420px)}}
@media(max-width:440px){.appearance-preview .preview-components{display:block}.preview-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-product-grid article:nth-child(n+3){display:none}}
