/* Shared commerce screens. The cart, checkout and receipt do not load theme styles or fonts. */
:root {
  color-scheme: light;
  --ink: #202721;
  --muted: #606961;
  --line: #dce1da;
  --wash: #f4f6f2;
  --accent: #285342;
  --danger: #932e22;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
input, select, textarea, button { max-width: 100%; }
button { background: none; }
:focus-visible { outline: 3px solid #4d765f; outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, h3, legend, strong { font-weight: 650; }
svg { flex-shrink: 0; }
.shop-wrap { max-width: 1256px; margin-inline: auto; padding-inline: clamp(18px, 5vw, 80px); }
.shop-mast { border-bottom: 1px solid var(--line); }
.shop-mast .shop-wrap, .shop-mast-nav, .shop-mast-cart, .shop-wordmark { display: flex; align-items: center; }
.shop-mast .shop-wrap { justify-content: space-between; min-height: 74px; gap: 16px; }
.shop-mast-nav { flex: none; gap: clamp(16px, 3vw, 40px); font-size: .9rem; }
.shop-mast a { text-decoration: none; }
.shop-mast-nav a:hover, .shop-product a:hover { text-decoration: underline; }
.shop-wordmark { font-size: clamp(1.27rem, 2.7vw, 1.72rem); line-height: 1.15; font-weight: 680; letter-spacing: -.045em; min-width: 0; gap: .5em; }
.shop-wordmark span { overflow-wrap: anywhere; }
.shop-wordmark img { max-width: 76px; height: 1.08em; object-fit: contain; }
.shop-mast-cart { gap: .5em; }
.shop-bag-count, .shop-item-count { display: inline-grid; place-items: center; border-radius: 99px; background: #e8ede5; color: #303e32; min-width: 1.75em; padding: 2px 6px; line-height: 1.45; font-size: .75rem; }
.shop-main { padding-top: clamp(32px, 5.4vw, 76px); padding-bottom: clamp(50px, 8vw, 100px); }
.shop-main h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); line-height: 1.04; font-weight: 620; letter-spacing: -.055em; margin-block: 0 clamp(26px, 3.8vw, 48px); overflow-wrap: anywhere; }
.shop-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .9fr); gap: clamp(24px, 5.7vw, 86px); align-items: start; }
h2, .shop-methods legend { font-size: clamp(1.18rem, 2vw, 1.45rem); letter-spacing: -.035em; line-height: 1.25; }
.shop-items > h2 { display: flex; gap: 10px; align-items: center; padding-block: 3px 19px; }
.shop-line { display: grid; grid-template-columns: clamp(62px, 8vw, 98px) minmax(0, 1fr) max-content; gap: clamp(12px, 2vw, 22px); border-top: 1px solid var(--line); padding-block: 21px; }
.shop-thumb { display: block; width: 100%; aspect-ratio: 1; max-width: 120px; object-fit: cover; border-radius: 7px; background: #ededeb; }
.shop-no-photo, .shop-empty-icon, .shop-order-icon { display: grid; place-items: center; background: #ebeee8; color: #536451; }
.shop-product { min-width: 0; }
.shop-product h3 { font-size: clamp(1rem, 1.4vw, 1.12rem); letter-spacing: -.015em; line-height: 1.4; }
.shop-product h3 a { text-decoration: none; }
.shop-product > small, .shop-price > small, .shop-review-lines small, .shop-fields small, .shop-methods small, .shop-muted, .shop-coupons > small { color: var(--muted); font-size: .81rem; }
.shop-product > small, .shop-price > small, .shop-review-lines small { display: block; margin-block-start: 3px; }
.shop-price, .shop-review-lines > li > b, .shop-totals dd, .shop-total > b { font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.shop-price > b, .shop-review-lines li > b { font-weight: 600; }
.shop-line-options { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1px 7px; font-size: .8rem; line-height: 1.5; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.shop-line-options dt { font-weight: 500; }
.shop-line-options dd { color: var(--ink); }
.shop-line-controls { display: flex; gap: 5px 13px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.shop-qty-group { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid #b5beb3; border-radius: 5px; overflow: hidden; }
.shop-quantity { color: var(--ink); font-size: .94rem; background: #fff; width: 49px; min-width: 0; height: 34px; padding: 4px; text-align: center; border: 0; border-radius: 0; }
.shop-qty-enhanced input { appearance: textfield; -moz-appearance: textfield; width: 30px; }
.shop-qty-enhanced input::-webkit-inner-spin-button { appearance: none; }
.shop-qty-group button { border: 0; padding: 0; width: 30px; min-height: 34px; font-size: 1.08rem; }
.shop-qty-group button:disabled { color: #abb0aa; cursor: default; }
.shop-qty-group button:not(:disabled):hover, .shop-secondary:hover { background: #e3e9df; }
.shop-text { padding: 3px 0; line-height: 1.4; min-height: 36px; font-size: .83rem; background: transparent; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.shop-back { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 530; min-height: 42px; text-decoration: none; }
.shop-back:hover { text-decoration: underline; }
.shop-items > .shop-back { border-top: 1px solid var(--line); width: 100%; padding-block-start: 16px; }
.shop-summary { align-self: start; position: sticky; top: 20px; min-width: 0; border-radius: 13px; padding: clamp(20px, 2.7vw, 32px); background: var(--wash); border: 1px solid #e6eae3; }
.shop-summary h2 { margin-bottom: 22px; }
.shop-summary ul { list-style: none; padding: 0; }
.shop-review-lines { display: grid; gap: 16px; padding-bottom: 20px !important; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.shop-review-lines li { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; }
.shop-review-lines li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shop-review-thumb { position: relative; width: 49px; flex: 0 0 49px; }
.shop-review-thumb > b { display: grid; place-items: center; position: absolute; inset-inline-end: -5px; top: -5px; background: #566650; border-radius: 100px; min-width: 17px; padding: 1px 4px; color: #fff; font-size: .65rem; font-weight: 600; }
.shop-coupons { padding-bottom: 18px; }
.shop-coupons > label { display: flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.shop-coupons > label svg { width: 16px; height: 16px; }
.shop-coupons > small { display: block; margin-top: 8px; }
.shop-promo-row { display: flex; gap: 8px; }
.shop-promo-row input { flex: 1; min-width: 0; height: 44px; padding: 8px 11px; border: 1px solid #9aa698; border-radius: 5px; background: white; }
.shop-secondary { padding: 7px 15px; min-height: 42px; border: 1px solid #9ba799; border-radius: 5px; font-size: .91rem; font-weight: 620; }
.shop-secondary:disabled, .shop-btn:disabled { opacity: .65; }
.shop-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-applied > span { display: inline-flex; align-items: center; gap: 6px; background: #e5ede2; color: #314f36; padding: 5px 10px; border-radius: 5px; min-width: 0; }
.shop-applied b { overflow-wrap: anywhere; }
.shop-applied svg { width: 15px; height: 15px; }
.shop-totals { display: grid; gap: 8px; font-size: .94rem; }
.shop-totals > div, .shop-total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.shop-totals dt { color: var(--muted); }
.shop-totals dt small { color: inherit; font-size: .69rem; overflow-wrap: anywhere; }
.shop-totals .shop-credit dt, .shop-credit dd { color: #28593b; }
.shop-total { margin: 19px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 620; letter-spacing: -.02em; }
.shop-total > b { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.shop-total > b > small { font-size: .68rem; color: var(--muted); letter-spacing: .035em; }
.shop-converted { text-align: end; color: var(--muted); font-size: .8rem; }
.shop-summary .shop-muted { margin-top: 13px; text-align: end; }
.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 23px; min-height: 47px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 610; font-size: .98rem; }
.shop-btn:hover { background: #1a3d2f; }
.shop-wide { width: 100%; margin-top: 20px; }
.shop-currency { margin-top: 15px; display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.shop-currency label { flex: 1; font-size: .8rem; color: var(--muted); }
.shop-currency label span { display: block; margin-bottom: 4px; }
.shop-currency select { padding: 6px 10px; min-height: 36px; background: #fff; border: 1px solid #c8d0c4; border-radius: 4px; width: 100%; }
.shop-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.shop-fields label, .shop-methods label:not(.shop-choice):not(:has(input[type=radio])), .member-checkout label:has(input[type=password]) { display: grid; min-width: 0; gap: 5px; font-size: .88rem; font-weight: 550; }
.shop-fields input, .shop-fields textarea, .shop-methods select, .shop-methods input:not([type=radio]):not([type=checkbox]), .member-checkout input[type=password] { min-width: 0; width: 100%; min-height: 46px; background: white; padding: 10px 12px; border: 1px solid #b9c1b6; border-radius: 5px; font-size: 1rem; font-weight: 400; }
.shop-fields textarea { resize: vertical; }
.shop-fields small { font-weight: 400; }
.shop-span { grid-column: 1 / -1; }
.shop-section h2 { margin-bottom: 16px; }
.shop-methods { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.shop-methods legend { margin-bottom: 12px; padding: 0; }
.shop-methods p { font-size: .88rem; margin-bottom: 10px; }
.shop-methods > label:not(.shop-choice) { margin-bottom: 10px; }
.shop-choice { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid #c2cbc0; font-size: .93rem; border-radius: 6px; cursor: pointer; }
.shop-choice + .shop-choice { margin-top: 7px; }
.shop-choice:has(input:checked) { border-color: #4b6b55; background: #f4f7f2; }
.shop-choice input { margin: .21em 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.shop-choice > span { flex: 1; }
.shop-choice b, .shop-choice strong { font-weight: 600; }
.shop-choice small { display: block; margin-top: 3px; }
.member-checkout { margin: 18px 0 0; font-size: .9rem; }
.member-checkout summary { cursor: pointer; }
.member-checkout[open] > *:not(summary) { margin-top: 10px; }
.member-checkout[open] label { display: block; }
.member-checkout input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.shop-review { margin-top: 9px; }
.shop-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 22px; }
.shop-notice, .shop-checkout-status:not(:empty) { margin-bottom: 20px; padding: 10px 14px; background: #fdf5e8; border-radius: 5px; }
.shop-ok, .shop-checkout-status:not(:empty) { background: #edf3e9; }
.shop-alert-inline { display: block; font-size: .86rem; line-height: 1.45; color: var(--danger); margin-top: 6px; }
.shop-preview { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; padding: 18px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 8px; }
.shop-preview > form { grid-column: 1/-1; }
.shop-preview > form > .shop-btn { margin-inline-start: 12px; }
.shop-empty { padding: clamp(45px,7vw,82px) 18px; border: 1px solid var(--line); border-radius: 12px; display: grid; justify-items: center; align-content: center; text-align: center; gap: 16px; }
.shop-empty-icon, .shop-order-icon { width: 51px; height: 51px; border-radius: 50%; }
.shop-empty-icon svg, .shop-order-icon svg { width: 25px; height: 25px; }
.shop-receipt { min-width: 0; overflow-wrap: anywhere; }
.shop-receipt p, .shop-receipt h2, .shop-receipt form, .shop-receipt .shop-back { margin-top: 15px; }
.shop-receipt-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shop-badge { font-size: .85rem; background: var(--wash); border-radius: 99px; padding: 4px 10px; }
.shop-fields input, .shop-fields textarea, .shop-quantity, .shop-choice, .shop-methods { scroll-margin-block: 1rem; }
@media (max-width: 820px) {
  .shop-columns { grid-template-columns: minmax(0,1fr) minmax(265px,.84fr); gap: 22px; }
  .shop-line { grid-template-columns: 60px minmax(0,1fr); }
  .shop-line .shop-price { grid-column: 2; text-align: start; }
  .shop-line-controls { gap: 4px 9px; }
}
@media (max-width: 690px) {
  .shop-columns { display: flex; flex-direction: column; gap: 25px; }
  .shop-columns > * { width: 100%; }
  .shop-summary { position: static; }
  .shop-main { padding-top: 30px; }
  .shop-mast .shop-wrap { min-height: 60px; }
  .shop-mast-cart span, .shop-catalog-link { display: none; }
  .shop-line { grid-template-columns: 64px minmax(0,1fr) max-content; gap: 10px; }
  .shop-line .shop-price { grid-column: auto; text-align: end; }
  .shop-submit { flex-wrap: wrap; }
  .shop-checkout .shop-columns { display: grid; grid-template-columns: minmax(0,1fr); }
  .shop-checkout .shop-details { display: contents; }
  .shop-checkout .shop-methods { margin-top: 0; }
  .shop-checkout .shop-summary { order: 1; }
  .shop-checkout .shop-submit { order: 2; padding-top: 0; margin-top: 0; border-top: 0; }
}
@media (max-width: 480px) {
  .shop-wrap { padding-inline: 16px; }
  .shop-summary { padding: 18px; }
  .shop-line { grid-template-columns: 60px minmax(0,1fr); gap: 6px 12px; }
  .shop-line .shop-price { grid-column: 2; text-align: start; }
  .shop-line .shop-price small { display: inline; margin-inline-start: 8px; }
  .shop-fields { grid-template-columns: minmax(0,1fr); }
  .shop-submit .shop-btn { width: 100%; order: -1; }
  .shop-review-thumb { width: 40px; flex-basis: 40px; }
  .shop-review-lines li { gap: 8px; }
}
