[data-shop-theme] { background:var(--bg);color:var(--ink); }
.website[data-shop-theme] { min-height:100vh; }
[data-shop-theme] :is(h1,h2,h3,h4,p,label,dt,dd,.product-name,.product-price,.cloud-shop-intro,.cloud-stock,.muted,.small,.product-category,.product-description,.product-bottom,.promotion-lowest,.premium-contact-grid,.shop-legal,.web-footer) { color:var(--ink); }
[data-shop-theme] :is(a,.buyer-store-brand,.shop-purchase-details>summary,.theme-preview-brand,.theme-preview-link) { color:var(--green); }
[data-shop-theme] :is(.panel,.product-card,.product-bottom,.detail-box,.support-thread,.support-sidebar,.product-attribute,.shop-category-filter button,.shop-social-links a,.shop-social-links button,.btn,.theme-preview-card) { background:var(--surface);color:var(--ink);border-color:var(--line); }
[data-shop-theme] :is(input,textarea,select) { background:var(--shop-field);color:var(--ink);border-color:var(--line); }
[data-shop-theme] :is(.btn.primary,.shop-category-filter button[aria-pressed="true"]) { background:var(--shop-button);border-color:var(--ink);color:var(--shop-button-ink); }
[data-shop-theme] .btn.primary:hover { background:var(--shop-button);border-color:var(--ink);color:var(--shop-button-ink); }
[data-shop-theme] .premium-catalog-main .product-bottom>.btn:first-child,
[data-shop-theme] .premium-catalog-main .product-bottom>.btn:first-child:hover { background:var(--shop-button);border-color:var(--ink);color:var(--shop-button-ink); }
[data-shop-theme] input { accent-color:var(--green); }
[data-shop-theme] .btn:not(.primary):hover,[data-shop-theme] .shop-social-links a:hover { background:var(--pale);color:var(--green);border-color:var(--green); }
[data-shop-theme] :is(.note:not(.warning):not(.danger),.trial-summary,.shipping-choice,.payment-choice) { background:var(--surface);color:var(--ink); }
[data-shop-theme] :is(.note.warning,.field-error) { color:#663d1a;background:#fff2df; }
[data-shop-theme] :is(button,a,input,textarea,select,summary):focus-visible { outline:3px solid var(--green);outline-offset:3px; }
[data-shop-theme] :is(.product-bottom,.web-nav,.web-footer,.shop-purchase-details,.summary-line,.cloud-cart-line) { border-color:var(--line); }
[data-shop-theme] :is(.product-picture,.product-card img) { background:var(--surface); }
[data-shop-theme] :is(.dialog-header,.dialog-footer,.check-row,.status-explanation,.product-safety-info,.bubble,.bubble.mine,.chat-header,.chat-context,.message-layout,.order-card,.empty,.image-label,.favorite-product) { background:var(--surface);color:var(--ink);border-color:var(--line); }
[data-shop-theme] .shipping-choice:has(input:checked),[data-shop-theme] .payment-choice:has(input:checked) { background:var(--surface);color:var(--ink);border-color:var(--green); }
[data-shop-theme] :is(.bubble,.chat-header,.chat-context,.product-safety-info,.check-row) :is(p,small,strong,span,label) { color:var(--ink); }
[data-shop-theme] .field small,[data-shop-theme] .payment-choice small,[data-shop-theme] .product-bottom small { color:var(--ink); }
.shop-theme-editor { margin-block:24px; }
.shop-theme-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px; }
.shop-theme-color { display:flex;gap:10px;align-items:center; }
.shop-theme-color input[type="color"] { width:48px;height:46px;min-width:48px;padding:4px;cursor:pointer; }
.shop-theme-color input:not([type="color"]) { min-width:0;width:100%;font-family:monospace; }
.shop-theme-actions { display:flex;gap:12px;flex-wrap:wrap; }
.shop-theme-preview { padding:24px;border:1px solid var(--line);border-radius:12px;margin-block:20px; }
.theme-preview-brand { font-weight:650;font-size:24px; }
.theme-preview-card { display:grid;grid-template-columns:110px 1fr;gap:20px;border:1px solid var(--line);border-radius:10px;padding:18px; }
.theme-preview-photo { border-radius:8px;background:linear-gradient(135deg,var(--line),var(--pale));min-height:150px; }
.theme-preview-card h3 { margin-top:0; }
.theme-preview-card .btn { display:inline-flex;margin:12px 14px 0 0; }
.theme-preview-link { display:inline-block;margin-top:12px;font-size:14px;text-decoration:underline; }
.theme-preview-card p { margin-block:6px; }
@media(max-width:600px) {
  .shop-theme-fields { grid-template-columns:1fr; }
  .theme-preview-card { grid-template-columns:1fr; }
  .theme-preview-photo { min-height:100px; }
  .shop-theme-preview { padding:16px; }
}
[data-shop-theme] .premium-catalog-main .catalog-product-card .product-bottom>.btn:disabled,
[data-shop-theme] .premium-catalog-main .catalog-product-card .product-bottom>.btn:disabled:hover{opacity:1;background:var(--pale);color:var(--ink);border-color:var(--line)}
