/* Commerce slice styles: checkout, payment page, order page, order lookup. Every class is prefixed shop-;
   colours come from the :root tokens in style.css. Breakpoints follow style.css (1120 / 900 / 620). */

/* ---- utilities ---------------------------------------------------------------------------------------- */
.shop-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shop-mono{font-family:ui-monospace,'SFMono-Regular',Consolas,'Liberation Mono',monospace;letter-spacing:.3px;overflow-wrap:anywhere}
.shop-prewrap{white-space:pre-wrap}
.shop-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.shop-center{justify-content:center}
.shop-crumbs{flex-wrap:wrap}
.shop-page .notice a{text-decoration:underline;text-underline-offset:3px}
.shop-165{color:var(--orange);font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

/* ---- stepper (an <ol> reusing .stepper / .step) ------------------------------------------------------- */
ol.shop-stepper{list-style:none;margin:0 0 26px}
.shop-stepper .step>span svg{width:18px;height:18px}
.shop-stepper .step.done>span{color:var(--green)}

/* ---- forms -------------------------------------------------------------------------------------------- */
.shop-field{margin-bottom:18px}
.shop-field input[aria-invalid="true"],.shop-field textarea[aria-invalid="true"]{border-color:#c2573a;background:#fffaf7}
.shop-field-error{margin:0;font-size:13px;line-height:1.6;color:#a23b1d}
.shop-field-error:empty{display:none}
.shop-req{color:var(--orange)}
.shop-optional{font-size:12px;font-weight:400;color:var(--muted);margin-left:2px}
.shop-count{align-self:flex-end}
.shop-form-status{margin:10px 0 0;font-size:13px;line-height:1.6;color:#a23b1d}
.shop-form-status:empty{display:none}
.shop-fieldset{border:0;padding:0;margin:0;min-width:0}
.shop-legend{padding:0;margin-bottom:12px;font-size:14px;font-weight:600}

/* Selectable cards (radio semantics: the native radio stays in the card and keeps keyboard behaviour). */
.shop-options{display:grid;gap:12px}
.shop-delivery-grid{grid-template-columns:minmax(0,1fr)}
.shop-method-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.shop-option{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;padding:16px 16px 16px 16px;border:1.5px solid var(--line);border-radius:12px;background:var(--white);cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s;min-width:0}
.shop-option input{position:absolute;top:17px;right:16px;width:18px;height:18px;margin:0;accent-color:var(--green);cursor:inherit}
.shop-option-icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--pale);color:var(--leaf);transition:background .2s,color .2s}
.shop-option-icon svg{width:20px;height:20px}
.shop-option-text{display:flex;flex-direction:column;gap:3px;min-width:0;padding-right:26px;font-size:13px;line-height:1.65;color:var(--muted)}
.shop-option-text strong{font-size:15px;font-weight:600;color:var(--ink)}
.shop-option-text small{display:block;margin-top:2px;font-size:12px;color:var(--leaf)}
.shop-option-tag{font-size:12px;font-weight:500;color:var(--leaf)}
.shop-option-block{display:block;margin-top:2px;font-style:normal;font-size:12px;color:#975321}
.shop-option:hover{border-color:#bfc9b5}
.shop-option:has(input:checked){border-color:var(--green);background:#f6f9f2;box-shadow:inset 0 0 0 1px var(--green)}
.shop-option:has(input:checked) .shop-option-icon{background:var(--green);color:#fff}
.shop-option:has(input:focus-visible){outline:3px solid #bc6c36;outline-offset:3px}
.shop-option:has(input:disabled){cursor:not-allowed;background:#f6f6f1;opacity:.75}
.shop-option:has(input:disabled):hover{border-color:var(--line)}
@supports selector(:has(*)){.shop-option input:focus{outline:none}}

/* ---- checkout ----------------------------------------------------------------------------------------- */
.shop-checkout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:28px;align-items:start}
.shop-checkout-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.panel .shop-section-title{display:flex;align-items:center;gap:12px;margin-bottom:20px;font-size:20px;letter-spacing:1px}
.shop-step-no{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#fff;font:600 13px Arial,sans-serif;letter-spacing:0}
.shop-privacy{display:flex;align-items:flex-start;gap:8px}
.shop-privacy svg{width:16px;height:16px;margin-top:3px;flex:none;color:var(--leaf)}
.shop-address-slot{margin-top:18px}
.shop-address-slot .shop-field{margin-bottom:0}
.shop-pickup-note svg{flex:none}

.shop-summary{position:sticky;top:20px;min-width:0}
.panel.shop-summary-panel{padding:24px}
.shop-summary-head{margin-bottom:12px}
.panel .shop-summary-head h2{margin:0;font-size:21px}
.shop-summary-head .text-link{gap:5px;font-size:13px}
.shop-summary-head .text-link svg{width:15px;height:15px}
.shop-summary-body{transition:opacity .2s}
.shop-is-updating{opacity:.55}
.shop-submit{margin-top:18px;padding:15px 21px;font-size:15px}
.shop-summary-note{display:flex;align-items:flex-start;gap:8px;margin-top:12px}
.shop-summary-note svg{width:16px;height:16px;margin-top:3px;flex:none;color:var(--leaf)}
.shop-quote-errors{margin-top:14px}
.shop-quote-errors ul{margin:6px 0 10px;padding-left:18px}
.shop-error-actions{display:flex;flex-wrap:wrap;gap:8px}

/* order lines grouped by farm (checkout summary, pay page, order page) */
.shop-sum-group{padding:14px 0;border-top:1px solid var(--line)}
.shop-sum-group:first-child{padding-top:4px;border-top:0}
.shop-sum-farm{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 10px;margin-bottom:10px;font-size:14px;font-weight:600}
.shop-sum-farm>a,.shop-sum-farm>span:first-child{display:inline-flex;align-items:center;gap:6px;color:var(--green)}
.shop-sum-farm svg{width:16px;height:16px}
.shop-sum-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.shop-sum-items li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center}
.shop-sum-items img{width:44px;height:44px;border-radius:8px;background:var(--pale)}
.shop-sum-name{min-width:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.shop-sum-name small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.shop-sum-items strong{font:600 14px Arial,sans-serif;white-space:nowrap}
.shop-sum-lines{margin:10px 0 0;font-size:13px}
.shop-sum-lines>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:3px 0}
.shop-sum-lines dt{flex:none;color:var(--muted)}
.shop-sum-lines dd{margin:0;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 8px;min-width:0;text-align:right}
.shop-free-hint{display:flex;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;border-radius:6px;background:var(--pale);color:var(--leaf);font-size:12px}
.shop-free-hint svg{width:14px;height:14px}
.shop-totals{margin:6px 0 0;padding-top:12px;border-top:1px dashed #d6dbcd;font-size:14px}
.shop-panel-title+.shop-totals{margin-top:0;padding-top:0;border-top:0}
.shop-totals>div{display:flex;justify-content:space-between;gap:12px;padding:4px 0}
.shop-totals dt{color:var(--muted)}
.shop-totals dd{margin:0;font-family:Arial,sans-serif}
.shop-totals>.shop-grand{align-items:baseline;margin-top:8px;padding-top:12px;border-top:1px solid var(--line)}
.shop-totals>.shop-grand dt{font-weight:600;color:var(--ink)}
.shop-totals>.shop-grand dd{font:700 26px Arial,sans-serif;color:var(--deep)}

/* ---- payment page ------------------------------------------------------------------------------------- */
.shop-official{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;margin-bottom:26px;padding:26px 28px;border:1px solid #cfdac5;border-radius:var(--radius);background:linear-gradient(135deg,#eff4e8,var(--white) 62%)}
.shop-official-head{display:flex;align-items:flex-start;gap:14px}
.shop-official-badge{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:14px;background:var(--green);color:#fff}
.shop-official-badge svg{width:26px;height:26px}
.shop-official h1{font-size:24px;line-height:1.5;letter-spacing:1px}
.shop-official-head p{margin-top:2px;font-size:13px;color:var(--muted)}
.shop-origin{display:flex;align-items:center;gap:8px;min-width:0;margin:14px 0 16px;padding:10px 14px;border:1px solid #cfdac5;border-radius:10px;background:var(--white);color:var(--deep);font-size:15px;font-weight:600}
.shop-origin-lock{display:grid;color:var(--green)}
.shop-origin-lock svg{width:17px;height:17px}
.shop-official-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.shop-official-facts>div{min-width:0;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.shop-official-facts dt{font-size:12px;color:var(--muted)}
.shop-official-facts dd{margin:2px 0 0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.shop-official-facts .shop-official-amount{font:700 20px Arial,sans-serif;color:var(--deep)}
.shop-official-check h2{margin-bottom:12px;font-size:17px;letter-spacing:1px}
.shop-checklist{list-style:none;counter-reset:shop-check;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.shop-checklist li{position:relative;counter-increment:shop-check;padding-left:40px;font-size:13px;line-height:1.75;color:#4f5a4c}
.shop-checklist li:before{content:counter(shop-check);position:absolute;left:0;top:0;width:26px;height:26px;display:grid;place-items:center;border:1.5px solid var(--green);border-radius:50%;background:var(--white);color:var(--green);font:700 13px Arial,sans-serif}
.shop-checklist strong{display:block;font-size:14px;color:var(--ink)}

.shop-pay-layout,.shop-order-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:28px;align-items:start}
.shop-pay-main,.shop-pay-aside,.shop-order-main,.shop-order-aside{display:flex;flex-direction:column;gap:20px;min-width:0}
.shop-attempt{margin:0}
.shop-countdown{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding:14px 18px;border-radius:12px;background:var(--cream);color:#6b4a22}
.shop-pay-main>.shop-countdown,.shop-order>.shop-countdown{margin-bottom:0}
.shop-order>.shop-countdown{margin-bottom:22px}
.shop-countdown>svg{width:26px;height:26px;flex:none}
.shop-countdown p{font-size:14px;line-height:1.6}
.shop-countdown-time{margin:0 2px;font:700 22px Arial,sans-serif;font-variant-numeric:tabular-nums;color:var(--deep)}
.shop-countdown-at{display:block;font-size:12px;color:#8a6a45}
.shop-countdown-urgent{background:#fbe3d6;color:#8a3a1c}
.shop-countdown-urgent .shop-countdown-time{color:var(--orange)}
.shop-pay-btn{margin-top:20px;padding:16px 21px;font-size:16px}
.shop-pay-hint{margin-top:10px;text-align:center}
.shop-provider-note{display:flex;align-items:flex-start;justify-content:center;gap:6px;margin-top:4px;text-align:center}
.shop-provider-note svg{width:15px;height:15px;margin-top:3px;flex:none}
.shop-switch{padding:0}
.shop-switch>summary{display:flex;align-items:center;gap:8px;padding:18px 22px;list-style:none;cursor:pointer;font-size:15px;font-weight:600;color:var(--green)}
.shop-switch>summary::-webkit-details-marker{display:none}
.shop-switch>summary svg{width:16px;height:16px;transition:transform .2s}
.shop-switch[open]>summary svg{transform:rotate(90deg)}
.shop-switch>summary:focus-visible{outline:3px solid #bc6c36;outline-offset:2px;border-radius:12px}
.shop-switch>form{padding:0 22px 22px}
.shop-switch-warn{margin-top:12px;color:#975321}

.panel.shop-instructions{border:2px solid var(--green);box-shadow:0 10px 30px #2349371a}
.panel .shop-instructions h2,.shop-instructions h2{margin:4px 0 16px;font-size:22px}
.shop-instructions h2:focus{outline:none}
.shop-ins-list{margin:0 0 14px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.shop-ins-list>div{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px;padding:13px 16px;border-top:1px solid var(--line)}
.shop-ins-list>div:first-child{border-top:0}
.shop-ins-list dt{font-size:13px;color:var(--muted)}
.shop-ins-list dd{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
.shop-code{font-size:17px;font-weight:700;color:var(--deep)}
.shop-big{font-size:22px;letter-spacing:1.5px}
.shop-amount{font-family:Arial,sans-serif;font-size:19px}
.btn.shop-copy{margin-left:auto;padding:6px 10px;gap:5px;font-size:12px}
.btn.shop-copy svg{width:14px;height:14px}
.shop-sum-lines .btn.shop-copy{margin-left:0}
.shop-how{margin-bottom:14px;color:var(--muted)}
.shop-instructions .shop-sim-warning{margin:0 0 14px}
.shop-ins-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.btn.shop-sim{border-style:dashed;border-color:#d59a6b;background:#fff7ee;color:#8a4a1f}
.btn.shop-sim:hover{background:#fbead6}
.shop-poll{margin-top:10px}
.shop-poll:empty{display:none}
.panel.shop-instructions-compact{padding:22px}

.panel .shop-payee h2,.shop-payee h2{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:19px}
.shop-payee h2 svg{color:var(--leaf)}
.shop-payee>p{font-size:14px;line-height:1.85;color:#4f5a4c}
.shop-payee>p.small-text{font-size:12px;color:var(--muted)}
.shop-payee-list{list-style:none;margin:14px 0;padding:0;border-top:1px solid var(--line)}
.shop-payee-list li{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px 0;border-bottom:1px solid var(--line)}
.shop-payee-farm{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;font-weight:600}
.shop-payee-farm a{color:var(--green)}
.shop-payee-amount{font:600 15px Arial,sans-serif}

.panel .shop-panel-title{display:flex;align-items:center;gap:9px;margin-bottom:14px;font-size:19px;letter-spacing:.5px}
.shop-panel-title svg{color:var(--leaf)}
.panel.shop-mini h2{margin-bottom:12px;font-size:19px}
.shop-review>div{padding:11px 0;font-size:13px}
.btn.shop-cancel-link{align-self:center;padding:8px 4px;color:#8a4a1f;font-size:13px}
.btn.shop-cancel-link svg{width:15px;height:15px}

/* ---- order page --------------------------------------------------------------------------------------- */
.shop-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:22px;margin-bottom:22px;padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}
.shop-hero-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:50%}
.shop-hero-icon svg{width:30px;height:30px}
.shop-tone-ok{border-color:#d3ddc9;background:linear-gradient(135deg,#eef3e8,var(--white) 55%)}
.shop-tone-ok .shop-hero-icon{background:var(--green);color:#fff}
.shop-tone-wait{border-color:#ecdcc5;background:linear-gradient(135deg,#faf1e4,var(--white) 55%)}
.shop-tone-wait .shop-hero-icon{background:var(--cream);color:var(--orange)}
.shop-tone-muted .shop-hero-icon{background:#eceee8;color:#7b8277}
.shop-hero .section-kicker{margin-bottom:4px}
.shop-hero h1{font-size:30px;line-height:1.45;letter-spacing:2px}
.shop-hero-text>p{margin-top:6px;font-size:14px;line-height:1.8;color:#4f5a4c}
.shop-hero-text>.shop-hero-meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:var(--muted)}
.shop-hero-meta span{display:inline-flex;align-items:center;gap:5px}
.shop-hero-meta svg{width:14px;height:14px}
.shop-hero-meta strong{font-family:Arial,sans-serif;color:var(--ink)}
.shop-hero-actions{display:flex;flex-direction:column;gap:10px;min-width:200px}
.shop-hero-actions .btn{width:100%}

.shop-banner{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:16px 20px;border-radius:12px;font-size:14px;line-height:1.7}
.shop-banner>svg{width:26px;height:26px;flex:none}
.shop-banner>div{flex:1;min-width:0}
.shop-banner strong{display:block;font-size:16px}
.shop-banner .btn{flex:none}
.shop-banner-ok{background:var(--green);color:#fff}
.shop-banner-wait{background:var(--cream);color:#6b4a22}
.shop-banner-warn{border:1px solid #ecd4b3;background:#f9efdf;color:#825429}

.shop-timeline{margin:6px 0 0}
.shop-timeline li.shop-upcoming{color:#a4ab9e}
.shop-timeline li.shop-upcoming:before{border-style:dashed}
.shop-timeline li.shop-upcoming span{color:#b0b6aa}

.shop-farm-card{margin-top:14px;padding:16px 18px;border:1px solid var(--line);border-radius:12px}
.shop-farm-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.shop-farm-name{display:inline-flex;align-items:center;gap:6px;margin-right:auto;font-weight:600;color:var(--green)}
.shop-farm-name svg{width:16px;height:16px}
.shop-ship-pill svg{width:13px;height:13px}

.shop-authentic ul{display:flex;flex-direction:column;gap:6px;margin:0;padding-left:18px;font-size:13px;line-height:1.85;color:#4f5a4c}
.shop-authentic a{color:var(--green);text-decoration:underline;text-underline-offset:3px}

/* ---- order lookup ------------------------------------------------------------------------------------- */
.shop-lookup-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;align-items:start}
.shop-device-head{margin-bottom:4px}
.panel .shop-device-head .shop-panel-title{margin:0}
.shop-device-orders{list-style:none;display:flex;flex-direction:column;gap:10px;margin:16px 0 0;padding:0}
.shop-device-order{display:grid;grid-template-columns:minmax(0,1fr) auto auto 18px;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--white);transition:border-color .2s,background .2s}
.shop-device-order:hover{border-color:#bfc9b5;background:#fbfcf8}
.shop-device-main{min-width:0}
.shop-device-main strong{display:block;font-size:14px}
.shop-device-main small{display:block;margin-top:2px;font-size:12px;color:var(--muted)}
.shop-device-total{font:600 14px Arial,sans-serif;white-space:nowrap}
.shop-device-order>svg{width:16px;height:16px;color:var(--muted)}
.shop-device-empty{padding:34px 10px 20px;text-align:center;font-size:13px;line-height:1.8;color:var(--muted)}
.shop-device-empty svg{width:34px;height:34px;margin-bottom:8px;color:var(--leaf)}
.shop-empty .shop-actions{margin-top:4px}
.shop-empty .btn svg{width:17px;height:17px;margin:0}

/* ---- responsive --------------------------------------------------------------------------------------- */
@media(max-width:1120px){
  .shop-checkout,.shop-pay-layout,.shop-order-layout,.shop-lookup-layout{gap:22px}
  .shop-official{gap:20px;padding:22px}
  .shop-hero{grid-template-columns:auto minmax(0,1fr)}
  .shop-hero-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;min-width:0}
  .shop-hero-actions .btn{width:auto}
}
@media(max-width:900px){
  .shop-checkout,.shop-pay-layout,.shop-order-layout,.shop-lookup-layout,.shop-official{grid-template-columns:minmax(0,1fr)}
  .shop-summary{position:static}
}
@media(max-width:620px){
  ol.shop-stepper{margin-bottom:20px}
  .panel .shop-section-title{margin-bottom:16px;font-size:18px}
  .shop-method-grid{grid-template-columns:minmax(0,1fr)}
  .shop-option{padding:14px}
  .shop-option input{top:15px;right:14px}
  .panel.shop-summary-panel{padding:20px}
  .shop-totals>.shop-grand dd{font-size:23px}
  .shop-official{padding:18px;margin-bottom:20px}
  .shop-official h1{font-size:20px}
  .shop-official-badge{width:42px;height:42px;border-radius:12px}
  .shop-origin{font-size:13px}
  .shop-official-facts dd{font-size:14px}
  .shop-official-facts .shop-official-amount{font-size:18px}
  .shop-countdown{padding:12px 14px}
  .shop-countdown-time{font-size:19px}
  .shop-pay-btn{font-size:15px}
  .shop-ins-list>div{grid-template-columns:minmax(0,1fr);gap:4px;padding:12px 14px}
  .shop-big{font-size:19px;letter-spacing:1px}
  .btn.shop-copy{margin-left:0}
  .shop-ins-actions .btn{flex:1 1 100%}
  .shop-switch>summary{padding:16px 18px}
  .shop-switch>form{padding:0 18px 18px}
  .shop-hero{gap:14px;padding:20px}
  .shop-hero-icon{width:48px;height:48px}
  .shop-hero-icon svg{width:24px;height:24px}
  .shop-hero h1{font-size:24px;letter-spacing:1px}
  .shop-hero-actions .btn{flex:1 1 100%}
  .shop-banner{flex-wrap:wrap;padding:14px 16px}
  .shop-banner .btn{width:100%}
  .shop-farm-card{padding:14px}
  .shop-device-order{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
  .shop-device-main{grid-column:1/-1}
  .shop-device-order>svg{display:none}
}
