/* Page spacing: Polaris sections sit inside our show/hide wrappers, so space them out here */
s-section{display:block;margin-block-end:16px}
/* Only the bits Polaris doesn't cover: preset buttons, colour/date pickers, banner preview. */
.presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.preset{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:8px;padding:8px 12px;background:var(--bg);color:var(--fg);font:600 13px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.preset[aria-pressed=true]{outline:2px solid #303030;outline-offset:2px}
.preset__ico{display:inline-flex;width:16px;height:16px}
.preset__ico svg,.preview__ico svg{width:100%;height:100%}
.preset__ico:empty{display:none}
.row{display:flex;flex-wrap:wrap;gap:12px}
.fld{display:flex;flex-direction:column;gap:4px;font:13px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#303030;min-width:120px}
.fld--wide{min-width:240px}
.fld input,.fld select{height:34px;border:1px solid #8a8a8a;border-radius:8px;padding:0 8px;font:inherit;background:#fff}
.fld input[type=color]{width:64px;padding:2px}
.preview__ico{display:inline-flex;width:16px;height:16px;flex:none}
.preview__ico:empty{display:none}
/* Banner preview: same design as the shop's sale banner */
.preview{position:relative;isolation:isolate;overflow:hidden;margin-top:8px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;min-height:46px;padding:7px 16px;border-radius:8px;background-color:var(--bg);background-image:linear-gradient(180deg,rgba(255,255,255,.07),rgba(0,0,0,.07));color:var(--fg);font:600 12px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:.12em;text-transform:uppercase;text-align:center}
.preview[data-pattern]:not([data-pattern=none])::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 22%,transparent 34%,transparent 66%,#000 78%,#000 100%);mask-image:linear-gradient(90deg,#000 0,#000 22%,transparent 34%,transparent 66%,#000 78%,#000 100%)}
.preview[data-pattern=snow]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cg stroke-opacity='.32' stroke-width='1.1'%3E%3Cpath d='M18 9v10M13 14h10M14.5 10.5l7 7M21.5 10.5l-7 7'/%3E%3Cpath d='M96 28v10M91 33h10M92.5 29.5l7 7M99.5 29.5l-7 7'/%3E%3C/g%3E%3Cg stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M58 30v6M55 33h6M56 31l4 4M60 31l-4 4'/%3E%3Cpath d='M136 8v6M133 11h6M134 9l4 4M138 9l-4 4'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='40' cy='12' r='1.2' fill-opacity='.35'/%3E%3Ccircle cx='76' cy='9' r='.9' fill-opacity='.3'/%3E%3Ccircle cx='118' cy='38' r='1.1' fill-opacity='.3'/%3E%3Ccircle cx='150' cy='30' r='.9' fill-opacity='.28'/%3E%3Ccircle cx='8' cy='38' r='1' fill-opacity='.3'/%3E%3Ccircle cx='34' cy='40' r='.8' fill-opacity='.25'/%3E%3C/g%3E%3C/svg%3E");background-size:160px 48px}
.preview[data-pattern=dots]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='48' viewBox='0 0 140 48'%3E%3Cg fill-opacity='.55'%3E%3Crect x='12' y='10' width='5' height='2' rx='1' fill='%23f3d27a' transform='rotate%2830 14 11%29'/%3E%3Crect x='60' y='32' width='5' height='2' rx='1' fill='%23fff' transform='rotate%28-25 62 33%29'/%3E%3Crect x='104' y='12' width='5' height='2' rx='1' fill='%23f3d27a' transform='rotate%2860 106 13%29'/%3E%3Ccircle cx='38' cy='34' r='1.3' fill='%23fff'/%3E%3Ccircle cx='84' cy='14' r='1.2' fill='%23f3d27a'/%3E%3Ccircle cx='128' cy='36' r='1.3' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");background-size:140px 48px}
.preview[data-pattern=stripes]::before{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.12) 0 10px,transparent 10px 24px)}
.preview__ico{width:18px;height:18px}
.preview__count:not(:empty){display:inline-flex;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,currentColor 16%,transparent);letter-spacing:.06em;white-space:nowrap}
.preview__cta:not(:empty){display:inline-flex;padding:4px 12px;border-radius:999px;box-shadow:inset 0 0 0 1px currentColor;font-size:11px;letter-spacing:.1em;white-space:nowrap}
