/* Shop storefront defaults: listing, product page and product embeds. Loaded
   before the theme stylesheet, so a theme restyles any .shop-* class or sets
   the --dh-shop-* custom properties. Colours follow the text colour where no
   property is set, so light and dark themes both work. */
.shop {
  --shop-accent: var(--dh-shop-accent, var(--accent, #1d4ed8));
  --shop-accent-text: var(--dh-shop-accent-text, #fff);
  --shop-line: var(--dh-shop-border, color-mix(in srgb, currentColor 18%, transparent));
  --shop-muted: var(--dh-shop-muted, color-mix(in srgb, currentColor 72%, transparent));
  --shop-surface: var(--dh-shop-surface, color-mix(in srgb, currentColor 4%, transparent));
  --shop-radius: var(--dh-shop-radius, 10px);
  --shop-sale: var(--dh-shop-sale, #b42318);
  --shop-ok: var(--dh-shop-ok, #1d7a46);
  --shop-bad: var(--dh-shop-bad, #b42318);
  --shop-focus: var(--dh-shop-focus, var(--shop-accent));
}
.shop, .shop-grid { box-sizing: border-box; }
.shop *, .shop-grid * { box-sizing: inherit; }
.shop-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shop a:focus-visible, .shop button:focus-visible, .shop input:focus-visible, .shop select:focus-visible,
.shop-grid a:focus-visible { outline: 2px solid var(--shop-focus, #1d4ed8); outline-offset: 2px; }

/* Breadcrumbs, heading */
.shop-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .9rem; color: var(--shop-muted); }
.shop-breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.shop-breadcrumbs a { color: inherit; }
.shop-title { margin: 0 0 .5rem; line-height: 1.15; }
.shop-intro { max-width: 70ch; margin: 0 0 1.5rem; color: var(--shop-muted); }
.shop-header { margin-bottom: 1.5rem; }

/* Controls */
.shop-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.1rem; border-radius: var(--shop-radius); border: 1px solid var(--shop-accent); background: var(--shop-accent); color: var(--shop-accent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.shop-button-secondary { background: transparent; color: inherit; border-color: var(--shop-line); }
.shop input[type=search], .shop input[type=number], .shop select { min-height: 44px; padding: .5rem .75rem; border-radius: var(--shop-radius); border: 1px solid color-mix(in srgb, currentColor 45%, transparent); background: transparent; color: inherit; font: inherit; }
.shop select option { color: #111; background: #fff; }

/* Listing */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; margin: 0 0 1.75rem; }
.shop-search { display: flex; gap: .5rem; flex: 1 1 320px; min-width: 0; }
.shop-search input { flex: 1; min-width: 0; }
.shop-sort { display: flex; gap: .5rem; align-items: center; }
.shop-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.shop-filters { display: flex; flex-direction: column; gap: 1.5rem; }
.shop-filters-title { font-size: 1.1rem; margin: 0; }
.shop-facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop-facet legend, .shop-facet h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .5rem; padding: 0; }
.shop-facet ul { list-style: none; margin: 0; padding: 0; }
.shop-facet ul ul { padding-left: 1rem; }
.shop-categories p { margin: 0; }
.shop-categories a { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: inherit; text-decoration: none; }
.shop-categories a[aria-current] { font-weight: 700; }
.shop-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.shop-check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--shop-accent); flex: none; }
.shop-check-label { flex: 1; }
.shop-count { margin-left: auto; font-size: .85rem; color: var(--shop-muted); font-variant-numeric: tabular-nums; }
.shop-swatch { display: inline-block; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--swatch); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.shop-range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.shop-range-fields input { width: 100%; min-width: 0; }
.shop-filter-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.shop-filter-actions[hidden], .shop-range-slider[hidden] { display: none; }
.shop-clear { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.shop-active { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.shop-chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.shop-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .2rem .6rem .2rem .85rem; border: 1px solid var(--shop-line); border-radius: 999px; color: inherit; text-decoration: none; font-size: .9rem; line-height: 1.2; }
.shop-chip:hover { border-color: var(--shop-accent); }
.shop-chip span { font-size: 1.15em; line-height: 1; opacity: .8; }
/* Price slider: two range inputs over one track; only the thumbs take
   the pointer, so both can be dragged. The script sets --shop-lo/-hi. */
.shop-range-slider { --shop-lo: 0%; --shop-hi: 100%; position: relative; height: 2.75rem; margin: 0 .75rem .25rem; }
.shop-range-slider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: linear-gradient(to right, var(--shop-line) var(--shop-lo), var(--shop-accent) var(--shop-lo), var(--shop-accent) var(--shop-hi), var(--shop-line) var(--shop-hi)); }
.shop .shop-range-slider input { position: absolute; left: -.75rem; top: 50%; width: calc(100% + 1.5rem); height: 1.5rem; margin: -.75rem 0 0; padding: 0; background: none; border: 0; -webkit-appearance: none; appearance: none; pointer-events: none; }
.shop .shop-range-slider input:focus-visible { outline: none; }
.shop-range-slider input::-webkit-slider-runnable-track { height: 1.5rem; background: none; }
.shop-range-slider input::-moz-range-track { background: none; }
.shop-range-slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--shop-accent-text); background: var(--shop-accent); cursor: grab; }
.shop-range-slider input::-moz-range-thumb { pointer-events: auto; width: 1.5rem; height: 1.5rem; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--shop-accent-text); background: var(--shop-accent); cursor: grab; }
.shop-range-slider input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--shop-focus); outline-offset: 2px; }
.shop-range-slider input:focus-visible::-moz-range-thumb { outline: 2px solid var(--shop-focus); outline-offset: 2px; }
.shop-result-count { margin: 0 0 1rem; color: var(--shop-muted); }
.shop-results { scroll-margin-top: 1.5rem; transition: opacity .15s; }
.shop-listing[aria-busy=true] .shop-results { opacity: .55; }
.shop-empty { padding: 2rem 0; color: var(--shop-muted); }

/* Cards (listing and embeds) */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.shop-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border: 1px solid var(--dh-shop-border, color-mix(in srgb, currentColor 18%, transparent)); border-radius: var(--dh-shop-radius, 10px); overflow: hidden; }
.shop-card-link:hover .shop-card-title { text-decoration: underline; }
.shop-card-media { display: block; aspect-ratio: 1; background: var(--dh-shop-surface, color-mix(in srgb, currentColor 4%, transparent)); }
.shop-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-card-noimage { display: block; width: 100%; height: 100%; }
.shop-card-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; }
.shop-card-brand { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--dh-shop-muted, color-mix(in srgb, currentColor 72%, transparent)); }
.shop-card-title { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.shop-card-price { margin-top: auto; font-weight: 600; }

/* Prices */
.shop-from { font-weight: 400; }
.shop-price-sale del { opacity: .75; font-weight: 400; margin-right: .35rem; }
.shop-price-sale ins { text-decoration: none; color: var(--dh-shop-sale, #b42318); }
.shop-price-request { font-weight: 400; font-style: normal; }

/* Pagination */
.shop-pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.shop-pagination a, .shop-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border-radius: var(--shop-radius); border: 1px solid var(--shop-line); color: inherit; text-decoration: none; }
.shop-pagination [aria-current] { background: var(--shop-accent); border-color: var(--shop-accent); color: var(--shop-accent-text); font-weight: 600; }
.shop-pagination .shop-gap { border-color: transparent; }

/* Product page */
.shop-product-top { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 900px) { .shop-product-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.shop-gallery-main { margin: 0; border-radius: var(--shop-radius); overflow: hidden; background: var(--shop-surface); }
.shop-gallery-main img { display: block; width: 100%; height: auto; }
.shop-gallery-empty { aspect-ratio: 4 / 3; }
.shop-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.shop-thumbs a { display: block; border: 2px solid transparent; border-radius: 8px; overflow: hidden; }
.shop-thumbs a[aria-current=true] { border-color: var(--shop-accent); }
.shop-thumbs img { display: block; width: 72px; height: 72px; object-fit: cover; }
.shop-summary { display: flex; flex-direction: column; gap: .75rem; }
.shop-summary > * { margin: 0; }
.shop-brand { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--shop-muted); }
.shop-product-price { font-size: 1.5rem; font-weight: 700; }
.shop-vat, .shop-sku { font-size: .9rem; color: var(--shop-muted); }
.shop-option-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop-option-group legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.shop-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-option { position: relative; }
.shop-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-option-body { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--shop-line); border-radius: 999px; cursor: pointer; }
.shop-option input:checked + .shop-option-body { border-color: var(--shop-accent); box-shadow: inset 0 0 0 1px var(--shop-accent); font-weight: 600; }
.shop-option input:focus-visible + .shop-option-body { outline: 2px solid var(--shop-focus); outline-offset: 2px; }
.shop-option input:disabled + .shop-option-body { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.shop-availability { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.shop-availability::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--shop-ok); }
.shop-availability-outofstock::before { background: var(--shop-bad); }
.shop-availability-backorder::before, .shop-availability-preorder::before { background: var(--shop-muted); }
.shop-cta { padding: 1.25rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface); }
.shop-cta h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.shop-cta p { margin: 0 0 1rem; }
.shop-cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.shop-details { max-width: 75ch; margin-bottom: 2.5rem; }
.shop-details h2 { margin: 0 0 1rem; }
.shop-attributes, .shop-variations { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.shop-attributes th, .shop-attributes td, .shop-variations th, .shop-variations td { padding: .6rem .75rem; border-bottom: 1px solid var(--shop-line); text-align: left; vertical-align: top; }
.shop-attributes th { width: 40%; font-weight: 600; }
.shop-variations caption { text-align: left; font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
.shop-table-wrap { overflow-x: auto; }

/* Add to cart (product page) */
.shop-buy { display: flex; flex-direction: column; gap: .75rem; }
.shop-buy [hidden] { display: none; }
.shop-buy-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-buy .shop-quantity { width: 5.5rem; }
.shop-buy-row .shop-button { flex: 1 1 12rem; }
.shop-buy-message { margin: 0; }
.shop-buy-message a { color: inherit; font-weight: 600; }

/* Forms (cart, checkout) */
.shop input[type=text], .shop input:not([type]), .shop input[type=email], .shop input[type=tel], .shop input[type=password], .shop textarea {
  width: 100%; min-height: 44px; padding: .5rem .75rem; border-radius: var(--shop-radius);
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent); background: transparent; color: inherit; font: inherit;
}
.shop textarea { min-height: 6rem; resize: vertical; }
.shop textarea:focus-visible { outline: 2px solid var(--shop-focus); outline-offset: 2px; }
.shop-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.shop-field > label { font-size: .95rem; font-weight: 600; }
.shop-field select { width: 100%; }
.shop-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.shop-fields + .shop-fields { margin-top: 1rem; }
.shop-field-invalid input, .shop-field-invalid select, .shop-field-invalid textarea { border-color: var(--shop-bad); border-width: 2px; }
.shop-field-error { margin: 0; color: var(--shop-bad); font-size: .9rem; font-weight: 600; }
.shop-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shop-panel { padding: 1.25rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface); }
.shop-panel h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.shop-panel.shop-field-invalid { border-color: var(--shop-bad); }
.shop-note { font-size: .9rem; color: var(--shop-muted); margin: .75rem 0 0; }
.shop-lede { max-width: 65ch; margin: 0 0 1.25rem; }
.shop-eyebrow { margin: 0 0 .35rem; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--shop-muted); }
.shop-button-wide { width: 100%; margin-top: 1rem; }
.shop-button:disabled { opacity: .6; cursor: progress; }
.shop-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.5rem; }
.shop-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Notices, steps, test mode */
.shop-test-banner { margin: 0 0 1.25rem; padding: .7rem 1rem; border-radius: var(--shop-radius); background: var(--dh-shop-test, #f2b33d); color: var(--dh-shop-test-text, #2a1600); font-weight: 600; text-align: center; }
.shop-notice { margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: var(--shop-radius); border: 1px solid var(--shop-line); }
.shop-notice-error { border: 2px solid var(--shop-bad); }
.shop-notice p { margin: 0; font-weight: 600; }
.shop-notice ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.shop-notice a { color: inherit; }
.shop-notice:focus { outline: 2px solid var(--shop-focus); outline-offset: 2px; }
.shop-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .9rem; color: var(--shop-muted); }
.shop-steps [aria-current] { color: inherit; font-weight: 700; }
.shop-line-problem { margin: .25rem 0 0; color: var(--shop-bad); font-size: .9rem; font-weight: 600; }

/* Choices (delivery, payment) */
.shop-choices { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.shop-choice { position: relative; display: block; }
.shop-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-choice-body { display: flex; flex-direction: column; gap: .2rem; height: 100%; min-height: 44px; padding: .85rem 1rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); cursor: pointer; }
.shop-choice-title { font-weight: 600; }
.shop-choice-detail { font-size: .9rem; color: var(--shop-muted); }
.shop-choice input:checked + .shop-choice-body { border-color: var(--shop-accent); box-shadow: inset 0 0 0 1px var(--shop-accent); }
.shop-choice input:focus-visible + .shop-choice-body { outline: 2px solid var(--shop-focus); outline-offset: 2px; }
.shop-ship-elsewhere { margin-top: 1rem; }
.shop-shipping-fields { border: 0; margin: .75rem 0 0; padding: 0; min-width: 0; }
.shop-shipping-fields legend { font-weight: 600; margin-bottom: .75rem; padding: 0; }
.shop-ship-elsewhere:not(:has(input[name=ship_elsewhere]:checked)) .shop-shipping-fields { display: none; }
.shop-update { margin: 1rem 0 0; }
.shop-terms { margin-top: 1rem; }

/* Totals */
.shop-totals { margin: 0; }
.shop-totals-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.shop-totals dt, .shop-totals dd { margin: 0; }
.shop-totals dd { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-totals-tax { font-size: .9rem; color: var(--shop-muted); }
.shop-totals-discount dd { color: var(--shop-ok); }

/* Coupon field on the cart and checkout */
.shop-coupon { margin: 0 0 1rem; }
.shop-coupon > label { display: block; font-weight: 600; margin-bottom: .35rem; }
.shop-coupon-row { display: flex; gap: .5rem; }
.shop-coupon-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.shop-coupons { list-style: none; margin: .5rem 0 0; padding: 0; }
.shop-coupons li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .5rem; }
.shop-coupons .shop-line-problem { flex-basis: 100%; margin: 0; }
.shop-coupon-code { font-weight: 600; letter-spacing: .03em; }
.shop-coupon .shop-notice { margin: .5rem 0 0; }
.shop-totals-total { margin-top: .4rem; padding-top: .6rem; border-top: 1px solid var(--shop-line); font-size: 1.15rem; font-weight: 700; }

/* Cart, checkout and order layouts */
.shop-cart-layout, .shop-checkout-layout, .shop-order-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) {
  .shop-cart-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
  .shop-checkout-layout { grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); }
  .shop-order-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .shop-checkout-summary { position: sticky; top: 1rem; }
}
.shop-checkout-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.shop-cart-table, .shop-order-table { width: 100%; border-collapse: collapse; }
.shop-cart-table th, .shop-cart-table td, .shop-order-table th, .shop-order-table td { padding: .75rem .5rem; border-bottom: 1px solid var(--shop-line); text-align: left; vertical-align: middle; }
.shop-cart-table th, .shop-order-table th { font-size: .9rem; color: var(--shop-muted); font-weight: 600; }
.shop-order-table th.shop-num, .shop-order-table td.shop-num { text-align: right; }
.shop-cart-item { display: flex; gap: .75rem; align-items: center; }
.shop-cart-media img, .shop-cart-noimage { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: var(--shop-surface); }
.shop-cart-name { color: inherit; font-weight: 600; }
.shop-cart-variation { margin: .15rem 0 0; font-size: .9rem; color: var(--shop-muted); }
.shop-cart-qty input { width: 5rem; }
.shop-cart-price, .shop-cart-total { white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-cart-k { display: none; }
.shop-remove { min-width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: var(--shop-radius); background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.shop-remove:hover { border-color: var(--shop-line); }
.shop-cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1rem; }
.shop-cart-continue { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .shop-cart-table thead { display: none; }
  .shop-cart-table, .shop-cart-table tbody, .shop-cart-table td { display: block; }
  .shop-cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--shop-line); }
  .shop-cart-table td { border: 0; padding: 0; }
  .shop-cart-table .shop-cart-product { grid-column: 1; }
  .shop-cart-table .shop-cart-remove { grid-column: 2; grid-row: 1; justify-self: end; }
  .shop-cart-table .shop-cart-price, .shop-cart-table .shop-cart-qty, .shop-cart-table .shop-cart-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .shop-cart-k { display: inline; color: var(--shop-muted); }
}

/* Checkout summary */
.shop-summary-lines { list-style: none; margin: 0 0 .5rem; padding: 0; }
.shop-summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--shop-line); }
.shop-summary-line p { margin: 0; }
.shop-summary-name { font-weight: 600; }
.shop-summary-detail { font-size: .9rem; color: var(--shop-muted); }
.shop-summary-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Test payment page */
.shop-pay-card { max-width: 36rem; margin: 1rem auto 0; padding: 1.75rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface); }
.shop-pay-card .shop-title { font-size: clamp(1.5rem, 6vw, 2rem); }
.shop-pay-card form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.shop-outcomes { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.shop-outcome { width: 100%; }
.shop-outcome-failed, .shop-outcome-cancelled, .shop-outcome-expired { background: transparent; color: inherit; border-color: var(--shop-line); }
.shop-outcome-paid { background: var(--shop-ok); border-color: var(--shop-ok); color: #fff; }
.shop-outcome-failed { border-color: var(--shop-bad); }

/* Order page and facts */
.shop-facts { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.shop-facts > div { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 1rem; }
.shop-facts dt { color: var(--shop-muted); }
.shop-facts dd { margin: 0; }
.shop-order-address h2 { font-size: 1rem; margin: 0 0 .4rem; }
.shop-order-address p { margin: 0 0 .5rem; }
.shop-table-wrap + .shop-totals { margin-top: 1rem; }

/* Customer account */
.shop-account-single { max-width: 32rem; margin: 0 auto; }
.shop-fields-single { grid-template-columns: 1fr; }
.shop-field-hint { margin: 0; font-size: .9rem; color: var(--shop-muted); }
.shop-form-actions { margin: 1.25rem 0 0; }
.shop-form-links { margin: 1rem 0; }
.shop-form-links a, .shop-account-line a { color: inherit; font-weight: 600; }
.shop-notice-ok { border: 2px solid var(--shop-ok); }
.shop-account-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .shop-account-layout { grid-template-columns: 14rem minmax(0, 1fr); } }
.shop-account-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
@media (min-width: 900px) { .shop-account-nav ul { flex-direction: column; } }
.shop-account-nav a, .shop-account-logout { display: flex; align-items: center; min-height: 44px; padding: .4rem .75rem; border-radius: var(--shop-radius); color: inherit; text-decoration: none; }
.shop-account-nav a[aria-current=page] { background: var(--shop-surface); font-weight: 700; box-shadow: inset 3px 0 0 var(--shop-accent); }
.shop-account-nav form { margin: .5rem 0 0; }
.shop-account-logout { width: 100%; border: 1px solid var(--shop-line); background: transparent; font: inherit; cursor: pointer; }
.shop-account-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.shop-account-heading { font-size: 1.25rem; margin: 0; }
.shop-account-section { margin-top: 1.5rem; }
.shop-account-fieldset { margin: 0 0 1.25rem; padding: 1.25rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); min-width: 0; }
.shop-account-fieldset legend { font-weight: 700; padding: 0 .25rem; }
.shop-account-delete { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--shop-line); }
.shop-account-line { margin: 0 0 1rem; }
.shop-create-account { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.shop-link-list { margin: 0; padding-left: 1.25rem; }
.shop-link-list li + li { margin-top: .4rem; }
.shop-button-small { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
@media (max-width: 640px) {
  .shop-downloads-table thead { display: none; }
  .shop-downloads-table, .shop-downloads-table tbody, .shop-downloads-table tr, .shop-downloads-table th, .shop-downloads-table td { display: block; }
  .shop-downloads-table tr { padding: .75rem 0; border-bottom: 1px solid var(--shop-line); }
  .shop-downloads-table th, .shop-downloads-table td, .shop-downloads-table td.shop-num { border: 0; padding: .15rem 0; text-align: left; white-space: normal; }
  .shop-downloads-table td.shop-num { margin-top: .5rem; }
}

/* Booking a service: the days, the times of the chosen day, the form */
.shop-booking { display: flex; flex-direction: column; gap: .9rem; margin: 1rem 0; padding: 1.25rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); background: var(--shop-surface); }
.shop-booking h2 { font-size: 1.25rem; margin: 0; }
.shop-booking-step { font-size: 1rem; margin: 0; }
.shop-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; list-style: none; margin: 0; padding: 0; }
.shop-day { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); color: inherit; text-decoration: none; text-align: center; font-size: .95rem; }
a.shop-day:hover { border-color: var(--shop-accent); }
a.shop-day[aria-current] { border-color: var(--shop-accent); box-shadow: inset 0 0 0 1px var(--shop-accent); font-weight: 700; }
.shop-day-off { opacity: .45; text-decoration: line-through; }
.shop-days-pager { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-days-pager:empty { display: none; }
.shop-booking-form { display: flex; flex-direction: column; gap: .9rem; }
.shop-times { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop-times legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.shop-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .5rem; }
.shop-time { position: relative; }
.shop-time input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-time > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .3rem; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); cursor: pointer; text-align: center; }
.shop-time-left { font-size: .85rem; color: var(--shop-muted); }
.shop-time input:checked + span { border-color: var(--shop-accent); box-shadow: inset 0 0 0 1px var(--shop-accent); font-weight: 700; }
.shop-time input:focus-visible + span { outline: 2px solid var(--shop-focus); outline-offset: 2px; }
.shop-time input:disabled + span { opacity: .45; cursor: not-allowed; }
.shop-booking-hint, .shop-booking-empty, .shop-booking-intro { margin: 0; color: var(--shop-muted); }
.shop-booking-message { margin: 0; padding: .75rem 1rem; border-radius: var(--shop-radius); border: 1px solid var(--shop-ok); font-weight: 600; }
.shop-booking-error { border-color: var(--shop-bad); color: var(--shop-bad); }
.shop-optional { font-weight: 400; color: var(--shop-muted); }
