:root {
  color-scheme: light;
  --paper: #f4f3ec;
  --panel: #fffef9;
  --ink: #2d332b;
  --muted: #6c7166;
  --accent: #3d513e;
  --accent-dark: #293d2b;
  --line: #dfe1d5;
  --warm: #eeefe6;
  --selected: #edf1e7;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 4px; }
button, select, input { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #7a8f60; outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline-offset: 2px; }
h1, h2, h3, p, figure { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px 18px; background: var(--ink); color: white; border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* A quiet masthead lets the product and its controls lead. */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.header-inner { max-width: 1320px; margin: auto; padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 25px; font-weight: 750; letter-spacing: -1.1px; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; fill: none; stroke: var(--accent); stroke-width: 1.3; flex: none; }
.brand-mark path:nth-of-type(2) { opacity: .7; }
.brand-mark path:nth-of-type(3) { opacity: .5; }
.brand-domain { font-weight: 450; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 30px; }
.header-info { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.header-help { font-size: 11px; line-height: 1.4; color: var(--muted); }
.header-help a { text-decoration-color: #aeb5a4; }
.lead-time { font-size: 12px; display: flex; align-items: center; gap: 5px; }
.lead-time strong { font-weight: 650; }
.status-dot { width: 6px; height: 6px; background: #74865e; border-radius: 50%; margin-right: 4px; }
.cart-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; border-left: 1px solid var(--line); padding-left: 14px; }
.cart-link svg { width: 23px; height: 23px; }
.cart-count { position: absolute; right: -8px; top: -3px; background: var(--accent); color: white; border: 2px solid var(--panel); font-size: 10px; font-weight: 650; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; padding: 0 4px; }

/* Keep the existing product / order relationship, with a consistent spacing scale. */
.page-shell { max-width: 1320px; padding: 36px 40px 0; margin: auto; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.builder { padding: 32px 32px 0; box-shadow: 0 4px 20px #28322203; }
.form-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 18px; align-items: start; }
.product-heading { grid-column: 1; grid-row: 1; }
.product-kicker { color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.form-intro h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 3.4vw, 46px); line-height: 1.06; font-weight: 400; letter-spacing: -1.8px; max-width: none; text-wrap: balance; }
.intro-copy { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.7; text-wrap: pretty; }
.configuration { min-width: 0; }
.configurator-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.configuration-step { min-width: 0; }
.step-heading, .shape-field > label { font-size: 13px; line-height: 1.4; font-weight: 650; margin-bottom: 12px; letter-spacing: .05px; }

/* The material choices read as samples, with a real radio selection and clear prices. */
.rate-cards { display: grid; gap: 8px; }
.thickness-option { display: grid; grid-template-columns: 16px minmax(0, 1fr) 54px; gap: 11px; align-items: center; min-width: 0; min-height: 80px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.thickness-option:hover { background: #f6f7ef; border-color: #a1ad93; }
.thickness-option:has(input:checked) { border-color: #6e8160; background: var(--selected); }
.thickness-option:has(input:focus-visible) { outline: 3px solid #7a8f60; outline-offset: 3px; }
.thickness-option input { appearance: none; width: 16px; height: 16px; min-height: 0; margin: 0; border: 1px solid #a7ae9c; border-radius: 50%; display: grid; place-items: center; background: var(--panel); }
.thickness-option input:checked { border-color: var(--accent); background: var(--accent); }
.thickness-option input:checked::before { content: ""; width: 6px; height: 6px; background: var(--panel); border-radius: 50%; }
.thickness-option input:focus-visible { outline: none; }
.rate-copy { min-width: 0; }
.rate-label { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.3px; line-height: 1.25; }
.thickness-suffix { display: inline-block; margin-left: 5px; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.rate-value { display: block; margin-top: 4px; font-size: 12px; font-weight: 450; font-variant-numeric: tabular-nums; line-height: 1.3; white-space: nowrap; color: var(--muted); }
.rate-unit { font-size: 10px; margin-left: 2px; }
.ply-profile { display: block; width: 100%; height: 36px; min-width: 0; overflow: visible; }

.measurement-note { margin: 8px auto 0; max-width: 480px; font-size: 10px; line-height: 1.6; color: var(--muted); text-align: center; }
.nominal-reference { display: block; margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.cart-quantity { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0; }
.cart-quantity button { flex: none; width: 32px; min-height: 44px; padding: 0; border: 1px solid #cbd2bf; background: #f9faf3; font-size: 18px; border-radius: 4px; }
.cart-quantity button:focus-visible { outline: 2px solid #62764f; outline-offset: 2px; }
.cart-quantity button:hover:not(:disabled) { background: #e1e6d7; }
.cart-quantity button:disabled { color: #b8beae; }
.cart-quantity-value { min-width: 40px; text-align: center; font-size: 12px; font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }

/* Native select controls stay familiar; labels and secondary information stay readable. */
.form-field { min-width: 0; }
.form-field > label, .quantity-row > label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 8px; }
.form-field select { width: 100%; min-width: 0; border: 1px solid #d5d9cd; border-radius: 6px; font-size: 16px; background-color: var(--panel); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236c7166' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 9px; background-position: right 12px center; padding: 12px 30px 12px 12px; min-height: 52px; transition: border-color .15s; }
.form-field select:hover { border-color: #9da88f; }
.form-field select:disabled { opacity: 1; color: var(--muted); background-color: var(--warm); cursor: not-allowed; }
#width-help, #height-help { white-space: pre-line; }
.field-help { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.dimension-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.shape-field { margin-bottom: 16px; }
.shape-field > label { font-size: 13px; margin-bottom: 12px; }
.shape-field select { padding: 12px 30px 12px 12px; min-height: 50px; background-position: right 12px center; }
#size-error { margin-top: 12px; margin-bottom: 0; }
.purchase-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.quantity-control { display: flex; align-items: stretch; border: 1px solid #d5d9cd; border-radius: 6px; overflow: hidden; background: var(--panel); }
.quantity-control button { font-size: 20px; font-weight: 400; background: transparent; width: 44px; min-height: 44px; }
.quantity-control button:hover { background: var(--warm); }
.quantity-control button:disabled { color: #b8beae; }
.quantity-control input { width: 40px; min-height: 44px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; border: 0; background: transparent; padding: 0; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; }
.piece-price-block { text-align: right; min-width: 0; }
.price-line { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; }
.price-line strong { font-size: 38px; font-weight: 500; letter-spacing: .015em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-line > span { letter-spacing: .08em; font-size: 10px; font-weight: 500; color: var(--muted); }
.piece-price-block > p { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.piece-price-block .line-price { color: var(--accent); }
.button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; min-height: 52px; border-radius: 6px; font-size: 14px; font-weight: 550; text-decoration: none; transition: background .15s, transform .15s; }
.button-primary { background: var(--accent); color: #fffef9; }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-primary:active:not(:disabled) { transform: translateY(1px); }
.button-primary:disabled { background: #e6e8dd; color: #727969; }
.button > span { font-size: 20px; font-weight: 400; line-height: 1; }
.button-secondary { background: var(--warm); color: var(--ink); border: 1px solid var(--line); }
.button-secondary:hover { background: #e1e6d7; }
#add-to-cart { width: 100%; }
.add-note { font-size: 11px; color: var(--muted); text-align: center; padding: 17px 0 21px; line-height: 1.6; text-wrap: pretty; }

/* The drawing remains proportional and directly above its controls. */
.preview-step { margin: 12px 0 20px; }
.piece-visual { width: min(100%, 370px); margin: 0 auto; }
#piece-diagram { width: 100%; height: auto; display: block; }

/* Order summary: a slightly darker paper surface separates it from the builder. */
.cart { padding: 26px 24px 24px; background: #eeefe6; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #d6dbcb; }
.section-heading h2 { font: 400 30px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.8px; }
.cart-heading-icon { width: 22px; height: 22px; color: #7e8b72; }
.empty-cart { padding: 25px 0 35px; text-align: center; }
.empty-cart svg { width: 76px; height: 61px; margin: 0 auto 20px; fill: #e7d6b7; stroke: #a98e62; stroke-width: 1; }
.empty-cart svg circle { fill: #efdfc2; }
.empty-cart > p { font: 400 20px/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.3px; }
.empty-cart > span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.cart-items { display: flex; flex-direction: column; }
.cart-item { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid #d6dbcb; min-width: 0; }
.cart-item:first-child { padding-top: 0; }
.cart-item-icon { flex: none; width: 46px; height: 50px; border-radius: 5px; background: #e5e5d7; display: grid; place-items: center; align-self: flex-start; overflow: hidden; }
.cart-item-swatch { display: block; width: 28px; height: 22px; background: repeating-linear-gradient(8deg,#e8cfa6 0 5px,#dfbe9270 6px 7px); border: 1px solid #cead7e; transform: rotate(-12deg); box-shadow: 0 2px 0 #a88355, 0 5px 4px #6b563a15; }
.cart-item-swatch.is-circle { width: 30px; height: 30px; border-radius: 50%; transform: none; }
.cart-item-details { min-width: 0; flex: 1; }
.cart-item-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cart-item-title { min-width: 0; flex: 1; font-size: 12px; font-weight: 600; line-height: 1.6; }
.cart-item-meta { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.cart-item-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.cart-item-price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-item-price small { font-size: 10px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.cart-item-remove { flex: none; display: flex; align-items: flex-start; line-height: 1.6; font-size: 11px; color: var(--muted); background: transparent; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; min-width: 44px; padding: 2px 0; }
.cart-item-remove:hover { color: var(--accent-dark); }
.cart-summary { padding: 22px 0 0; }
.cart-summary dl { margin: 0; }
.cart-summary dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 12px; }
.cart-summary dt { color: var(--muted); }
.cart-summary dt > span { font-size: 11px; }
.cart-summary dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.cart-summary dl > .cart-total-row { margin-top: 20px; padding-top: 18px; border-top: 1px solid #d6dbcb; margin-bottom: 0; font-size: 15px; }
.cart-total-row dt { font-weight: 600; color: var(--ink); }
.cart-total-row dd { font-size: 28px; font-weight: 500; letter-spacing: .015em; }
.cart-total-row dd small { margin-left: 6px; font-size: 10px; letter-spacing: .08em; font-weight: 400; }
.cart-area { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.fulfillment { border: 0; padding: 0; margin: 28px 0 22px; min-width: 0; }
.fulfillment legend { width: 100%; font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 14px; }
.fulfillment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-option { display: flex; gap: 7px; align-items: flex-start; cursor: pointer; min-height: 44px; min-width: 0; padding: 11px 9px; border: 1px solid #cfd5c3; border-radius: 6px; }
.radio-option:has(input:checked) { background: #f9faf3; border-color: #8d9b7d; }
.radio-option > span { min-width: 0; }
.radio-option input { appearance: none; flex: none; margin: 2px 0 0; width: 15px; height: 15px; min-height: 15px; border: 1px solid #99a38d; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.radio-option input:checked { border-color: var(--accent); }
.radio-option input:checked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.radio-option strong { display: block; font-size: 11px; line-height: 1.6; font-weight: 600; }
.radio-option small { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.fulfillment > .field-help { margin-top: 14px; font-size: 10px; text-align: center; line-height: 1.7; text-wrap: pretty; }
.cart > .button { width: 100%; font-size: 13px; }

/* Supporting states share the same type, colour, and spacing rules. */
.site-footer { max-width: 1240px; margin: 32px auto 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .footer-brand { font: 900 32px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -1.2px; color: var(--accent); }
.site-footer p:last-child { font-size: 11px; line-height: 1.8; text-align: right; color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration-color: #acb4a1; }
.loading-status { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.error-message { font-size: 12px; line-height: 1.6; color: #893e2d; background: #fff0e9; padding: 12px 14px; border: 1px solid #e5c6b8; border-radius: 6px; margin-bottom: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 650; color: var(--accent); margin-bottom: 9px; }
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); padding: 30px; max-width: 590px; width: calc(100% - 32px); max-height: calc(100dvh - 40px); box-shadow: 0 25px 100px #2b332b30; }
dialog::backdrop { background: #27302570; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { font: 400 29px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.7px; }
.icon-button { display: grid; place-items: center; background: var(--warm); border-radius: 50%; font-size: 24px; min-width: 44px; min-height: 44px; }
.dialog-intro { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 20px; }
#order-summary { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 18px; background: var(--warm); border-radius: 6px; margin: 20px 0; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions .button { justify-content: center; }
#copy-status { min-height: 17px; margin-top: 12px; }
.checkout-mode-notice { padding: 14px 18px; margin: 0 0 20px; border: 1px solid #c7a961; border-radius: 6px; background: #fff3ce; color: #654c19; font-size: 13px; font-weight: 600; line-height: 1.6; }
#dialog-test-notice { margin-top: 16px; }
.delivery-address-fields { border: 0; padding: 0; margin: 24px 0; }
.delivery-address-fields legend { font: 400 22px/1.3 Georgia, "Times New Roman", serif; margin-bottom: 18px; padding: 0; }
.delivery-address-fields .form-field { margin-bottom: 16px; }
.delivery-address-fields input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #d5d9cd; border-radius: 6px; background: var(--panel); font-size: 16px; }
.delivery-address-fields input:disabled { opacity: .65; }
.delivery-address-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.optional-label { color: var(--muted); font-weight: 400; }
.checkout-terms { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.65; padding-top: 22px; border-top: 1px solid var(--line); cursor: pointer; }
.checkout-terms input { flex: none; width: 19px; height: 19px; min-height: 19px; margin: 3px 0 0; accent-color: var(--accent); }
#checkout-submit, #checkout-new-request { width: 100%; margin: 18px 0; }
#checkout-new-request { justify-content: center; }
.checkout-status { font-size: 13px; line-height: 1.7; margin: 18px 0; padding: 14px; background: var(--warm); border-radius: 6px; overflow-wrap: anywhere; }
.checkout-status.is-warning { color: #793c2b; background: #fff0e9; border: 1px solid #e5c6b8; }
#checkout-form + .checkout-status + .dialog-actions { margin-top: 22px; }

@media (max-width: 1320px) {
  .site-footer { margin-left: 40px; margin-right: 40px; }
}
@media (max-width: 1150px) and (min-width: 961px) {
  .header-inner { padding-left: 28px; padding-right: 28px; }
  .page-shell { padding: 28px 28px 0; }
  .workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .builder { padding: 26px 24px 0; }
  .configurator-row { gap: 24px; grid-template-columns: minmax(0, 1fr); }
  .thickness-option { grid-template-columns: 14px minmax(0, 1fr) 32px; gap: 7px; padding: 10px 8px; }
  .rate-value { font-size: 11px; }
  .cart { padding: 24px 18px; }
  .site-footer { margin-left: 28px; margin-right: 28px; }
}
@media (max-width: 960px) {
  .page-shell { max-width: 780px; padding: 28px 24px 0; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .builder { padding: 30px 30px 0; }
  .form-intro h1 { font-size: 44px; }
  .cart { padding: 28px 30px; }
  .radio-option { padding: 14px; gap: 10px; }
  .radio-option strong { font-size: 13px; }
  .radio-option small { font-size: 12px; }
  .cart-item-title { font-size: 14px; }
  .cart-item-meta { font-size: 12px; }
  .site-footer { max-width: 732px; margin: 30px auto; padding: 22px 24px 0; }
}
@media (max-width: 640px) {
  .header-inner { padding: 19px 22px 14px; flex-wrap: wrap; gap: 15px 10px; }
  .brand { font-size: 23px; gap: 9px; order: 1; }
  .brand-mark { width: 32px; height: 32px; }
  .header-right { display: contents; }
  .cart-link { order: 2; margin-left: auto; margin-right: 5px; }
  .header-info { order: 3; flex-basis: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
  .lead-time { font-size: 10px; gap: 3px; }
  .header-help { font-size: 10px; }
  .help-prefix { display: none; }
  .status-dot { width: 5px; height: 5px; margin-right: 2px; }
  .page-shell { padding: 20px 16px 0; }
  .builder { padding: 24px 22px 0; }
  .form-intro { gap: 12px 12px; }


  .form-intro h1 { max-width: none; font-size: 36px; letter-spacing: -1.4px; text-wrap: balance; }
  .product-kicker { font-size: 9px; letter-spacing: 1px; margin-bottom: 10px; line-height: 1.6; }
  .intro-copy { font-size: 11px; }
  .preview-step { margin-top: 14px; margin-bottom: 18px; }
  .piece-visual { width: min(100%, 330px); }
  .configurator-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 22px; }
  .thickness-option { grid-template-columns: 16px minmax(0, 1fr) 54px; }
  .rate-label { font-size: 16px; }
  .rate-value { font-size: 12px; }
  .dimension-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form-field select { font-size: 16px; }
  .shape-field select { background-position: right 12px center; }
  .purchase-row { margin-top: 22px; }
  .price-line strong { font-size: 34px; }
  .cart { padding: 24px 22px; }
  .fulfillment-options { grid-template-columns: minmax(0, 1fr); }
  .radio-option { padding: 14px; }
  .radio-option small { margin-top: 3px; }
  .site-footer { margin: 28px 22px; padding: 22px 0 0; }
  .site-footer p:last-child { font-size: 10px; max-width: 180px; }
}
@media (max-width: 420px) {
  .delivery-address-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-intro h1 { font-size: 32px; }
  .dimension-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form-field select { padding-left: 10px; padding-right: 25px; font-size: 14px; }
  .shape-field select { background-position: right 12px center; }
  .site-footer { flex-direction: column; text-align: center; gap: 12px; }
  .site-footer p:last-child { max-width: none; text-align: center; }
}
@media (max-width: 360px) {
  .header-inner { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 21px; }
  .header-info { flex-direction: column; gap: 7px; }
  .page-shell { padding-left: 12px; padding-right: 12px; }
  .builder, .cart { padding-left: 16px; padding-right: 16px; }
  .form-intro h1 { font-size: 29px; }
  .product-kicker { font-size: 8px; letter-spacing: .7px; }
  .thickness-option { grid-template-columns: 16px minmax(0, 1fr) 46px; }
  .quantity-control button { width: 36px; }
  .quantity-control input { width: 32px; }
  .price-line strong { font-size: 30px; }
  .piece-price-block > p { font-size: 10px; }
  .dialog-actions { grid-template-columns: minmax(0, 1fr); }
  dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
