/* generated by tools/scss.py from content.scss (Dart Sass 1.105.2) — edit content.scss, never this file */
/* The content page (storefront-cutover C2, CO-D3): sign-in, account, orders, the store's own pages and messages,
   in every theme's chrome. Tokens only — the theme's --paper/--ink/--stone/--mist/--well/--accent/--display/--text/
   --r/--gut decide the look; markup reuses the skeleton's own classes (.fs .fld .frow .btn .price .crumb), so a form
   here looks like the theme's checkout. Ships with the theme, like slider.js. */
.page {
  max-width: 1340px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) var(--gut, 20px) clamp(40px, 7vw, 96px);
}

.page > * + *, .page-cols > * > * + *, .page-narrow > * + * {
  margin-top: 22px;
}

.page-head {
  display: grid;
  gap: 8px;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.page-head p {
  margin: 0;
  color: var(--stone);
  max-width: 62ch;
}

.page-narrow {
  max-width: 460px;
}

.page-cols {
  display: grid;
  gap: clamp(20px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 860px) {
  .page-cols {
    grid-template-columns: 1fr;
  }
}
.page form {
  display: grid;
  gap: 16px;
}

.page .btn {
  justify-self: start;
}

.page-card {
  border: 1px solid var(--mist);
  border-radius: var(--r, 0);
  background: var(--well);
  padding: clamp(18px, 3vw, 28px);
}

.page-card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.prose {
  color: var(--ink);
  line-height: 1.7;
  max-width: 70ch;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 1.6em 0 0.4em;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.3em 0 0.3em;
}

.prose p, .prose ul, .prose ol {
  margin: 0 0 1em;
}

.prose a {
  color: var(--accent);
}

.page-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.page-table th {
  text-align: start;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mist);
}

.page-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--mist);
  color: var(--ink);
}

.page-table a {
  color: var(--accent);
}

.page-note {
  border-inline-start: 3px solid var(--accent);
  background: var(--well);
  padding: 12px 16px;
  color: var(--ink);
}

.page-note.is-error {
  border-color: var(--signal);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.92rem;
}

.page-links a {
  color: var(--stone);
}

/* TN3e — checkout's own chrome: the logo, a secure-checkout note beside it, a one-line footer (nothing leads away) */
header[data-minimal] {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px 18px;
}

header[data-minimal] > :last-child {
  margin-inline-start: auto;
}

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  color: var(--stone);
  white-space: nowrap;
}

.secure-note::before {
  content: "";
  inline-size: 0.7em;
  block-size: 0.8em;
  border: 2px solid currentColor;
  border-radius: 2px 2px 3px 3px;
  box-shadow: inset 0 -0.35em 0 0 currentColor;
  opacity: 0.8;
}

.foot.foot-min {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding-block: 28px;
}

.foot.foot-min p {
  margin: 0;
  color: var(--stone);
}

.foot.foot-min a {
  color: var(--ink);
}

.foot-min-base {
  font-size: 0.85rem;
}

/* TN3a, TN3b — the shopper's account and an order (the thank-you page right after checkout) */
.page-kick {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.page-card * + h2 {
  margin-top: 26px;
}

.page .fld small {
  font-weight: 400;
  color: var(--stone);
}

.page .fld .is-error {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--signal, var(--accent));
}

.acct-muted {
  color: var(--stone);
}

.acct-grid {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
}

.acct-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mist);
  color: var(--ink);
}

.acct-list li > :first-child {
  min-width: 0;
  flex: 1 1 12em;
  overflow-wrap: anywhere;
}

.acct-list li > a, .acct-list li > div {
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.acct-list li > a span, .acct-list li > div span {
  color: var(--stone);
  font-size: 0.9rem;
}

.acct-state {
  font-size: 0.8rem;
  color: var(--stone);
}

.acct-state[data-state=cancelled] {
  color: var(--signal, var(--stone));
}

.acct-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.acct-add summary {
  cursor: pointer;
  color: var(--accent);
  margin: 14px 0;
}

.ord-next {
  color: var(--ink) !important;
}

.ord-steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.ord-steps li {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
  border-top: 3px solid var(--mist);
  color: var(--stone);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.ord-steps li.is-done {
  border-color: var(--accent);
  color: var(--ink);
}

.ord-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.ord-pay-text {
  flex: 1 1 280px;
  min-width: 0;
}

.ord-pay-text > * + * {
  margin-top: 14px;
}

.ord-pay-text > h2 + * {
  margin-top: 0;
}

.ord-details, .ord-sum {
  margin: 0;
  display: grid;
}

.ord-details div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 6px 0;
}

.ord-details dt {
  min-width: 9em;
  color: var(--stone);
}

.ord-details dd, .ord-sum dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.ord-sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--stone);
}

.ord-sum div.is-total {
  border-top: 1px solid var(--mist);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 1.1rem;
  color: var(--ink);
}

.ord-qr {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 0.85rem;
  color: var(--stone);
}

.ord-qr svg {
  display: block;
  width: 180px;
  height: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--mist);
} /* white: a bank app reads a QR on white, in dark mode too */
.ord-spin {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border: 2px solid var(--mist);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ord-spin 1s linear infinite;
  vertical-align: -1px;
}

@keyframes ord-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ord-spin {
    animation: none;
  }
}
/* TN3c — feedback: a 1–5 rating is five radios, five down to one, shown reversed (one to five); a picked star lights
   the ones before it. Keyboard: the arrow keys move along the radios; the focused star is outlined. */
.fb-form {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.fb-stars {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  justify-content: space-between;
}

.fb-stars legend {
  float: inline-start;
  padding: 0;
  color: var(--ink);
}

.fb-row {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.fb-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.fb-row label {
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--mist);
  padding: 2px;
  border-radius: var(--r, 0);
}

.fb-row label::before {
  content: "★";
}

.fb-row label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fb-row input:checked ~ label, .fb-row label:hover, .fb-row label:hover ~ label {
  color: var(--accent);
}

.fb-row input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fb-areas {
  display: grid;
}

.fb-areas .fb-stars {
  padding: 10px 0;
  border-bottom: 1px solid var(--mist);
}

.fb-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.fb-items li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.fb-items img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  flex: none;
  background: var(--well);
  border-radius: var(--r, 0);
}

.fb-items li > div {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.page textarea {
  width: 100%;
}

.fb-ask form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.fb-ask .fb-stars {
  flex: 1 1 260px;
  justify-content: flex-start;
}

.fb-ask .page-links {
  margin-top: 10px;
}

/* TN4-2 — a row of five stars lit as rated (data-stars 1–5): the rest dimmed; without a number all five stay the theme's */
.st-row[data-stars="1"] > :nth-child(n+2), .st-row[data-stars="2"] > :nth-child(n+3), .st-row[data-stars="3"] > :nth-child(n+4),
.st-row[data-stars="4"] > :nth-child(n+5) {
  opacity: 0.22;
}

/* TN1 — a listing's highlight: the large card (two columns by two rows; a full row on a phone) with a ribbon in its
   picture. The grid fills round it (dense). Large view on a phone is one column: the highlight is a plain card there. */
.grid:has(> .card[data-feature]) {
  grid-auto-flow: row dense;
}

.grid > .card[data-feature] {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.grid > .card[data-feature] .card-media {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}

.grid > .card[data-feature] .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid > .card[data-feature] .card-name {
  font-size: 1.15em;
}

.card-ribbon {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r, 0);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 599px) {
  html[data-view=large] .grid > .card[data-feature] {
    grid-column: auto;
    grid-row: auto;
    display: block;
  }
  html[data-view=large] .grid > .card[data-feature] .card-media {
    aspect-ratio: 3/4;
  }
}
/* the prescription upload (TN7-4c): the file button in the theme's own colours */
.page input[type=file] {
  color: var(--ink);
  font: inherit;
}

.page input[type=file]::file-selector-button {
  margin-inline-end: 12px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r, 6px);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.page input[type=file]::file-selector-button:hover {
  background: var(--well);
}

/* MB4c — the phone features (hs-device.js): a quiet button in the theme's colours with its one line saying why
   (Q42), and a status line; the share sheet's button in the share row; the scanner as a full-screen dialog. Tokens only. */
.hs-dev {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  margin-block: 6px 12px;
}

.hs-dev-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r, 6px);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.hs-dev-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.hs-dev-btn svg {
  inline-size: 18px;
  block-size: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hs-dev-why {
  color: var(--stone);
  font-size: 0.8rem;
  line-height: 1.35;
}

.hs-dev-said {
  grid-column: 1/-1;
  color: var(--ink);
  font-size: 0.8rem;
}

.hs-dev-said:empty {
  display: none;
}

[data-kind=social-share] .hs-share {
  min-block-size: 36px;
  padding: 6px 12px;
}

[data-kind=social-share] .hs-dev-said {
  flex-basis: 100%;
}

form[role=search] .hs-scan {
  min-block-size: 0;
  padding: 0 10px;
  border: 0;
  background: none;
  align-self: stretch;
}

.hs-scan-box {
  inline-size: min(100vw, 520px);
  max-inline-size: 100vw;
  padding: 16px;
  border: 0;
  border-radius: var(--r, 8px);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  gap: 12px;
}

.hs-scan-box:not([open]) {
  display: none;
}

.hs-scan-box::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.hs-scan-box video {
  inline-size: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #000;
  border-radius: var(--r, 6px);
}

.tj-on-phone ul {
  padding-inline-start: 1.2em;
}

.tj-on-phone li + li {
  margin-block-start: 6px;
}
