/**
 * Fabric shop styles.
 *
 * Uses the theme's existing design tokens (--ink, --linen, --brass, --display…)
 * so the shop reads as part of the site rather than a bolted-on store.
 */

/* ══════════════════ SHARED ══════════════════ */

.bnc-shop,
.bnc-page {
  padding-top: 96px;
  padding-bottom: var(--section-pad);
  background: var(--linen);
}

.bnc-narrow { max-width: 980px; }

.bnc-page-title {
  font-size: clamp(32px, 5vw, 52px);
  margin: 10px 0 26px;
}

.bnc-lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 26px;
}

.bnc-mini-title {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.bnc-label {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.bnc-back-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--greige);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.bnc-back-link:hover { color: var(--brass-text); border-color: var(--brass-text); }

.bnc-block-btn { display: flex; justify-content: center; width: 100%; margin-top: 18px; }

/* ══════════════════ ALERTS ══════════════════ */

.bnc-alert {
  padding: 14px 18px;
  margin: 0 0 24px;
  border-left: 3px solid;
  font-size: 14.5px;
  line-height: 1.6;
  border-radius: 2px;
}
.bnc-alert code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0,0,0,.05);
  padding: 1px 5px;
  border-radius: 2px;
}
.bnc-alert--error { background: var(--terracotta-tint); border-color: var(--terracotta); color: #7A3F23; }
.bnc-alert--test  { background: var(--citrus-tint);     border-color: var(--citrus);     color: #4E5722; }

/* ══════════════════ HERO ══════════════════ */

.bnc-hero { padding-bottom: 8px; }

.bnc-hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  margin: 12px 0 20px;
}

.bnc-hero-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
}

.bnc-vat-banner {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--greige-soft);
  border-left: 3px solid var(--brass);
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-radius: 2px;
}
.bnc-vat-banner svg { flex: 0 0 auto; margin-top: 3px; color: var(--brass); }

.bnc-closed {
  background: var(--paper);
  border: 1px solid var(--greige-soft);
  border-left: 3px solid var(--terracotta);
  padding: 26px 28px;
  margin: 30px 0;
  border-radius: 2px;
}
.bnc-closed h2 { font-size: 22px; margin-bottom: 10px; }
.bnc-closed p  { color: var(--ink-soft); margin-bottom: 18px; max-width: 58ch; }

/* ══════════════════ FABRIC GRID ══════════════════ */

.bnc-grid-wrap { padding-top: 46px; }

.bnc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 30px;
}

.bnc-card {
  background: var(--paper);
  border: 1px solid var(--greige-soft);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.bnc-card:hover {
  box-shadow: 0 14px 40px -18px rgba(28,43,69,.28);
  transform: translateY(-2px);
}

.bnc-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen-deep);
}
.bnc-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s var(--ease);
}

.bnc-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.bnc-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.bnc-card-name { font-size: 25px; line-height: 1.1; }
.bnc-card-coll {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--greige-text);
  margin-top: 5px;
}

.bnc-card-price { text-align: right; flex: 0 0 auto; }
.bnc-card-price strong {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.bnc-card-price span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
.bnc-card-price em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--brass-text);
  margin-top: 3px;
}

/* ── Colour swatches ── */

.bnc-colours { border: 0; padding: 0; margin: 0; }
.bnc-colours legend {
  padding: 0;
  margin-bottom: 9px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.bnc-colour-name {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.bnc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.bnc-swatch {
  width: 46px; height: 46px;
  padding: 0;
  border: 1.5px solid var(--greige-soft);
  border-radius: 2px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.bnc-swatch img { width: 100%; height: 100%; object-fit: cover; }
.bnc-swatch:hover { transform: scale(1.06); border-color: var(--greige-text); }
.bnc-swatch.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink);
}

/* ── Buy row ── */

.bnc-buy {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 4px;
}

.bnc-qty { display: flex; flex-direction: column; gap: 7px; }

.bnc-qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--greige-soft);
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper);
}

.bnc-step {
  width: 34px;
  border: 0;
  background: var(--linen);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.bnc-step:hover { background: var(--linen-deep); }

.bnc-metres {
  width: 52px;
  border: 0;
  border-left: 1px solid var(--greige-soft);
  border-right: 1px solid var(--greige-soft);
  text-align: center;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  padding: 9px 0;
  -moz-appearance: textfield;
}
.bnc-metres::-webkit-outer-spin-button,
.bnc-metres::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bnc-add { flex: 1; justify-content: center; padding: 13px 20px; }
.bnc-add.is-added { background: var(--citrus); border-color: var(--citrus); }
.bnc-add:disabled { opacity: .55; cursor: not-allowed; }

.bnc-line-preview {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
}
.bnc-line-preview span { color: var(--brass-text); }

/* ══════════════════ TRUST ══════════════════ */

.bnc-trust-wrap { padding-top: 64px; }

.bnc-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--greige-soft);
  border-bottom: 1px solid var(--greige-soft);
}
.bnc-trust-item svg { color: var(--brass); margin-bottom: 12px; }
.bnc-trust-item h3 { font-family: var(--body); font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.bnc-trust-item p  { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.bnc-swatch-note {
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 70ch;
}
.bnc-swatch-note a { color: var(--brass-text); border-bottom: 1px solid currentColor; }

/* ══════════ CURTAINS PAGE — SWATCH BUY BAR ══════════ */

/* The price of the selected swatch, shown right next to its name so the
   customer knows the cost before they choose a length. */
.cpf-cartbar-price {
  display: block;
  margin-top: 3px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--brass-text);
}

.cpf-enquire-btn { white-space: nowrap; }

/* hidden must win over the flex/inline-flex display these controls inherit,
   otherwise a fabric with no price still shows an Add to Cart button. */
.cpf-cartbar [hidden],
.cpf-cartbar-actions [hidden] { display: none !important; }

/* ══════════════════ CART DRAWER ══════════════════ */

/* STACKING ORDER — why these numbers are so high.
   The fabrics product modal on the Curtains page sits at z-index 900. The cart
   is opened from a button INSIDE that modal, so anything lower simply renders
   behind it: pressing Cart appeared to do nothing until the modal was closed.
   The drawer has to sit above the modal it is summoned from.
       900  .cp-modal          (fabrics browser)
      1200  .bnc-fab          (floating cart button)
      1300  .bnc-drawer-overlay
      1310  .bnc-drawer       (always on top) */

.bnc-fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  background: var(--ink);
  color: var(--linen);
  border: 0;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(28,43,69,.55);
  transition: background .3s var(--ease);
}
.bnc-fab:hover { background: var(--ink-soft); }
.bnc-count {
  font-style: normal;
  background: var(--brass);
  color: var(--charcoal);
  min-width: 21px;
  height: 21px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}

.bnc-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(28,43,69,.45);
  backdrop-filter: blur(2px);
  z-index: 1300;
}

.bnc-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(410px, 100vw);
  background: var(--paper);
  z-index: 1310;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  box-shadow: -14px 0 46px -20px rgba(28,43,69,.5);
}
.bnc-drawer.is-open { transform: translateX(0); }

/* The [hidden] attribute must beat the display rules above, or the drawer and
   its overlay stay in the layout while "closed" — an invisible sheet swallowing
   clicks across the right-hand side of the page. */
.bnc-drawer[hidden],
.bnc-drawer-overlay[hidden],
.bnc-fab[hidden] { display: none !important; }

.bnc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--greige-soft);
}
.bnc-drawer-head h2 { font-size: 21px; }
.bnc-drawer-close {
  border: 0; background: none; cursor: pointer;
  color: var(--ink); padding: 4px; line-height: 0;
}

.bnc-drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }

.bnc-drawer-empty { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

.bnc-drawer-items { list-style: none; margin: 0 0 20px; padding: 0; }

.bnc-drawer-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--linen-deep);
}
.bnc-drawer-item img {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}
.bnc-drawer-item-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bnc-drawer-item-meta strong { font-size: 14.5px; }
.bnc-drawer-item-meta span   { font-size: 12.5px; color: var(--ink-soft); }
.bnc-drawer-item-sum { color: var(--brass-text) !important; font-weight: 500; }
.bnc-drawer-item-remove {
  border: 0; background: none; cursor: pointer;
  font-size: 21px; line-height: 1;
  color: var(--greige-text); padding: 4px 6px;
  transition: color .2s var(--ease);
}
.bnc-drawer-item-remove:hover { color: var(--terracotta); }

.bnc-drawer-error { color: var(--terracotta); font-size: 14px; line-height: 1.6; }

.bnc-drawer-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--greige-soft);
  background: var(--linen);
}
.bnc-drawer-checkout { display: flex; justify-content: center; width: 100%; }
.bnc-drawer-view {
  display: block;
  text-align: center;
  margin-top: 11px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: underline;
}
.bnc-drawer-note {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: var(--greige-text);
}

/* ══════════════════ TOTALS ══════════════════ */

.bnc-total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.bnc-total-row strong { color: var(--ink); font-weight: 600; }
.bnc-total-row--grand {
  border-top: 1.5px solid var(--ink);
  margin-top: 8px;
  padding-top: 13px;
  font-size: 16px;
}
.bnc-total-row--grand span,
.bnc-total-row--grand strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}

/* ══════════════════ CART PAGE ══════════════════ */

.bnc-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 34px;
}
.bnc-cart-table th,
.bnc-cart-table td { padding: 15px 10px; text-align: left; vertical-align: middle; }
.bnc-cart-table thead th {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 10px;
}
.bnc-cart-table tbody td { border-bottom: 1px solid var(--greige-soft); }
.bnc-cart-table tfoot th {
  text-align: right;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 10px;
}
.bnc-cart-table tfoot td { text-align: right; padding: 7px 10px; }
.bnc-cart-table tfoot .bnc-grand th,
.bnc-cart-table tfoot .bnc-grand td {
  border-top: 1.5px solid var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  padding-top: 13px;
}

.bnc-col-qty { width: 120px; text-align: center !important; }
.bnc-col-num { width: 118px; text-align: right !important; white-space: nowrap; }

/* The image + name pair sits in an inner wrapper rather than the cell itself.
   Setting display:flex directly on a <td> pulls it out of the table's layout
   algorithm, which collapses the column widths and misaligns every row against
   its header — the "glitched" look. The cell stays a table-cell; only its
   contents are flexed. */
.bnc-cart-cell { display: flex; align-items: center; gap: 13px; }
.bnc-row-img { width: 56px; height: 56px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; }
.bnc-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bnc-row-text strong { line-height: 1.25; }
.bnc-row-sub { font-size: 12.5px; color: var(--ink-soft); }

.bnc-row-remove {
  border: 0; background: none; cursor: pointer;
  font-size: 21px; color: var(--greige-text); padding: 4px 8px;
  transition: color .2s var(--ease);
}
.bnc-row-remove:hover { color: var(--terracotta); }

.bnc-cart-foot {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 40px;
  align-items: start;
}

/* Same SVG approach as .bnc-assurances — see the note there. */
.bnc-ticks { list-style: none; margin: 0; padding: 0; }
.bnc-ticks li {
  padding-left: 27px;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.4 3.4L13 4.6' fill='none' stroke='%237C8A36' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 0.2em;
  background-size: 16px 16px;
}
.bnc-ticks li:last-child { margin-bottom: 0; }

.bnc-cart-summary {
  background: var(--paper);
  border: 1px solid var(--greige-soft);
  padding: 22px 24px;
  border-radius: 2px;
}

.bnc-cart-empty { text-align: center; padding: 56px 20px; }
.bnc-cart-empty h2 { font-size: 25px; margin-bottom: 10px; }
.bnc-cart-empty p  { color: var(--ink-soft); margin-bottom: 22px; }

.bnc-cart-loading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 34px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.bnc-spinner {
  width: 17px; height: 17px;
  border: 2px solid var(--greige-soft);
  border-top-color: var(--brass);
  border-radius: 50%;
  display: inline-block;
  animation: bnc-spin .75s linear infinite;
}
.bnc-spinner--lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes bnc-spin { to { transform: rotate(360deg); } }

/* Respect a stated preference for less motion.
   For some people this is a comfort setting; for people with vestibular
   disorders, migraine or photosensitivity, sliding panels and scaling cards can
   genuinely trigger symptoms. The drawer still opens — it just appears rather
   than slides, so nothing becomes unusable. */
@media (prefers-reduced-motion: reduce) {
  .bnc-spinner { animation-duration: 2.4s; }
  .bnc-card,
  .bnc-swatch,
  .bnc-drawer,
  .bnc-drawer-overlay,
  .bnc-fab,
  .bnc-step,
  .bnc-add,
  .bnc-back-link,
  .bnc-field input,
  .bnc-field textarea {
    transition: none !important;
  }
  .bnc-card:hover        { transform: none; box-shadow: none; }
  .bnc-swatch:hover      { transform: none; }
  .bnc-drawer            { transition: none !important; }
  .bnc-drawer-overlay    { backdrop-filter: none; }
}

/* Focus must be obvious on every interactive control, not just the ones the
   theme styles by hand. Keyboard users navigate by seeing where they are. */
.bnc-swatch:focus-visible,
.bnc-step:focus-visible,
.bnc-add:focus-visible,
.bnc-retry:focus-visible,
.bnc-row-remove:focus-visible,
.bnc-drawer-item-remove:focus-visible,
.bnc-drawer-close:focus-visible,
.bnc-fab:focus-visible,
.bnc-pay-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ══════════════════ CHECKOUT ══════════════════ */

.bnc-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 46px;
  align-items: start;
}

.bnc-form-note { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }

.bnc-field { margin-bottom: 20px; }
.bnc-field label {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.bnc-field input,
.bnc-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--greige-soft);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.bnc-field input:focus,
.bnc-field textarea:focus { border-color: var(--brass); outline: none; }
.bnc-field textarea { resize: vertical; min-height: 84px; }

.bnc-req { color: var(--terracotta); }
.bnc-optional {
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--greige-text);
  margin-left: 6px;
}
.bnc-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

/* Honeypot — off-screen, never announced, never tabbable. */
.bnc-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.bnc-collect {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--citrus-tint);
  border-left: 3px solid var(--citrus);
  border-radius: 2px;
  margin-bottom: 26px;
}
.bnc-collect svg { color: var(--citrus); flex: 0 0 auto; margin-top: 2px; }
.bnc-collect strong { display: block; font-size: 14.5px; margin-bottom: 5px; }
.bnc-collect p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 4px; }

.bnc-terms { margin-bottom: 26px; }
.bnc-terms label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  cursor: pointer;
}
.bnc-terms input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--ink); }
.bnc-terms a { color: var(--brass-text); border-bottom: 1px solid currentColor; }

.bnc-pay-btn {
  width: 100%;
  justify-content: center;
  padding: 17px 28px;
  font-size: 15.5px;
}
.bnc-pay-btn:disabled { opacity: .55; cursor: not-allowed; }

.bnc-secure-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

.bnc-legal-line {
  margin: 0 0 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.bnc-legal-line a { color: var(--brass-text); border-bottom: 1px solid currentColor; }

.bnc-summary-card {
  background: var(--paper);
  border: 1px solid var(--greige-soft);
  padding: 24px;
  border-radius: 2px;
  position: sticky;
  top: 96px;
}

.bnc-summary-items { list-style: none; margin: 0 0 16px; padding: 0; }
.bnc-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--linen-deep);
  font-size: 14px;
}
.bnc-summary-item strong { display: block; font-weight: 600; }
.bnc-summary-item span   { font-size: 12.5px; color: var(--ink-soft); }
.bnc-summary-amount { white-space: nowrap; font-weight: 600; color: var(--ink) !important; font-size: 14px !important; }

.bnc-summary-empty { font-size: 14px; color: var(--ink-soft); }
.bnc-summary-empty a { color: var(--brass-text); border-bottom: 1px solid currentColor; }

/* Shown when pricing could not be confirmed, so the customer has a way out
   rather than a dead end. */
.bnc-retry {
  margin-top: 12px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--ink);
  border-color: var(--greige-text);
}
.bnc-retry:hover { background: var(--linen-deep); }

/* Tick marks are drawn as an inline SVG background rather than two rotated
   borders. The rotated-border trick is a common shortcut, but the rotation is
   applied about the box centre and lands on fractional pixels — so at some
   browser zoom levels and on some screens the two edges render at different
   thicknesses, or the mark drifts out of line with its text. An SVG is
   resolution-independent and sits exactly where it is put. */
.bnc-assurances {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.bnc-assurances li {
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.8' fill='none' stroke='%23806436' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 0.15em;
  background-size: 14px 14px;
}
.bnc-assurances li:last-child { margin-bottom: 0; }

/* ══════════════════ ORDER STATUS ══════════════════ */

.bnc-status { text-align: center; padding: 40px 20px 30px; }
.bnc-status h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 18px 0 12px; }
.bnc-status p  { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 54ch; margin: 0 auto; }

.bnc-status--paid svg   { color: var(--citrus); }
.bnc-status--failed svg { color: var(--terracotta); }
.bnc-status--warn h1    { color: var(--terracotta); }

.bnc-receipt {
  background: var(--paper);
  border: 1px solid var(--greige-soft);
  padding: 26px 28px;
  margin: 32px 0;
  border-radius: 2px;
}
.bnc-receipt-head {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--greige-soft);
}
.bnc-receipt-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--greige-text);
  margin-bottom: 4px;
}
.bnc-receipt-head strong { font-family: var(--display); font-size: 19px; font-weight: 500; }

.bnc-next {
  background: var(--linen-deep);
  padding: 26px 28px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.bnc-steps { margin: 0; padding-left: 20px; }
.bnc-steps li { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }
.bnc-collect-line { margin-top: 14px; font-size: 14px; color: var(--ink); }

.bnc-waiting-detail {
  max-width: 58ch;
  margin: 0 auto;
  text-align: center;
}
.bnc-waiting-detail p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 12px; }

.bnc-print-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bnc-back-row { text-align: center; margin-top: 26px; }

/* ══════════════════ PRINT ══════════════════ */

@media print {
  .nav, footer, .bnc-fab, .bnc-drawer, .bnc-drawer-overlay,
  .bnc-print-row, .bnc-next { display: none !important; }
  .bnc-page { padding-top: 0; }
  .bnc-receipt { border: 0; padding: 0; }
  body { background: #fff; }
}

/* ══════════════════ RESPONSIVE ══════════════════ */

@media (max-width: 900px) {
  .bnc-checkout-grid { grid-template-columns: 1fr; gap: 34px; }
  .bnc-summary-card  { position: static; }
  .bnc-cart-foot     { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .bnc-shop, .bnc-page { padding-top: 82px; }
  .bnc-grid { grid-template-columns: 1fr; gap: 24px; }

  .bnc-card-head { flex-direction: column; gap: 10px; }
  .bnc-card-price { text-align: left; }

  .bnc-buy { flex-direction: column; align-items: stretch; }
  .bnc-add { width: 100%; }

  /* Reflow the cart table into stacked cards on small screens. */
  .bnc-cart-table thead { display: none; }
  .bnc-cart-table, .bnc-cart-table tbody, .bnc-cart-table tr, .bnc-cart-table td { display: block; width: 100%; }
  .bnc-cart-table td.bnc-col-qty::before { content: "Metres: "; color: var(--ink-soft); font-size: 12.5px; }
  .bnc-cart-table td.bnc-col-num::before { content: attr(data-label) ": "; color: var(--ink-soft); font-size: 12.5px; }
  .bnc-cart-table tr {
    border: 1px solid var(--greige-soft);
    border-radius: 2px;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--paper);
  }
  .bnc-cart-table tbody td { border: 0; padding: 6px 0; }
  .bnc-cart-table td:first-child { padding-bottom: 12px; }
  .bnc-col-qty, .bnc-col-num { width: auto; text-align: left !important; }

  .bnc-cart-table tfoot { display: block; }
  .bnc-cart-table tfoot tr { display: flex; justify-content: space-between; border: 0; padding: 4px 0; background: none; margin: 0; }
  .bnc-cart-table tfoot th, .bnc-cart-table tfoot td { padding: 4px 0; }

  .bnc-fab { right: 14px; bottom: 14px; }
  .bnc-drawer { width: 100vw; }
}
