/* GANSELL v0.18.0 — launch stabilisation layer.
   Loaded after the legacy stylesheet so new work has one mobile-first source of truth. */
:root{
  --gs-launch-gap:10px;
  --gs-launch-radius:12px;
  --gs-launch-line:#e7ece9;
  --gs-launch-soft:#f6f8f7;
  --gs-launch-green:#0b8b58;
  --gs-launch-red:#e23b3b;
}

/* Permanent page shells */
.merchant-v10-main,.admin-shell-main{min-width:0;width:100%;box-sizing:border-box}
.merchant-v10-main>* ,.admin-shell-main>*{max-width:100%;box-sizing:border-box}
.merchant-editor-main{padding-bottom:88px}
.merchant-editor-main .product-editor-page{width:min(900px,100%);margin:0 auto;padding:0}
.merchant-editor-main .editor-topbar{margin:0 0 10px}
.merchant-editor-main .wa-product-editor{margin:0}

/* Forms stay visually compact but never trigger iOS input zoom. */
input,select,textarea,button{font-family:inherit}
@media(max-width:760px){
  input,select,textarea{font-size:16px!important;line-height:1.25!important}
  .wa-field input,.wa-field select,.wa-field textarea,.checkout-field input,.checkout-field select,.checkout-field textarea{min-height:44px!important;padding:9px 11px!important}
  .wa-field textarea,.checkout-field textarea{min-height:72px!important}
}

/* Store catalogue: image first, one-line copy, no unnecessary card chrome. */
.gs-product-grid{align-items:start!important}
.gs-product-card{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
.gs-product-card>.shop-product-open{background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important;text-align:left!important;padding:0!important}
.gs-product-image{aspect-ratio:1/1!important;width:100%!important;height:auto!important;padding:5px!important;background:#fff!important;border:1px solid var(--gs-launch-line)!important;border-radius:11px!important;overflow:hidden!important}
.gs-product-image img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.gs-product-copy{min-height:0!important;height:auto!important;padding:5px 30px 0 1px!important;background:transparent!important}
.gs-product-copy strong{display:block!important;margin:0!important;font-size:12px!important;line-height:1.1!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.gs-product-copy h3{display:block!important;margin:3px 0 0!important;font-size:10.5px!important;line-height:1.1!important;font-weight:600!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.gs-product-add{right:2px!important;bottom:0!important;width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;border-radius:999px!important;box-shadow:none!important;background:var(--gs-launch-green)!important;overflow:visible!important}
.gs-product-add::before{content:"";position:absolute;inset:-9px;border-radius:999px}
.gs-product-add .gs-icon{width:13px!important;height:13px!important}
.gs-photo-count{font-size:8px!important;border-radius:8px!important;padding:3px 5px!important}

/* Quick-view: one clean popup surface, contained photography, quantity + actions. */
.product-sheet{width:min(420px,100%)!important;max-height:min(76vh,680px)!important;overflow-y:auto!important;overscroll-behavior:contain;background:#fff!important}
.sheet-product-gallery{width:min(210px,58vw)!important;height:190px!important;margin:26px auto 0!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:hidden!important}
.sheet-product-gallery-track,.sheet-product-slide{height:190px!important;min-height:190px!important}
.sheet-product-slide{display:grid!important;place-items:center!important;margin:0!important;background:transparent!important}
.sheet-product-slide img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;transform:none!important}
.sheet-product-copy{width:min(352px,calc(100% - 28px))!important;max-width:352px!important;margin:0 auto!important;padding:10px 0 14px!important}
.sheet-product-copy h2{margin:0!important;font-size:17px!important;line-height:1.15!important;letter-spacing:-.02em}
.sheet-product-copy>p{display:block!important;margin:5px 0 7px!important;font-size:10px!important;line-height:1.4!important;color:#7a837e!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;overflow:visible!important}
.sheet-product-price{display:block!important;margin:0 0 11px!important;font-size:14px!important;color:#17201b!important}
.sheet-product-footer{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;width:100%!important}
.sheet-product-quantity{height:40px!important;display:grid!important;grid-template-columns:30px 1fr 30px!important;align-items:center!important;border:1px solid #e1e7e3!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important}
.sheet-product-quantity button{width:30px!important;height:40px!important;padding:0!important;background:transparent!important;border:0!important;color:#16221b!important;font-size:17px!important;font-weight:700!important}
.sheet-product-quantity b{text-align:center!important;font-size:11px!important}.sheet-product-quantity button:disabled{opacity:.35!important}
.sheet-product-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 62px!important;gap:7px!important;width:100%!important;min-width:0!important}
.sheet-product-actions .sheet-add-btn,.sheet-product-actions .sheet-share-btn{margin:0!important;width:100%!important;min-width:0!important;min-height:40px!important;height:40px!important;padding:0 10px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important}
.sheet-product-actions .sheet-add-btn{justify-content:space-between!important;background:var(--gs-launch-green)!important;color:#fff!important;border:1px solid var(--gs-launch-green)!important}
.sheet-product-actions .sheet-add-btn strong{font-size:9.5px!important;font-weight:800!important;color:#fff!important}
.sheet-product-actions .sheet-share-btn{background:#fff!important;color:#0b7a4d!important;border:1px solid #dfe7e2!important;padding:0 7px!important}
.sheet-product-gallery-status{margin-top:3px!important}

/* Full photo is intentionally contained, never a full-screen takeover. */
.gs-image-lightbox{padding:20px!important;display:grid!important;place-items:center!important}
.gs-image-lightbox[hidden]{display:none!important}
.gs-image-lightbox-dialog{width:min(420px,82vw)!important;max-width:82vw!important;height:auto!important;max-height:62vh!important;padding:8px!important;border-radius:14px!important;background:#fff!important}
.gs-image-lightbox-dialog>img{display:block!important;width:100%!important;max-height:56vh!important;object-fit:contain!important;border-radius:9px!important}
.gs-image-lightbox-dialog .gs-image-lightbox-close{top:7px!important;right:7px!important;width:32px!important;height:32px!important;border-radius:999px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 3px 12px rgba(0,0,0,.12)!important}

/* Dense vendor catalogue. */
.merchant-v10-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
.merchant-v10-product-card{border:1px solid var(--gs-launch-line)!important;border-radius:11px!important;overflow:hidden!important;background:#fff!important;box-shadow:none!important}
.merchant-v10-product-image{aspect-ratio:1/1!important;height:auto!important;background:#fff!important;margin:0!important;border:0!important}
.merchant-v10-product-image img{width:100%!important;height:100%!important;object-fit:contain!important;padding:5px!important}
.merchant-v10-product-copy{padding:7px!important;min-width:0}
.merchant-v10-product-copy strong{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10.5px!important}
.merchant-v10-product-copy b{font-size:11px!important}
.merchant-v10-product-actions{padding:5px 6px!important;gap:4px!important;border-top:1px solid #eef1ef!important}

/* Admin/merchant canvas rhythm: compact and consistent. */
.admin-shell-main,.merchant-v10-main{max-width:1540px;margin:0 auto}
.admin-shell-main section,.merchant-v10-main section{box-sizing:border-box}

/* Rating appears only at the correct lifecycle stage. */
.rating-after-fulfilment{display:flex;align-items:center;gap:6px;margin:10px 0 0;color:#7a847e;font-size:10px;line-height:1.4}
.store-review-box.compact{padding:10px!important}

/* Ads may be present immediately, interruption may not. */
.gs-platform-ad-wrap{margin-top:8px!important;margin-bottom:10px!important}

@media(max-width:1180px){
  .merchant-v10-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .merchant-v10-main{padding-left:12px!important;padding-right:12px!important}
  .merchant-editor-main{padding-left:10px!important;padding-right:10px!important}
  .merchant-editor-main .product-editor-page{padding:0!important}
  .gs-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px 7px!important}
  .gs-product-section{padding-left:12px!important;padding-right:12px!important}
  .gs-product-image{padding:3px!important;border-radius:9px!important}
  .gs-product-copy{padding:4px 25px 0 1px!important}
  .gs-product-copy strong{font-size:10.5px!important}
  .gs-product-copy h3{font-size:9px!important;margin-top:2px!important}
  .gs-product-add{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;right:1px!important;bottom:0!important}
  .gs-product-add .gs-icon{width:11px!important;height:11px!important}
  .product-sheet{max-height:76vh!important}
  .sheet-product-gallery{width:min(178px,52vw)!important;height:158px!important;margin-top:25px!important}
  .sheet-product-gallery-track,.sheet-product-slide{height:158px!important;min-height:158px!important}
  .sheet-product-copy{width:min(330px,calc(100% - 24px))!important;padding-top:8px!important}
  .sheet-product-copy h2{font-size:16px!important}
  .sheet-product-price{font-size:13px!important;margin-bottom:9px!important}
  .sheet-product-footer{grid-template-columns:86px minmax(0,1fr)!important;gap:6px!important}
  .sheet-product-quantity{height:38px!important;grid-template-columns:28px 1fr 28px!important}.sheet-product-quantity button{width:28px!important;height:38px!important}
  .sheet-product-actions{grid-template-columns:minmax(0,1fr) 58px!important;gap:6px!important}
  .sheet-product-actions .sheet-add-btn,.sheet-product-actions .sheet-share-btn{height:38px!important;min-height:38px!important;font-size:9.5px!important;padding:0 7px!important}
  .sheet-product-actions .sheet-add-btn strong{font-size:8.7px!important}
  .gs-image-lightbox-dialog{width:min(330px,78vw)!important;max-width:78vw!important;max-height:54vh!important}
  .gs-image-lightbox-dialog>img{max-height:49vh!important}
  .merchant-v10-product-grid{grid-template-columns:1fr!important;gap:7px!important}
  .merchant-v10-product-card{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important}
  .merchant-v10-product-image{width:64px!important;height:64px!important;aspect-ratio:1/1!important}
  .merchant-v10-product-copy{padding:6px 7px!important}
  .merchant-v10-product-actions{grid-column:2!important;border-top:0!important;padding:0 7px 6px!important}
}
@media(max-width:340px){
  .gs-product-grid{gap:9px 5px!important}
  .gs-product-copy strong{font-size:10px!important}.gs-product-copy h3{font-size:8.6px!important}
  .sheet-product-actions .sheet-add-btn,.sheet-product-actions .sheet-share-btn{font-size:9px!important}
}

/* =========================================================
   GANSELL 0.19 — modal-first editing + vertical storefronts
   ========================================================= */

/* Keep the fixed navigation rail out of the content canvas. */
@media (min-width:761px){
  .merchant-v10-main{margin-left:216px!important;margin-right:0!important;width:calc(100% - 216px)!important;max-width:none!important}
  .admin-shell-main{margin-left:218px!important;margin-right:0!important;width:calc(100% - 218px)!important;max-width:none!important}
}

/* Cover positioning: drag is primary, slider is the reliable fallback. */
.gs-cover-position-editor{touch-action:none!important;cursor:ns-resize!important;position:relative!important}
.gs-cover-position-editor.is-dragging{cursor:grabbing!important}
.gs-cover-position-editor img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% var(--cover-y,50%)!important;user-select:none!important;-webkit-user-drag:none!important;pointer-events:none!important}
.gs-cover-position-control{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:8px;color:#8a938d;font-size:8px;font-weight:700}
.gs-cover-position-control input[type=range]{width:100%;accent-color:#0b8b57;min-height:24px;cursor:pointer}
.gs-cover-position-hint{transition:opacity .15s ease}.gs-cover-position-editor.is-dragging .gs-cover-position-hint{opacity:.35}

/* Business-aware layout picker with an immediate storefront preview. */
.merchant-layout-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.merchant-layout-option{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 20px;gap:9px;align-items:center;min-height:76px;padding:10px;border:1px solid #dfe6e1;border-radius:12px;background:#fff;cursor:pointer}
.merchant-layout-option input{position:absolute;opacity:0;pointer-events:none}
.merchant-layout-option>span:nth-of-type(2){min-width:0;display:grid;gap:2px}.merchant-layout-option strong{font-size:10px}.merchant-layout-option small{font-size:8px;line-height:1.35;color:#8a938d;font-weight:500}.merchant-layout-option em{font-style:normal;font-size:7px;color:#0b8b57;font-weight:800}
.merchant-layout-icon{width:34px;height:34px;border-radius:10px;background:#eef7f2;color:#0b8b57;display:grid;place-items:center}
.merchant-layout-option>b{width:20px;height:20px;border-radius:50%;border:1px solid #d7ded9;color:transparent;display:grid;place-items:center}
.merchant-layout-option:has(input:checked){border-color:#16a66a;background:#f4fbf7}.merchant-layout-option:has(input:checked)>b{background:#16a66a;border-color:#16a66a;color:#fff}
.merchant-layout-preview{margin-top:10px;border:1px solid #e4e9e6;border-radius:12px;background:#fbfcfb;padding:10px;display:grid;grid-template-columns:minmax(180px,280px) minmax(0,1fr);gap:12px;align-items:center}
.merchant-layout-preview-bar{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}.merchant-layout-preview-bar span{font-size:7px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8b948e}.merchant-layout-preview-bar strong{font-size:10px}
.merchant-layout-preview-store{height:104px;border:1px solid #e4e9e6;border-radius:9px;background:#fff;padding:7px;display:grid;grid-template-rows:26px 13px 15px 1fr;gap:5px;overflow:hidden}.merchant-layout-preview-cover{border-radius:5px;background:linear-gradient(115deg,#d9eee2,#f1f5f2)}.merchant-layout-preview-search{width:72%;border-radius:8px;background:#edf1ee}.merchant-layout-preview-cats{display:flex;gap:4px}.merchant-layout-preview-cats i{display:block;width:20px;border-radius:7px;background:#e8eeea}.merchant-layout-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.merchant-layout-preview-grid i{display:block;border-radius:4px;background:#eef2ef}
.merchant-layout-preview[data-layout="fashion"] .merchant-layout-preview-grid{grid-template-columns:repeat(3,1fr)}.merchant-layout-preview[data-layout="fashion"] .merchant-layout-preview-grid i{border-radius:2px;background:#e8e6e2}.merchant-layout-preview[data-layout="pharmacy"] .merchant-layout-preview-search{width:100%;background:#e9f5ef}.merchant-layout-preview[data-layout="food"] .merchant-layout-preview-grid i{border-radius:7px;background:#f1eee7}.merchant-layout-preview[data-layout="beauty"] .merchant-layout-preview-grid i{border-radius:8px;background:#f1ecef}
.merchant-layout-preview>small{font-size:9px;line-height:1.45;color:#79827d}
.merchant-appearance-divider{display:flex;align-items:center;gap:8px;margin:15px 0 9px;color:#919994;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.merchant-appearance-divider:after{content:"";height:1px;background:#e8ece9;flex:1}

/* Product quick-view is a true centred popup on desktop, compact bottom sheet on mobile. */
@media (min-width:761px){
  .product-sheet{left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;width:min(520px,calc(100vw - 44px))!important;max-height:min(86vh,760px)!important;padding:16px 24px 20px!important;border-radius:20px!important;transform:translate(-50%,-46%) scale(.985)!important;opacity:0!important;pointer-events:none!important;box-shadow:0 24px 80px rgba(18,27,22,.22)!important;transition:transform .2s ease,opacity .18s ease!important;overflow:auto!important;background:#fff!important}
  .product-sheet.open{transform:translate(-50%,-50%) scale(1)!important;opacity:1!important;pointer-events:auto!important}
  .product-sheet .sheet-handle{display:none!important}
  .product-sheet .sheet-close{top:12px!important;right:12px!important;width:34px!important;height:34px!important;border-radius:50%!important;background:#f2f4f2!important}
  .product-sheet .sheet-product-gallery{width:min(300px,64%)!important;height:270px!important;margin:10px auto 0!important;background:transparent!important}
  .product-sheet .sheet-product-gallery-track,.product-sheet .sheet-product-slide{height:270px!important;min-height:270px!important}
  .product-sheet .sheet-product-copy{width:min(468px,100%)!important;max-width:468px!important;padding:11px 0 0!important}
  .product-sheet .sheet-product-copy h2{font-size:22px!important}.product-sheet .sheet-product-price{font-size:17px!important}
  .product-sheet .sheet-product-footer{grid-template-columns:104px minmax(0,1fr)!important;gap:10px!important}
  .product-sheet .sheet-product-quantity{height:44px!important;grid-template-columns:34px 1fr 34px!important}.product-sheet .sheet-product-quantity button{width:34px!important;height:44px!important}
  .product-sheet .sheet-product-actions{grid-template-columns:minmax(0,1fr) 76px!important;gap:8px!important}.product-sheet .sheet-product-actions .sheet-add-btn,.product-sheet .sheet-product-actions .sheet-share-btn{height:44px!important;min-height:44px!important;font-size:11px!important}.product-sheet .sheet-product-actions .sheet-add-btn strong{font-size:10px!important}
}

/* One reusable merchant dialog surface: product create/edit and confirmations. */
body.merchant-modal-open{overflow:hidden}
.merchant-modal-backdrop{position:fixed;inset:0;background:rgba(17,25,20,.52);z-index:180;opacity:0;transition:opacity .16s ease}.merchant-modal-backdrop.open{opacity:1}
.merchant-product-modal{position:fixed;z-index:190;left:50%;top:50%;width:min(700px,calc(100vw - 34px));max-height:min(88vh,820px);background:#fff;border-radius:18px;box-shadow:0 28px 90px rgba(13,24,17,.25);overflow:auto;transform:translate(-50%,-47%) scale(.985);opacity:0;transition:transform .18s ease,opacity .16s ease}
.merchant-product-modal.open{transform:translate(-50%,-50%) scale(1);opacity:1}.merchant-product-modal[hidden],.merchant-modal-backdrop[hidden]{display:none!important}
.merchant-product-modal-body{min-height:120px;padding:16px}.merchant-product-modal .merchant-product-editor-fragment{width:100%}.merchant-product-modal .wa-product-editor{max-width:none;margin:0}.merchant-product-modal .wa-photo-section,.merchant-product-modal .wa-fields-section{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 0!important;margin:0!important}.merchant-product-modal .wa-fields-section{border-top:1px solid #edf0ee!important}
.merchant-product-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 10px}.merchant-product-modal-head small{display:block;font-size:7px;letter-spacing:.12em;color:#89918c;font-weight:800}.merchant-product-modal-head h2{margin:2px 0 0;font-size:20px;letter-spacing:-.035em}.merchant-product-modal-close{width:34px;height:34px;border-radius:50%;padding:0;background:#f0f2f0;color:#1b241f;display:grid;place-items:center}
.merchant-product-modal .wa-submit-bar{position:sticky!important;bottom:-16px!important;margin:0 -16px -16px!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.97)!important;border-top:1px solid #e8ece9!important;backdrop-filter:blur(10px);z-index:8}
.merchant-modal-cancel{background:transparent!important;color:#68736d!important;padding:9px 12px!important}.merchant-modal-loading,.merchant-modal-error{min-height:180px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;color:#68736d}.merchant-modal-loading strong,.merchant-modal-error strong{color:#17201b;font-size:12px}.merchant-modal-error span{font-size:10px}
.merchant-confirm-dialog{min-height:210px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-content:center}.merchant-confirm-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff1f1;color:#c72c2c;font-size:19px;font-weight:900}.merchant-confirm-dialog small{font-size:7px;letter-spacing:.1em;color:#959d98;font-weight:800}.merchant-confirm-dialog h2{font-size:18px;margin:3px 0 5px}.merchant-confirm-dialog p{font-size:10px;line-height:1.45;color:#747e78;margin:0}.merchant-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.merchant-confirm-actions button{height:40px;border-radius:10px;padding:0 14px;font-size:10px;font-weight:800}.merchant-confirm-actions .danger{background:#c93434;color:#fff}

/* Layout families. Colour themes remain independent from layout. */
.shop-layout-general .gs-product-grid,.shop-layout-pharmacy .gs-product-grid,.shop-layout-food .gs-product-grid,.shop-layout-beauty .gs-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.shop-layout-general .gs-product-image,.shop-layout-pharmacy .gs-product-image,.shop-layout-food .gs-product-image,.shop-layout-beauty .gs-product-image{aspect-ratio:1/1!important}
.shop-layout-general .gs-product-image img,.shop-layout-pharmacy .gs-product-image img,.shop-layout-food .gs-product-image img,.shop-layout-beauty .gs-product-image img{object-fit:contain!important}

.shop-layout-fashion .gs-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:15px 10px!important}.shop-layout-fashion .gs-product-image{aspect-ratio:4/5!important;background:#f4f4f1!important;border-radius:8px!important}.shop-layout-fashion .gs-product-image img{object-fit:contain!important;padding:4px!important}.shop-layout-fashion .gs-category-strip button span{border-radius:50%!important}.shop-layout-fashion .gs-store-cover{height:220px}.shop-layout-fashion .gs-store-logo{border-radius:50%!important}
.shop-layout-pharmacy .gs-store-shell{background:#fff}.shop-layout-pharmacy .gs-store-search{position:sticky;top:0;z-index:10;background:#fff;padding-top:7px!important}.shop-layout-pharmacy .gs-product-image{background:#fff!important;border-color:#ecefeb!important}.shop-layout-pharmacy .gs-product-copy{padding-top:6px!important}.shop-layout-pharmacy .gs-product-card{background:#fff!important}.shop-layout-pharmacy .gs-category-strip button span{background:#f7faf8!important}
.shop-layout-food .gs-store-shell{background:#fff}.shop-layout-food .gs-product-image{background:#faf9f5!important;border-radius:13px!important}.shop-layout-food .gs-product-add{background:#075c44!important}.shop-layout-food .gs-category-strip button span{border-radius:12px!important}
.shop-layout-beauty .gs-product-image{background:#fbf7f9!important;border-radius:14px!important}.shop-layout-beauty .gs-category-strip button span{border-radius:50%!important}.shop-layout-beauty .gs-product-copy strong{font-weight:800!important}.shop-layout-beauty .gs-store-cover{height:205px}

/* Keep the direct editor route as a safe fallback; merchant UI opens the modal by default. */
.merchant-product-editor-fragment:not(.is-modal) .merchant-product-modal-head{display:none}

@media(max-width:1100px){
  .merchant-layout-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shop-layout-general .gs-product-grid,.shop-layout-pharmacy .gs-product-grid,.shop-layout-food .gs-product-grid,.shop-layout-beauty .gs-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .shop-layout-fashion .gs-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .merchant-layout-picker{grid-template-columns:1fr 1fr}.merchant-layout-option{grid-template-columns:30px minmax(0,1fr) 18px;min-height:68px;padding:8px}.merchant-layout-icon{width:30px;height:30px}.merchant-layout-option small{font-size:7.5px}.merchant-layout-option em{font-size:6.5px}
  .merchant-layout-preview{grid-template-columns:1fr;padding:8px;gap:7px}.merchant-layout-preview-store{height:92px}.merchant-layout-preview>small{font-size:8px}
  .merchant-product-modal{left:0;right:0;top:auto;bottom:0;width:100%;max-height:92vh;border-radius:18px 18px 0 0;transform:translateY(104%);opacity:1}.merchant-product-modal.open{transform:none}.merchant-product-modal-body{padding:10px 12px 0}.merchant-product-modal .wa-photo-section,.merchant-product-modal .wa-fields-section{padding:10px 0!important}.merchant-product-modal-head{padding:2px 0 9px}.merchant-product-modal-head h2{font-size:18px}.merchant-product-modal .wa-submit-bar{bottom:0!important;margin:0 -12px!important;padding:9px 12px calc(9px + env(safe-area-inset-bottom))!important}
  .merchant-confirm-dialog{min-height:190px;grid-template-columns:38px minmax(0,1fr)}.merchant-confirm-icon{width:38px;height:38px}.merchant-confirm-actions{justify-content:stretch}.merchant-confirm-actions button{flex:1}
  .shop-layout-general .gs-product-grid,.shop-layout-pharmacy .gs-product-grid,.shop-layout-food .gs-product-grid,.shop-layout-beauty .gs-product-grid,.shop-layout-fashion .gs-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px 7px!important}.shop-layout-fashion .gs-store-cover,.shop-layout-beauty .gs-store-cover{height:150px}.shop-layout-fashion .gs-product-copy strong,.shop-layout-beauty .gs-product-copy strong{font-size:10.5px!important}.shop-layout-fashion .gs-product-copy h3,.shop-layout-beauty .gs-product-copy h3{font-size:9px!important}
  .gs-cover-position-control{grid-template-columns:auto minmax(0,1fr) auto}
}


/* Sprint 0.20 — provider-neutral background removal settings */
.provider-priority-note{display:flex;gap:.45rem;align-items:flex-start;margin:.75rem 0 1rem;padding:.72rem .8rem;background:#f2fbf6;border-radius:12px;font-size:.82rem;line-height:1.42;color:#355347}.provider-priority-note strong{color:#087a49;white-space:nowrap}.platform-provider-advanced{margin:0;padding:.75rem;border:1px solid #e1e8e4;border-radius:12px}.platform-provider-advanced legend{padding:0 .35rem;font-weight:700;font-size:.82rem}.platform-provider-advanced>p{margin:0 0 .65rem;color:#69756f;font-size:.78rem}.platform-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.provider-setup-help{margin-top:.8rem;font-size:.8rem;color:#58655f}.provider-setup-help summary{cursor:pointer;font-weight:700;color:#087a49}.provider-setup-help p{margin:.5rem 0 0;line-height:1.45}.platform-setting-form [hidden]{display:none!important}
@media(max-width:700px){.provider-priority-note{display:block}.provider-priority-note strong{display:block;margin-bottom:.2rem;white-space:normal}.platform-provider-grid{grid-template-columns:1fr}.platform-provider-advanced{padding:.65rem}}

/* =========================================================
   GANSELL 0.21/0.22 — launch responsive merchant workspace
   ========================================================= */
:root{--gs-merchant-rail:216px;--gs-merchant-canvas:1540px}
.merchant-v10-main>*{width:100%!important;max-width:var(--gs-merchant-canvas)!important;margin-left:0!important;margin-right:auto!important;min-width:0}
.merchant-settings-main>*{width:100%!important;max-width:1180px!important;margin-left:0!important;margin-right:auto!important}
.merchant-v10-products img{object-fit:contain!important;background:#fff!important;padding:2px!important}
.merchant-v10-list>a>div:first-child,.merchant-v10-order-table .order-id,.merchant-v10-customer-list article>div:nth-child(2){min-width:0!important}
.merchant-v10-list strong,.merchant-v10-list small,.merchant-v10-order-table .order-id strong,.merchant-v10-order-table .order-id small,.merchant-v10-customer-list strong,.merchant-v10-customer-list article>div:nth-child(2)>a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:961px){
  .merchant-v10-main{margin-left:var(--gs-merchant-rail)!important;width:calc(100% - var(--gs-merchant-rail))!important;max-width:none!important}
}
@media(max-width:1100px){.merchant-v10-columns{grid-template-columns:1fr!important}.merchant-v10-order-layout{grid-template-columns:1fr!important}.merchant-v10-order-side form{position:static!important}}
@media(max-width:960px) and (min-width:761px){
  .merchant-v10-rail{display:none!important}
  .merchant-v10-main{margin:0!important;width:100%!important;max-width:none!important;padding:20px 18px calc(96px + env(safe-area-inset-bottom))!important}
  .merchant-v10-main>*{max-width:none!important}
  .merchant-v10-bottom{display:grid!important}
  .merchant-v10-order-layout{grid-template-columns:1fr!important}.merchant-v10-order-side form{position:static!important}
}
@media(max-width:760px){
  .merchant-v10-main{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
  .merchant-v10-head-actions>a.merchant-v10-store-shortcut{display:grid!important;width:35px!important;height:35px!important;min-height:35px!important;padding:0!important;place-items:center!important;border-radius:10px!important}
  .merchant-v10-store-shortcut span{display:none!important}
  .merchant-v10-store-link{margin-bottom:8px!important}
  .merchant-v10-list strong{max-width:64vw}
}
@media(max-width:340px){
  .merchant-v10-sales{padding-left:15px!important;padding-right:15px!important}
  .merchant-v10-actions a,.merchant-v10-actions button{padding-left:7px!important;padding-right:7px!important}
  .merchant-v10-stats>div{padding-left:9px!important;padding-right:9px!important}
}

/* Hidden switch controls must never create horizontal scroll; compact product toolbar must fit 320px. */
.switch input{width:1px!important;height:1px!important;margin:0!important;padding:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important}
.merchant-v10-toolbar label{min-width:0}.merchant-v10-toolbar label input{min-width:0;width:100%}
@media(max-width:390px){.merchant-v10-toolbar select{width:100%!important;min-width:0!important}}

/* Sprint 0.25/0.26: merchant custom-domain controls */
.merchant-domain-card{margin-top:16px}.merchant-domain-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.merchant-domain-status{font-size:12px;font-weight:700;padding:6px 9px;border-radius:999px;background:#f1f3f2;color:#64706a}.merchant-domain-status.on{background:#e5f8ef;color:#087b4d}.merchant-domain-current{display:flex;flex-direction:column;gap:3px;padding:12px 0}.merchant-domain-current strong{font-size:15px}.merchant-domain-current span{font-size:12px;color:#748079}.merchant-domain-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.merchant-domain-form{border:1px solid #e5e9e7;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px}.merchant-domain-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}.merchant-domain-form input{width:100%;min-height:44px;border:1px solid #dce3df;border-radius:10px;padding:9px 11px;font-size:16px}.merchant-domain-result{padding:10px;border-radius:10px;background:#f6f7f6;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12px}.merchant-domain-result.available{background:#eaf8f1}.merchant-domain-result strong{width:100%;font-size:13px}.merchant-domain-result button{border:0;border-radius:8px;background:#078454;color:#fff;padding:8px 10px;font-weight:700}.merchant-domain-dns{margin-top:14px;padding:12px;border-radius:12px;background:#f6f8f7;display:grid;gap:7px;font-size:12px}.merchant-domain-dns code{font-size:12px}.merchant-domain-disconnect{margin-top:12px}.merchant-domain-disconnect button{border:0;background:transparent;color:#9a3a3a;padding:0;font-size:12px;text-decoration:underline}@media(max-width:760px){.merchant-domain-grid{grid-template-columns:1fr}.merchant-domain-card>header{align-items:flex-start}.merchant-domain-status{white-space:nowrap}}

/* GANSELL 0.34 brand splash */
.gs-boot-splash{background:radial-gradient(circle at 75% 20%,#0d3a6b 0,#061b38 42%,#031126 100%)!important;overflow:hidden}
.gs-boot-splash:before,.gs-boot-splash:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(60,126,213,.22);pointer-events:none}
.gs-boot-splash:before{width:75vw;height:75vw;left:-25vw;top:-38vw;background:rgba(21,63,117,.12)}
.gs-boot-splash:after{width:90vw;height:90vw;right:-35vw;bottom:-58vw;background:rgba(11,89,68,.08)}
.gs-boot-splash-inner{position:relative;z-index:2;display:grid!important;justify-items:center;gap:15px!important;width:min(720px,84vw)}
.gs-boot-splash-inner .gs-boot-wordmark{width:min(640px,80vw)!important;height:auto!important;max-width:none!important}
.gs-boot-tagline{font-size:clamp(14px,2.2vw,22px)!important;letter-spacing:.12em;color:rgba(255,255,255,.82)!important;font-weight:500!important}
.gs-boot-tagline b{color:#ffb51b;font-weight:750}
.gs-splash-market{display:none!important}
