.shop-page{max-width:1110px}
.shop-page .intro{margin-bottom:25px}
.shop-page .intro h1{font-size:clamp(37px,5.5vw,64px)}
.shop-card{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.shop-card h2{margin:0 0 10px;font-size:23px;letter-spacing:-.035em}
.shop-card h3{margin:0;font-size:16px}
.shop-card p,.shop-meta{color:var(--muted)}
.shop-meta{font-size:13px;margin:3px 0}
.shop-rows{margin:12px 0}
.shop-row{padding:12px 0;border-top:1px solid var(--line)}
.shop-row:first-child{border-top:0}
.shop-row-head,.shop-actions{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}
.shop-actions{margin-top:10px;justify-content:flex-start}
.shop-row label{display:flex;align-items:center;gap:6px;font-size:13px}
.shop-price{white-space:nowrap}
.shop-link{color:var(--green);text-decoration:none}
.shop-link:hover{text-decoration:underline}
.shop-prices{margin:15px 0 0}
.shop-prices div{display:flex;justify-content:space-between;gap:12px;padding:7px 0}
.shop-prices dd{margin:0}
.shop-prices div:last-child{border-top:1px solid var(--line);margin-top:3px;font-weight:750}
.shop-form{display:grid;gap:12px}
.shop-form label,.admin-filter{display:grid;gap:5px;font-size:13px;font-weight:650}
.shop-form input:not([type="checkbox"],[type="radio"]),.shop-form select,.admin-filter select,.admin-filter input{width:100%}
.shop-form .two-fields{display:grid;grid-template-columns:1.5fr 1fr;gap:9px}
.shop-note{margin:0;padding:9px 12px;border-radius:8px;background:#f2f4ee;font-size:13px}
.shop-message{font-size:13px;color:#8d3325;margin:0}
.shop-message:empty{display:none}
.admin-page{background:#f6f7f4}
.admin-page > header{background:#fff}
.admin-page .intro h1{font-size:clamp(33px,4vw,48px)}
.admin-page .shop-message:not(:empty){margin-bottom:12px}
.admin-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:12px}
.admin-nav{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#fff}
.admin-nav button{border:0;border-radius:8px;padding:8px 13px;background:transparent;font-weight:700}
.admin-nav button[aria-pressed="true"]{background:var(--green);color:#fff}
.admin-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-bottom:12px}
.admin-section-heading h2{margin:0;font-size:24px;letter-spacing:-.035em}
.admin-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,235px);gap:12px;margin-bottom:14px}
.admin-filter{min-width:0}
#order-update{margin:0 0 10px;color:var(--green);font-weight:650}
#order-update:empty{display:none}
.admin-orders{display:grid;gap:12px}
.admin-empty{margin:0}
.admin-order{padding:15px 19px;border:1px solid var(--line);border-radius:13px;background:#fff}
.admin-order-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px 18px}
.admin-order h3{margin:0;font-size:17px;overflow-wrap:anywhere}
.admin-order h4{margin:12px 0 4px;font-size:14px}
.admin-order p{margin:3px 0}
.admin-customer{font-size:14px;overflow-wrap:anywhere}
.admin-order-price{display:grid;justify-items:end;gap:5px}
.admin-state{border-radius:999px;background:#edf1ec;color:var(--green);padding:4px 10px;font-size:12px;font-weight:700}
.admin-state[data-state="awaiting_payment"]{background:#fff0c9;color:#624500}
.admin-state[data-state="production"]{background:#e6effb;color:#203e67}
.admin-state[data-state="packed"]{background:#eee7f6;color:#54356d}
.admin-state:is([data-state="dispatched"],[data-state="trash"]){background:#f0f1ef;color:#484e48}
.admin-order-detail{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.admin-order-detail summary{cursor:pointer;color:var(--green);font-weight:650}
.admin-detail-content{margin-top:10px;padding:1px 12px 12px;border-radius:8px;background:#f6f7f4}
.admin-order .shop-actions label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;font-weight:650}
.admin-order .shop-actions input{max-width:100%}
.admin-order dl{margin:10px 0;display:grid;grid-template-columns:88px 1fr;gap:4px 8px;font-size:13px}
.admin-order dd{margin:0;overflow-wrap:anywhere}
.admin-email{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;padding:12px;background:#fafaf9;border:1px solid var(--line);border-radius:8px}
.admin-print{display:grid;gap:7px;padding:0;list-style:none}
.admin-print li{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:7px}
.admin-login{max-width:430px}
.admin-settings-layout{display:grid;grid-template-columns:205px minmax(0,1fr);align-items:start;gap:20px}
.admin-settings-nav{display:grid;gap:4px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff}
.admin-settings-nav button{border:0;border-radius:7px;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:650;min-height:44px;padding:8px 12px}
.admin-settings-nav button:hover{background:#f5f6f2}
.admin-settings-nav button[aria-pressed="true"]{background:#e9f1eb;color:var(--green);box-shadow:inset 3px 0 var(--green)}
.admin-settings-group{min-width:0;padding:17px 20px;border:1px solid var(--line);border-radius:14px;background:#fff}
.admin-settings-group h3{margin:0;font-size:20px;letter-spacing:-.025em}
.admin-settings-intro{margin:3px 0 12px;color:var(--muted);font-size:14px}
.admin-settings{border-top:1px solid var(--line)}
.admin-settings summary{display:flex;align-items:center;gap:8px 12px;min-height:50px;padding:9px 2px;cursor:pointer;font-weight:700;list-style:none}
.admin-settings > .admin-settings-note{max-width:470px;margin:0 0 12px}
.admin-settings summary::-webkit-details-marker{display:none}
.admin-settings summary::after{content:"";width:8px;height:8px;margin-left:auto;margin-right:3px;border:solid var(--green);border-width:0 2px 2px 0;transform:rotate(45deg);flex-shrink:0}
.admin-settings[open] summary::after{transform:rotate(225deg)}
.admin-settings summary:hover,.admin-settings[open] summary{color:var(--green)}
.admin-setting-value{margin-left:auto;padding:3px 8px;border-radius:8px;background:#eef2ec;color:#334c42;font-size:12px;font-weight:650;text-align:right}
.admin-setting-value:empty{display:none}
.admin-settings summary:has(.admin-setting-value:not(:empty))::after{margin-left:0}
.admin-settings p{color:var(--muted)}
.admin-settings p:empty{display:none}
.admin-settings[open]{padding-bottom:14px}
.admin-settings form{max-width:470px;margin:0 0 10px}
.admin-settings form > p{margin:0}
.admin-settings img{max-width:100%;height:auto}
.admin-settings-nav button:focus-visible,.admin-settings summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:650px){
  .admin-settings-layout{grid-template-columns:minmax(0,1fr);gap:10px}
  .admin-settings-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-settings-group{padding:14px}
}
@media(max-width:730px){.shop-card{padding:17px}.admin-print li{flex-wrap:wrap}}
@media(max-width:430px){.cart-link{margin-left:auto}.cart-link + .primary{margin-left:0}.product-link:not(.cart-link){display:none}}
@media(max-width:375px){header .cart-link + .primary{display:none}}

@media(max-width:560px){.admin-toolbar{grid-template-columns:1fr}.admin-order{padding:13px}.admin-order-price{justify-items:start}.admin-page > header{gap:10px;flex-wrap:wrap}}

.promo-form{margin-top:16px;padding-top:13px;border-top:1px solid var(--line);gap:7px}
.promo-form .shop-actions{margin-top:0}
.promo-form .shop-meta:empty{display:none}
#promo-codes{max-width:620px;overflow-wrap:anywhere}


.cart-link{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.cart-link [data-cart-count]:not([hidden]){display:grid;place-items:center;box-sizing:border-box;min-width:16px;height:16px;padding:0 3px;border:1px solid #b8c9be;border-radius:4px;color:inherit;font-size:10px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.checkout-page{min-height:100vh;background:#f5f6f2}
.checkout-page > header{background:#fff;justify-content:space-between}
.checkout-page .intro h1{font-size:clamp(37px,4.5vw,54px)}
.checkout-page .intro{margin-bottom:16px}
.checkout-progress{margin-bottom:21px}
.checkout-progress ol{display:flex;gap:6px 20px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.checkout-progress button{display:inline-flex;align-items:center;gap:7px;padding:4px 2px;border:0;background:transparent;color:var(--green);font-size:14px;font-weight:700}
.checkout-progress button span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #becdc3;border-radius:50%;font-size:12px}
.checkout-progress button:disabled{color:var(--muted);opacity:1}
.checkout-progress button[aria-current="step"]{color:var(--green)}
.checkout-progress button[aria-current="step"] span{background:var(--green);border-color:var(--green);color:white}
.checkout-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);align-items:start;gap:18px}
.checkout-summary{position:sticky;top:18px}
.checkout-summary h2{font-size:20px}
.checkout-summary .shop-prices div{gap:8px}
.checkout-summary .shop-prices dd{white-space:nowrap}
.checkout-summary .shop-prices div:last-child{font-size:19px}
.checkout-summary-actions{display:grid;gap:8px;margin-top:14px}
.checkout-summary-actions .primary{border-radius:10px;min-height:44px;padding-inline:10px}
.checkout-summary-actions .shop-note{margin-bottom:3px}
.cart-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.cart-section-heading h2{margin:0}
.cart-section-heading p{margin:0}
.cart-product{display:grid;grid-template-columns:clamp(76px,14vw,128px) minmax(0,1fr);gap:14px}
.cart-product:first-child{padding-top:0}
.cart-product h3{overflow-wrap:anywhere}
.cart-thumbnail{width:100%;aspect-ratio:4/3;background:#f3f1eb;border-radius:9px;overflow:hidden}
.cart-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.cart-product .shop-actions{gap:6px 10px;margin-top:7px}
.cart-product .minor{min-height:31px;padding:4px 8px}
.cart-remove{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--field-border,#c9d3cb);border-radius:8px;background:#fff;color:var(--muted)}
.cart-remove:hover:not(:disabled){border-color:#e6c9c2;background:#fbf0ed;color:#a24737}
.cart-product-details{margin-top:7px;overflow-wrap:anywhere}
.cart-product-details summary,.cart-promo summary{cursor:pointer;color:var(--green);font-size:13px;font-weight:700}
.cart-product-details p{margin-top:6px}
.cart-add-link{display:inline-block;font-weight:700}
.cart-promo{margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.cart-promo .promo-form{padding:0;border:0;margin-top:10px;max-width:340px}
/* The code and its button share one row, the button outlined at the field's height. */
.promo-field{display:flex;gap:8px}
.promo-field input{flex:1;min-width:0}
.cart-promo .promo-field .secondary{flex:none;min-height:44px;padding:0 18px;border-radius:8px}
.promo-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.promo-status:not(:has(:not(:empty,[hidden]))){display:none}
.checkout-content .shop-message:not(:empty){margin-top:12px}
.checkout-content .shop-form > h2,.checkout-content .shop-form > p{margin:0}
.checkout-review-block{padding-block:11px;border-top:1px solid var(--line)}
.checkout-review-block p{margin:5px 0 0;overflow-wrap:anywhere}
.review-items{margin:6px 0 0;padding-left:20px}
.text-button{border:0;background:transparent;color:var(--green);font-weight:700;font-size:13px;padding:6px;cursor:pointer}
.text-button:hover{text-decoration:underline}
.cart-empty .primary{display:inline-block;text-decoration:none}
@media(max-width:730px){
  .checkout-grid{grid-template-columns:1fr;gap:12px}
  .checkout-summary{position:static}
  .cart-product{gap:10px}
  .checkout-progress ol{column-gap:12px}
}
@media(max-width:380px){
  .checkout-progress button{font-size:12px;gap:4px}
  .checkout-progress button span{width:20px;height:20px}
}

/* Customer pages share the storefront's palette and heading style. The root
   takes it too, so the page colour reaches the bottom of a tall screen even
   where the content ends higher. */
:root:has(> body:is(.config-page, .checkout-page)),
.config-page,
.checkout-page {
  --paper: #fcfaf5;
  --surface: #e9eee4;
  --ink: #222d26;
  --muted: #4f5b52;
  --line: #dbdfd4;
  --display-font: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
}
.checkout-page .intro h1 {
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.06;
}
:is(.config-page, .checkout-page) :is(.primary, .secondary, .cart-link) {
  min-height: 44px;
  border-radius: 9px;
}
:is(.config-page, .checkout-page) header .cart-link {
  padding-inline: 10px;
  /* White and clearly outlined: the page behind the header turns from white
     to cream, where a faint outline would fade away. */
  border: 1px solid #bacac1;
  background: white;
  color: var(--green);
  font-weight: 650;
}
:is(.config-page, .checkout-page) header .cart-link:hover {
  background: var(--surface);
  text-decoration: none;
}
.checkout-page header .cart-link { margin-inline-start: auto; }
.checkout-page .checkout-summary { background: var(--surface); }
.checkout-page .checkout-summary h2 { font-size: 22px; }
.checkout-page .cart-empty {
  max-width: 650px;
  background: var(--surface);
  padding: clamp(20px, 4vw, 36px);
}
.checkout-page .cart-empty p { max-width: 50ch; }
.checkout-page .cart-empty .primary {
  display: inline-flex;
  gap: 8px;
}
.checkout-page .cart-empty .shop-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-start: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 420px) {
  .checkout-page .cart-empty .primary { display: flex; }
  .checkout-page .cart-empty .shop-link { margin-inline-start: 0; }
}
.shop-form .check-field{display:flex;align-items:center;gap:9px}
.shop-form .check-field input{width:18px;height:18px}
.cart-outdated{margin:6px 0 0;padding:7px 10px;border-radius:8px;background:#fbe9e4;color:#8d3325;font-size:13px}

/* Sending the order: upload progress under the submit button. */
.order-upload { display: grid; gap: 7px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #eef5f0; }
.order-upload[hidden] { display: none; }
.order-upload-text { color: #214f45; font-size: 14px; font-weight: 650; }
.order-upload-bar { position: relative; display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #d6e4da; }
.order-upload-bar i { position: absolute; inset: 0; border-radius: inherit; background: #214f45; transform: scaleX(var(--progress, 0)); transform-origin: left center; transition: transform .25s ease; }
.admin-comgate-urls{display:grid;gap:9px;max-width:620px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.admin-comgate-urls p{margin:0}
.admin-comgate-urls label{display:grid;gap:4px;font-size:13px;font-weight:620}
.admin-comgate-urls input{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.admin-payment-note{color:#8a3b12}
.payment-choice{display:grid;gap:8px;margin-top:8px}
.payment-option{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;background:#fff}
.payment-option:has(input:checked){border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.payment-option input{width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:var(--green)}
.payment-option span{display:grid;gap:2px}
.payment-option .shop-meta{margin:0}
.payment-result{max-width:620px}
.payment-result .shop-actions{margin-top:14px}
.payment-test{display:inline-block;margin:0 0 10px;padding:3px 9px;border-radius:999px;background:#fff0c9;color:#624500;font-size:12px;font-weight:700}
.admin-design{margin-top:8px}
/* Titles and messages from customers may run without spaces. */
.admin-print li > div{min-width:0;overflow-wrap:anywhere}
.admin-design-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;max-width:560px}
.admin-design-gallery figure{margin:0}
.admin-design-gallery figure:first-child{grid-column:1/-1}
.admin-design-gallery img{display:block;max-width:100%;height:auto}
.admin-design-gallery figcaption{font-size:.8rem}
/* Delivery and payment share one step; the summary beside it lists the kits. */
.checkout-payment{display:grid;gap:8px;margin-top:6px;padding-top:14px;border-top:1px solid var(--line)}
.checkout-payment h3{margin:0;font-size:16px}
.checkout-payment .shop-meta{margin:0}
.checkout-summary .review-items{margin:0 0 4px;padding:0;list-style:none;font-size:14px}
.checkout-summary .review-items li{padding:2px 0;overflow-wrap:anywhere}
.assembly-tools{margin:18px 0 14px;padding:14px 16px;border-radius:10px;background:#f3f6f1}
.assembly-tools ul{margin:8px 0;padding-left:20px}
.assembly-tools li{margin:2px 0}
.assembly-tools p{margin:0;color:var(--muted);font-size:14px}
/* Complaints in the administration. */
.admin-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 6px;border-radius:999px;background:#b5482f;color:#fff;font-size:11px;font-weight:750}
.admin-badge[hidden]{display:none}
.admin-complaint-text{white-space:pre-wrap;margin-top:8px !important}
.admin-complaint-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.admin-complaint-photos img{width:120px;height:90px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.admin-warning{color:#a3412b;font-weight:650}
/* The print PDFs right on the order card, with how to print them. */
.admin-print-panel{display:grid;gap:6px;margin-top:12px;padding:14px 16px;border:1px solid #cfdcd3;border-radius:12px;background:#f3f7f2}
.admin-print-panel h4{margin:0;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.admin-print-buttons{display:flex;flex-wrap:wrap;gap:8px}
.admin-print-download{display:inline-flex;align-items:center;gap:8px}
.admin-print-download svg{flex:none}
.admin-print-download:disabled{opacity:.45;cursor:not-allowed}
.admin-print-note{margin:0;color:var(--ink);font-weight:600}
.admin-print-panel .shop-meta{margin:0}
.admin-print-status:empty{display:none}
@media(max-width:730px){.admin-print-download{width:100%;justify-content:center}}

.checkout-delivery{display:grid;gap:10px}
.checkout-delivery .payment-choice{margin-top:0}
.checkout-delivery > .shop-meta{margin:0}
.delivery-option .delivery-price{margin-left:auto;padding-left:8px;color:var(--ink);font-weight:700;white-space:nowrap}
.zbox-pick{display:grid;gap:8px;justify-items:start;padding:12px 14px;border-radius:10px;background:#f3f6f1}
.zbox-pick .zbox-selected{display:grid;gap:2px;margin:0;color:var(--ink);overflow-wrap:anywhere}
.zbox-pick .zbox-selected .shop-meta{margin:0}
.zbox-pick .shop-message:not(:empty){margin-top:0}
.address-fields{display:grid;gap:12px;min-width:0;margin:0;padding:0;border:0}
.shop-form .payment-option{display:flex;font-weight:400}
.payment-option > span:not(.delivery-price){flex:1;min-width:0}
