.widget-field {min-width:0}
.rich-toolbar {display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.rich-toolbar button,.rich-toolbar select,.rich-toolbar label {border:1px solid var(--line);border-radius:6px;min-height:32px;width:auto;padding:4px 7px;background:white;color:var(--ink);font-size:13px;line-height:1.3;font-weight:500}
.rich-toolbar label {display:inline-flex;gap:4px;align-items:center}
.rich-toolbar input[type=color] {width:24px;min-height:22px;height:22px;padding:0;border:0}
.rich-toolbar button:disabled {opacity:.44}
.rich-editor {display:block;min-height:128px;max-height:42vh;overflow:auto;border:1px solid #c8d5c9;padding:12px;border-radius:8px;line-height:1.6;background:white;overflow-wrap:anywhere;font-weight:400}
.rich-editor img {max-width:100%;height:auto;cursor:pointer}
.rich-editor .rich-selected {outline:3px solid var(--green);outline-offset:-3px}
.rich-editor:focus {outline:2px solid var(--green);outline-offset:1px}
.widget-field [hidden] {display:none!important}
.media-gallery {display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}
.media-tile {max-width:100%;width:132px;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.media-frame {width:100%;height:96px;display:grid;place-items:center;background:#f0f3ed;color:var(--muted);font-size:12px}
.media-frame img,.media-frame video {display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.media-frame.video-frame {height:auto;aspect-ratio:16/9;background:#19271d}
.media-tile:has(.video-frame) {width:min(100%,285px)}
.media-tile.is-loading {opacity:.72}
.media-actions {display:flex;align-items:center;justify-content:space-between;gap:4px;padding:3px 6px}
.media-replace,.media-add,.widget-remove,.choice-toggle {background:#fff;color:var(--green);font:inherit}
.media-replace {padding:3px 4px;border:0;font-size:12px;min-height:29px}
.widget-remove {display:grid;place-items:center;flex:none;width:29px;height:29px;padding:0;border:0;border-radius:7px;color:var(--muted);font-size:20px;line-height:1}
.widget-remove:hover {background:#faeceb;color:var(--red)}
.media-add {align-self:flex-start;min-height:37px;padding:6px 12px;border:1px dashed #9fb49e;border-radius:9px;background:#fafcf7;font-size:13px}
.media-add:hover,.media-replace:hover {background:#eef4e8}
.repeat-row .media-frame {height:64px}
.repeat-row .media-tile {width:94px}
.choice-selection {border:1px solid #c8d5c9;border-radius:10px;background:white}
.choice-toggle {display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:44px;padding:9px 13px;border:0;border-radius:inherit;text-align:left}
.choice-toggle::after {content:'';width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);margin-right:3px}
.choice-toggle[aria-expanded=true]::after {transform:rotate(225deg)}
.choice-panel {border:1px solid #b4c9b2;border-radius:12px;padding:8px;background:#fff;box-shadow:0 5px 18px #193f3012}
.choice-panel input[type=search] {min-height:36px;font-weight:400}
.choice-options {max-height:min(240px,38dvh);overflow-y:auto;overscroll-behavior:contain;margin-top:6px}
.choice-options>.hint {padding:12px}
#featured-products-form .choice-option + .choice-option {margin-top:7px}
#featured-products-form .choice-summary {display:block;padding:10px 12px;font-size:14px}
#featured-products-form .choice-panel {box-shadow:none}
.choice-option {display:flex;align-items:center;gap:10px;padding:8px 7px;border-radius:7px;cursor:pointer}
.choice-option:hover,.choice-option:focus-within {background:#f2f6ee}
.choice-option:has(:checked) {background:#eaf3e5}
.choice-option input[type=checkbox] {flex:none;margin:0}
.choice-info {display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.choice-image {display:block;flex:none;width:43px;height:43px;border-radius:8px;background:#e9eee5;overflow:hidden}
.choice-image img {width:100%;height:100%;object-fit:cover;display:block}
.choice-copy,.choice-copy strong,.choice-spec {display:block;min-width:0;overflow-wrap:anywhere}
.choice-copy strong {font-size:14px;color:var(--ink);line-height:1.4}
.choice-spec {font-size:12px;font-weight:400;color:var(--muted);line-height:1.4}
.choice-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:7px;max-height:190px;overflow:auto;padding:0 9px 9px}
.choice-card {min-width:0;display:flex;align-items:center;gap:4px;border:1px solid #dce7d8;border-radius:9px;background:#f6f9f2;padding:6px}
.choice-card .widget-remove {background:transparent}
.choice-card .widget-remove:hover {background:#faeceb}
.activity-variants {display:grid;gap:10px;max-height:34vh;min-height:0;overflow:auto;overscroll-behavior:contain}
.activity-variants[hidden]{display:none}
.activity-products-item {padding:9px 12px;background:#f6f9f3;border:1px solid var(--line);border-radius:10px;min-width:0}
.activity-products-item>.choice-info {font-size:14px;margin-bottom:4px}
.activity-sku {display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,125px);gap:12px;align-items:center;padding:5px 0}
.activity-sku label {display:flex;align-items:center;gap:8px;min-width:0;font-weight:500;overflow-wrap:anywhere}
.activity-sku label small {display:block;font-size:12px;color:var(--muted);font-weight:400}
.activity-sku input[type=number] {min-height:36px;font-size:13px;background:#fff}
@media(max-width:680px){.choice-cards {grid-template-columns:minmax(0,1fr)}.media-gallery{gap:8px}.media-tile{width:111px}}
.appearance-themes { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 18px; }
.appearance-theme { display:grid;grid-template-columns:auto 1fr;align-items:center;gap:7px;padding:8px;background:var(--preview-paper);border-radius:10px;cursor:pointer; }
.appearance-theme input { width:16px;min-height:16px;accent-color:var(--preview-accent); }
.appearance-theme strong { grid-column:1/-1;text-align:center;font-size:14px;color:var(--preview-accent); }
.appearance-sample { display:grid;gap:5px;width:100%;padding:6px;background:white;border-radius:var(--preview-radius); }
.appearance-sample i { width:100%;height:17px;border-radius:5px;background:var(--preview-soft); }
.appearance-sample b { width:60%;height:5px;border-radius:3px;background:var(--preview-accent); }
.appearance-video { display:block;width:min(100%,235px);margin:12px auto;aspect-ratio:1140/1324;object-fit:contain;background:#f5f4ef;border-radius:14px; }
.appearance-tools { display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:12px; }
