.price-ref {
  display: grid;
  justify-items: start;
  gap: 2px;
  margin-block: 12px 4px;
  text-align: left;
}
.price-ref .price-label,
.price-ref .price-basis {
  font: 400 .77rem/1.25 var(--body);
}
.price-ref .price-value {
  font: 850 clamp(1.1rem, 2vw, 1.5rem)/1.1 var(--display);
  letter-spacing: -.025em;
}
.price-ref .price-value small {
  font: 450 .67em/1 var(--body);
  white-space: nowrap;
}
.price-ref-full {
  margin-block: 20px 6px;
  padding: 14px 0;
  border-block: 1px solid var(--ms-line);
}
.price-ref-full .price-value { font-size: 1.9rem; }
.price-ref-full details { margin-top: 10px; font-size: .87rem; }
.price-ref-full summary { cursor: pointer; text-decoration: underline; text-underline-offset: .19em; }
.price-ref-full details p { margin-block: 8px; max-width: 50ch; }
.price-ref-full details a { text-decoration: underline; }
.price-ref-full details small { display: block; margin-top: 6px; }
.compare-output tfoot a { display:inline-flex; align-items:center; min-height:44px; font-weight:650 }
.studio-order [data-studio-budget], .studio-order a[href="#model-budget"] { grid-column:1/-1 }
.studio-order [data-studio-budget] { margin:8px 0 0; font-weight:650 }
.studio-order a[href="#model-budget"] { justify-self:start; color:var(--ms-muted); font-size:.85rem }

.price-guide {
  max-width: 67ch;
  margin: 0 0 clamp(16px, 2vw, 28px);
  color: var(--ms-muted);
  font: 400 .88rem/1.5 var(--body);
}
.model-visual { position: relative; }
.model-visual .product-photo { aspect-ratio: 3/4; }
.model-visual .product-photo img,
.shelf-model .shelf-picture img { object-fit: contain; transform: none; }
.model-design, .model-bag {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.model-design {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: var(--ms-graphite, #2a2a30);
  background: var(--ms-pearl, #f5f5f7);
}
.model-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(10px, 1.3vw, 22px);
  color: var(--ms-text);
  background: var(--ms-panel);
}
.model-caption h3, .product-card .model-caption h3 {
  margin: 0;
  font: 720 clamp(1.06rem, 1.55vw, 1.6rem)/1.12 var(--display);
  letter-spacing: -.034em;
  overflow-wrap: anywhere;
}
.model-caption .model-material {
  margin: 6px 0 clamp(14px, 1.6vw, 24px);
  font: 400 clamp(.76rem, 1vw, .9rem)/1.45 var(--body);
  color: var(--ms-muted);
}
.model-material span { white-space: nowrap; }
.model-purchase {
  margin-top: auto;
  padding-top: clamp(6px, .7vw, 10px);
  border-top: 1px solid var(--ms-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}
.model-price {
  font: 700 clamp(1.04rem, 1.45vw, 1.45rem)/1.15 var(--display);
  letter-spacing: -.035em;
}
.model-price small { font: 400 .76em/1 var(--body); }
.model-cost {min-width:0}
.model-cost .price-unit {margin-inline-start:.24em;color:var(--ms-muted);font:450 .78rem/1 var(--body);white-space:nowrap}
.model-cost>small {display:block;margin-top:4px;color:var(--ms-muted);font:400 .72rem/1.25 var(--body);text-wrap:pretty}
.model-bag {
  flex: 0 0 44px;
  color: var(--ms-graphite, #2a2a30);
  background: var(--ms-accent);
}
.model-bag svg, .model-design svg { width: 19px; height: 19px; }
@media (hover:hover) {
  .model-bag:hover { box-shadow: inset 0 0 0 2px var(--ms-graphite, #2a2a30); }
  .model-design:hover { background: var(--ms-accent); color: var(--ms-graphite, #2a2a30); }
}

.budget-box {display:grid;gap:.55rem;padding:clamp(14px,2vw,24px);margin-block:15px;border:1px solid var(--ms-line);border-radius:var(--ms-card-radius);background:var(--ms-bg);color:var(--ms-text)}
.budget-box h3 {font:750 1.25rem/1.1 var(--display);letter-spacing:-.025em}
.budget-box .budget-amount {display:block;font:800 clamp(1.55rem,2.8vw,2.4rem)/1.12 var(--display);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.budget-box [data-budget-output] {display:grid;gap:4px}
.budget-box p,.detail-page .detail-order .budget-box p {font:500 .92rem/1.4 var(--body);margin:0;color:var(--ms-text)}
.budget-box small,.line-budget,.line-budget-source {font:.85rem/1.4 var(--body);color:var(--ms-muted)}
.budget-box a,.line-budget-source {text-decoration:underline;text-underline-offset:3px;width:fit-content}
.budget-box a {font-size:.85rem}
.budget-presets {display:flex;flex-wrap:wrap;gap:6px}
.budget-presets button {background:var(--ms-panel);color:var(--ms-text);min-height:36px;padding:5px 12px;border:1px solid var(--ms-line);border-radius:999px;cursor:pointer}
.budget-presets button[aria-pressed=true] {background:var(--ms-gold,#e8be46);color:#2a2a30;border-color:#2a2a30}
.cart-page .cart-budget {margin-top:20px}
.price-ref-full .price-value {
  font-size:clamp(1.9rem,3vw,3rem);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.045em;
}
.price-ref-full .price-basis {color:var(--ms-muted);line-height:1.45}
.budget-box [data-budget-output] {border-block-start:1px solid var(--ms-line);padding-top:10px}
.budget-presets button {min-height:44px;font-variant-numeric:tabular-nums}
.budget-presets button[aria-pressed=true] {font-weight:700;box-shadow:inset 0 -2px 0 #2a2a30}
.model-price {font-variant-numeric:tabular-nums}
.product-card .model-bag[data-added],.detail-page [data-detail-add][data-added] {
  background:var(--ms-gold);
  color:var(--ms-graphite);
}
/* Catalogue prices, print setup and checkout share the same hierarchy of amounts. */
.budget-box .budget-amount,.cart-budget strong,.studio-order [data-studio-budget] {font-variant-numeric:tabular-nums}
.model-visual .model-design,.model-caption .model-bag {background:var(--ms-bg);color:var(--ms-text);border:1px solid var(--ms-line)}
.model-caption .model-bag:is(:focus-visible,:active,[data-added]),.model-visual .model-design:is(:focus-visible,:active) {background:var(--ms-gold);color:#17171c;border-color:transparent}
@media(hover:hover) {
  .model-caption .model-bag:hover,.model-visual .model-design:hover {background:var(--ms-gold);color:#17171c;border-color:transparent;box-shadow:none}
}
.catalog-compare .compare-output th img {width:100%;height:clamp(138px,17vw,230px);object-fit:contain;background:var(--ms-bg);border-radius:var(--ms-card-radius)}
.catalog-compare .compare-output thead th {font:720 clamp(1rem,1.6vw,1.4rem)/1.15 var(--display)}
.catalog-compare .compare-output tbody td {padding-bottom:12px;font-variant-numeric:tabular-nums}
.catalog-compare .compare-output tfoot a {color:var(--ms-text);text-decoration-color:var(--ms-gold);text-underline-offset:4px}

/* Basket contents and the order receipt share a single reading sequence. */
.cart-page .order-mast h1 {font-size:clamp(2.3rem,4.2vw,4.3rem);line-height:1}
.cart-page .order-mast h1::before {display:none}
.cart-page .order-mast {padding-bottom:16px}
.cart-page #lead-form .cart-order {padding:0;border:0;background:transparent;box-shadow:none}
.cart-page #selection {padding:clamp(14px,1.7vw,26px);background:var(--ms-panel);border-radius:var(--ms-card-radius)}
.cart-page .cart-extras {margin:16px 0;padding:6px 0;border:0;border-block:1px solid var(--ms-line);border-radius:0;background:transparent}
.cart-page .cart-extras summary {min-height:44px;font-size:1rem}
.cart-extras textarea {margin-bottom:12px}
.cart-page .cart-checkout {position:static;padding:clamp(16px,2.4vw,32px)}
.cart-page .cart-checkout .cart-budget {margin:0 0 22px;padding:0 0 20px;border:0;border-bottom:1px solid var(--ms-line);border-radius:0;background:transparent}
.cart-page .cart-budget h3 {font:750 clamp(1.45rem,2vw,2rem)/1.08 var(--display)}
.receipt-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.receipt-heading > span {font-size:.95rem;color:var(--ms-muted);white-space:nowrap}
.cart-page .cart-budget .receipt-total {margin-top:4px}
.cart-page .contact-fields > label {margin-bottom:10px}
.cart-page .contact-alternatives {margin:10px 0}
.cart-page .contact-alternatives summary {min-height:36px;align-content:center;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.cart-page .contact-alternatives[open] label {margin-top:8px}
.cart-page .line-actions {align-self:start}
@media(min-width:801px) {
  .cart-page #bag-items li.cart-line {grid-template-columns:minmax(120px,26%) minmax(0,1fr) auto;align-items:start}
}
@media(max-width:800px) {
  .cart-page #bag-items li.cart-line.has-proof {grid-template-columns:minmax(84px,32%) minmax(0,1fr);column-gap:12px}
  .cart-page #bag-items .has-proof .line-thumb {aspect-ratio:2/3;grid-row:span 2}
  .cart-page #bag-items .has-proof .line-thumb img {object-fit:contain}
  .cart-page #bag-items .has-proof .line-body {display:flex;flex-direction:column;align-items:start}
  .cart-page #bag-items .has-proof .line-actions {grid-column:2;gap:8px}
  .cart-page .order-mast {padding-bottom:10px}
  .cart-page #lead-form:not([hidden]) {margin-top:14px}
}

