/* Shared usability refinements; retains the NOOK palette and typography. */
:root {
  --ink-2: #565e4a;
  --brass-ink: #78591e;
  --card: var(--panel);
  --brand: var(--olive);
}
:root[data-theme="dark"] {
  --ink-2: #b5bba7;
  --brass-ink: #dfbd7b;
}
html {
  scroll-padding-top: 100px;
}
body {
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}
.pdp-overview {
  margin-block: 10px 24px;
  max-width: 75ch;
}
.pdp-overview h1 {
  font-size: clamp(25px, 3.6vw, 38px);
  margin-bottom: 10px;
}
.pdp-overview > p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
}
.pdp-overview .purchase-facts {
  margin-block: 12px;
  font-weight: 600;
  color: var(--ink);
}
.pdp-overview .btn {
  margin-top: 4px;
  min-height: 48px;
}
.pricebox .now,
.pcard-price b {
  color: var(--olive);
}
.save {
  color: var(--ink);
  background: var(--olive-soft);
}
.stage img {
  object-fit: contain;
  background: var(--sand);
}
.stage {
  aspect-ratio: 1/1;
}
.stage img {
  width: 100%;
  height: 100%;
  max-height: 680px;
}
.thumb,
.swatch,
.pill {
  min-height: 48px;
}
.pill {
  flex: 1 1 150px;
  min-width: 0;
}
.swatch {
  padding: 10px 14px;
  min-width: 88px;
  justify-content: center;
}
.spec-mini b,
.sum-row b,
.num {
  font-variant-numeric: tabular-nums;
}
#spSku,
#o-phone,
#dRef {
  direction: ltr;
  unicode-bidi: isolate;
}
.fld input,
.fld textarea,
.fld select {
  font-size: 16px;
  min-height: 48px;
}
.fld.bad .hint {
  color: #a32821;
  font-weight: 600;
}
[data-theme="dark"] .fld.bad .hint {
  color: #ffb5ac;
}
.faq details p {
  padding: 0 20px 20px;
  color: var(--ink-2);
  line-height: 1.85;
}
.faq summary {
  min-height: 56px;
  padding: 16px 20px;
  font-weight: 600;
}
.faq summary:focus-visible {
  outline-offset: -4px;
}
.spec-table {
  display: table;
  min-width: 600px;
}
.spec-table-wrap,
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-inline: contain;
}
.ftr-bot a,
.prv-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.car-dots button {
  min-width: 44px;
  min-height: 44px;
  background-clip: content-box;
  padding: 17px 17px;
}
.wa-float,
.bar-wa {
  background: #176d3c;
}
.wa-float {
  bottom: calc(92px + env(safe-area-inset-bottom));
}
.bar {
  z-index: 70;
}
.consent {
  background: var(--panel);
  z-index: 120;
}
.consent-txt a {
  color: var(--olive);
}
.lb.on {
  overscroll-behavior: contain;
}
.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.done h3,
.done > p {
  text-align: center;
}
.done h3 {
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.5;
  margin-bottom: 10px;
}
.done > p {
  font-size: 15.5px;
  line-height: 1.85;
}
@media (max-width: 760px) {
  /* Keep mobile comparison scrollable, but allocate room to values instead of a wide label column. */
  .spec-table {
    width: 600px;
    min-width: 600px;
    table-layout: fixed;
  }
  .spec-table th,
  .spec-table td {
    padding: 8px 10px;
    line-height: 1.55;
    vertical-align: middle;
    overflow-wrap: normal;
    word-break: normal;
  }
  .spec-table thead th:first-child,
  .spec-table tbody th {
    width: 84px;
  }
  .spec-table .spec-unit {
    white-space: nowrap;
  }
  .spec-table tbody tr:first-child td,
  .spec-table tbody tr:last-child td {
    white-space: nowrap;
  }
  /* Mobile: keep the breadcrumb, then show the product image immediately.
     Preserve the existing overview for screen readers; desktop stays unchanged. */
  #pdp .pdp-overview {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .pdp-overview h1 {
    font-size: 25px;
    line-height: 1.4;
  }
  .pdp-overview > p {
    font-size: 15px;
  }
  .pdp-overview .purchase-facts {
    font-size: 14px;
    line-height: 1.8;
  }
  .pdp-overview .btn {
    width: 100%;
    justify-content: center;
  }
  .pdp {
    gap: 20px;
  }
  .stage {
    max-height: 440px;
  }
  .stage img {
    max-height: 440px;
  }
  .swatch {
    flex: 1 1 28%;
    min-width: 80px;
    padding: 10px 8px;
  }
  .panel {
    padding: 18px 16px;
  }
  .bar-txt span {
    font-size: 12px;
  }
  .bar .btn {
    min-height: 48px;
    padding-inline: 12px;
  }
  .bar-in {
    gap: 8px;
  }
  .prv-sec p {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Consent offset must not reveal the product bar while it is inactive. */
body.has-consent .bar:not(.on) {
  visibility: hidden;
  pointer-events: none;
}
