@import url("./approved-layout.css");

:root { --brand-dark: #172e35; --brand-green: #678a15; --brand-blue: #4ba6c2; --danger: #9f2d25; }
[hidden] { display:none !important; }
img { object-fit:contain !important; }
button, a, input, select, textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; font:inherit; }
button:disabled { cursor:wait; opacity:.6; }
:focus-visible { outline:3px solid var(--brand-blue); outline-offset:3px; }
.shell, .catalog-main, .catalog-layout, .product-body, .checkout-grid>* { min-width:0; }
.header { position:relative; }
.head { min-height:76px; height:auto; }
.head a { min-height:44px; }
.head nav { flex-wrap:wrap; }
.product-mosaic img,.mixed-items img,.trust-grid img { aspect-ratio:1; height:auto!important; object-position:center!important; }
.product-mosaic figure { transform:none!important; }
.hero-visual.product-mosaic { transform:none; }
.product-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:white; }
.product-card>.product-photo { order:3; padding:0 20px 14px; }
.product-image,.missing-photo-frame { width:100%; aspect-ratio:1; overflow:hidden; background:white; display:grid; place-items:center; border-bottom:1px solid var(--line); }
.product-image img { width:100%; height:100%!important; aspect-ratio:1; object-fit:contain!important; object-position:center!important; }
.missing-photo-frame { padding:24px; color:var(--muted); text-align:center; background:#f3f5f1; }
.product-photo-note { position:static; display:block; font-size:12px; text-align:left; padding:12px 0 0; }
.product-body { flex:1; }
.product-name { font-size:26px; overflow-wrap:anywhere; }
.product-meta { font-size:14px; color:var(--muted); }
.product-photo { display:flex; align-items:center; min-height:44px; font-size:14px; color:#365c6a; }
.quantity-field { display:block; width:100%; margin-top:16px; }
.quantity-field>span { font-size:14px; }
.quantity-field .qty { margin-top:7px; }
.quantity-field input { width:100%; font-size:19px; font-weight:700; text-align:center; }
.quantity-error,.field-error { display:block; color:var(--danger); font-size:13px; min-height:1em; }
.quantity-field [aria-invalid=true], .field-grid [aria-invalid=true], .request-form [aria-invalid=true] { border-color:var(--danger); }
.color-chip { padding:6px; font-size:14px; min-width:54px; min-height:44px; }
.color-choice>div { gap:6px; }
.selected-toggle { display:flex; align-items:center; gap:10px; min-height:48px; margin-block:12px; font-size:14px; }
.selected-toggle input { width:22px; min-height:22px; height:22px; margin:0; }
.load-more { width:100%; margin:20px 0; }
.summary-card { top:22px; }
.summary-row { display:flex; justify-content:space-between; gap:12px; padding:10px 0; font-size:15px; border-bottom:1px solid var(--line); }
.summary-row span { color:var(--muted); }
.summary-row strong { text-align:right; white-space:nowrap; }
.summary-total { font-size:23px; }
.summary-total span { color:var(--dark); }
.cart-line { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; overflow-wrap:anywhere; }
.cart-line button { grid-column:2; background:transparent; border:0; padding:0 8px; min-height:44px; color:#7d3024; text-decoration:underline; font-size:14px; }
.cart-line small { font-size:13px; }
.progress { height:6px; }
.progress span { height:6px; width:0; transition:width .2s; }
.minimum-status { margin:16px 0; padding:12px; background:#fff0e4; font-size:14px; border-radius:5px; }
.minimum-status.is-valid { background:#e4eed4; color:#395713; }
.summary-card .button { width:100%; margin-top:10px; }
#cart-tier-note { font-size:15px; }
.field-grid label, .request-form label { display:flex; flex-direction:column; gap:6px; }
.field-wide { grid-column:1/-1; }
.billing-fieldset { min-width:0; padding:18px; border:1px solid var(--line); border-radius:8px; margin:24px 0; }
.billing-fieldset legend { font-weight:700; }
.billing-help { margin-bottom:16px; font-size:14px; }
.comment-field { display:block; margin-top:18px; }
.comment-field span { display:block; margin-bottom:8px; }
.comment-field textarea { display:block; width:100%; min-width:0; min-height:156px; box-sizing:border-box; resize:vertical; padding:12px 14px; border:1px solid #a5b2ab; border-radius:6px; background:#fff; color:var(--ink); font:inherit; font-size:16px; line-height:1.5; }
.consent-row { display:flex!important; flex-direction:row!important; align-items:flex-start; gap:10px; font-size:14px; margin:20px 0; line-height:1.65; }
.consent-row input { flex:none; width:22px!important; min-height:22px!important; height:22px!important; margin:3px 0 0!important; }
.consent-row span { font-weight:400; }
.honeypot-field { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.error-summary { padding:16px; border:2px solid var(--danger); border-radius:6px; color:var(--danger); background:#fff5f3; margin-bottom:20px; overflow-wrap:anywhere; }
.error-summary ul { padding-left:20px; }
.error-summary a { min-height:44px; display:inline-flex; align-items:center; }
.form-message { min-height:24px; font-weight:700; color:var(--danger); overflow-wrap:anywhere; margin-block:12px; }
.form-message.is-success { color:#395713; }
.form-note { font-size:14px; margin-top:14px; }
.form-card>.button { width:100%; }
.button-secondary { background:#e5edf0; color:var(--dark); margin-top:10px; }
.request-tabs { flex-wrap:wrap; gap:10px; }
.request-tabs button { min-height:44px; background:white; border:0; border-bottom:2px solid transparent; padding:10px 8px; color:var(--muted); }
.request-tabs button[aria-pressed=true] { border-color:var(--green); color:var(--dark); font-weight:700; }
.request-form>label { margin-bottom:12px; }
#request-submit { width:100%; }
.reorder-basket p { font-size:15px; }
.preview-buyer { overflow-wrap:anywhere; }
dialog { width:min(760px,calc(100% - 28px)); max-height:90vh; padding:28px; border:0; border-radius:12px; color:var(--dark); overflow:auto; }
dialog::backdrop { background:#172e35b3; }
.dialog-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.dialog-header h2 { font-size:28px; }
.dialog-header button { min-width:44px; min-height:44px; background:white; border:1px solid var(--line); font-size:26px; }
.dialog-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.preview-lines { width:100%; border-collapse:collapse; font-size:14px; }
.preview-lines th,.preview-lines td { padding:10px 5px; text-align:left; border-bottom:1px solid var(--line); }
.preview-lines td:last-child { white-space:nowrap; }
.submission-result { font-weight:700; padding:12px; background:#e5eed8; }
@media(max-width:1050px) {
 .product-card { display:flex; }
 .product-image { display:grid; }
}
@media (max-width:767px) {
 .head nav a.manager-link,.head nav a.return-link { display:flex!important; font-size:12px; }
 .head nav { justify-content:flex-end; gap:0 10px; }
 .head { padding-block:8px; }
 .head>a>img { width:150px; }
 .hero .eyebrow { font-size:12px; }
 .products { display:grid; grid-template-columns:1fr; }
 .product-card { display:flex; }
 .product-image { display:grid; border-right:0; }
 .product-image img { height:100%!important; }
 .product-card .product-name { font-size:26px; }
 .field-grid { grid-template-columns:1fr; }
 .field-wide { grid-column:auto; }
 .checkout-grid { display:flex; flex-direction:column; }
 .cart { position:static; width:100%; }
 .cart .summary-total { font-size:23px; }
 .request-tabs { gap:4px; }
 .request-form,.form-card { padding:18px; }
 .billing-fieldset { padding:12px; }
 .dialog-actions { flex-direction:column; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
@media print {
 body>*:not(dialog[open]) { display:none!important; }
 dialog[open] { position:static; width:100%; max-height:none; box-shadow:none; }
 .dialog-header button,.dialog-actions { display:none; }
}

/* Standalone-only mobile cart: rendered in the same viewport as the catalog. */
.mobile-cart[hidden], .mobile-cart.editing { display:none!important; }
@media (max-width:760px) {
  .mobile-cart { border-top:1px solid var(--line); }
  html { scroll-padding-bottom:96px; }
  #order-summary, #checkout { scroll-margin-top:20px; scroll-margin-bottom:100px; }
}

/* One shared mini-cart for desktop and small screens; keep focus above its safe area. */
html { scroll-padding-bottom:160px; }
body { padding-bottom:150px; }
.mobile-cart {
  position:fixed; display:flex; align-items:center; justify-content:space-between;
  gap:16px; left:50%; right:auto; bottom:12px; transform:translateX(-50%);
  width:min(1200px,calc(100% - 36px)); z-index:6; padding:14px 20px;
  background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:0 2px 22px #172e3526;
}
.mobile-cart>div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:3px 24px; min-width:0; flex:1; }
.mobile-cart small { color:var(--brand-dark); font-size:14px; line-height:1.35; }
.mobile-cart b { grid-column:2; grid-row:1 / span 2; font-size:26px; white-space:nowrap; }
#mobile-cart-progress { grid-column:1; }
.mobile-cart .button { min-height:48px; flex-shrink:0; }
.cart-notice { font-size:15px; color:var(--brand-dark); background:#e8f3f7; padding:12px; border-left:4px solid var(--brand-blue); margin-bottom:16px; }
.money, .summary-row strong, #mobile-cart-total, .prices b, .cart-line strong { white-space:nowrap; }
.reorder-top h2 { font-size:clamp(32px,3.5vw,46px); max-width:900px; }
.reorder-benefit { font-size:20px; color:var(--brand-dark); max-width:950px; }
.reorder-benefit strong { display:block; margin-bottom:8px; font-weight:750; }
#cart-notice, #checkout input, #checkout select, #checkout textarea, .request-form input, .request-form textarea { scroll-margin-block:24px 160px; }
@media(max-width:760px) {
  body { padding-bottom:155px; }
  .mobile-cart { left:0; right:0; bottom:0; transform:none; width:100%; border-radius:0;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom)); gap:10px; }
  .mobile-cart>div { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
  .mobile-cart small { font-size:12px; }
  .mobile-cart b { font-size:22px; }
  #mobile-cart-progress { max-width:220px; font-size:11px; }
  .mobile-cart .button { padding:10px 12px; font-size:14px; }
  .reorder-top h2 { font-size:clamp(30px,7.7vw,36px); }
  .reorder-benefit { font-size:17px; line-height:1.5; }
}
@media print { .mobile-cart { display:none!important; } body { padding-bottom:0; } }
