/*
 * Copperwell shop design system: tokens, shared controls, product cards and the cart drawer.
 * Loaded on every public page. shop.css (shop, category and product pages) and checkout.css
 * (cart page, checkout, order confirmation) build on it.
 *
 * Isolation. The previous site's stylesheets are loaded wherever a design imported from it is
 * shown again (see site.css), and they style bare elements (a, button, h1, input, table). So that
 * none of them can reach the site's own surfaces:
 *   - every selector here starts with #cw, the id of <body>, which outranks all of their rules;
 *   - every class starts with "cw-";
 *   - each surface is wrapped in .cw-scope, inside which bare elements are reset.
 * An imported design must stay outside .cw-scope.
 *
 * Brand colours and shapes, taken from the previous site: amber #FFA841, navy #444469, dark brown
 * #502B09, peach #FFD29E, blush #E4BCA3, 20px card corners, pill buttons.
 *
 * Type, taken from the development site (dev.livecopperwell.com) at the owner's request: Host
 * Grotesk for everything, in three weights (300, 400, 700), and DM Serif Text Italic for a word
 * or two of a heading (.cw-accent). Both are open-licence fonts served from /fonts, where their
 * licences are kept beside them.
 */

@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/host-grotesk-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/host-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/host-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/host-grotesk-300-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/host-grotesk-700-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Text';
  src: url('/fonts/dm-serif-text-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

#cw {
  /* text */
  --cw-brown: #502b09;
  --cw-brown-soft: #7b5733;
  --cw-copper: #976334;
  /* action and accents */
  --cw-amber: #ffa841;
  --cw-amber-deep: #f59a2b;
  --cw-navy: #444469;
  --cw-navy-deep: #33334f;
  /* surfaces */
  --cw-paper: #ffffff;
  --cw-cream: #fbf6ef;
  --cw-sand: #fff1dd;
  --cw-tile: #f7efe4;
  --cw-peach: #ffd29e;
  --cw-blush: #e4bca3;
  /* lines: the soft one separates, the strong one bounds a control (3:1 against paper) */
  --cw-line: #eaded0;
  --cw-line-strong: #9c7b5c;
  /* status */
  --cw-success: #2e6b46;
  --cw-success-bg: #e9f3ec;
  --cw-error: #a4161a;
  --cw-error-bg: #fbeceb;
  /* shape */
  --cw-radius: 20px;
  --cw-radius-sm: 12px;
  --cw-pill: 999px;
  --cw-shadow: 0 24px 48px -28px rgba(80, 43, 9, 0.45);
  /* layout: as wide as the site's header, footer and content pages (1410px, or 90% of the window) */
  --cw-gutter: 5vw;
  --cw-max: 1410px;
  /* Height of the site's header, which stays at the top of the window (chrome.css). Pages start below it. */
  --cw-header: 76px;
  /* motion */
  --cw-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cw-font: 'Host Grotesk', Arial, 'Helvetica Neue', sans-serif;
  --cw-font-accent: 'DM Serif Text', Georgia, 'Times New Roman', serif;
}

@media (max-width: 1024px) {
  #cw {
    --cw-header: 66px;
  }
}

/* ---- The page itself --------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  /* A place on a page that a link leads to stops below the header. */
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

#cw {
  margin: 0;
  background: var(--cw-paper);
  font-family: var(--cw-font);
  color: var(--cw-brown);
}

/* The first stop of the keyboard: a link past the header, shown only while it has the focus. */
#cw .cw-skip {
  position: fixed;
  z-index: 100002;
  top: 8px;
  left: 8px;
  padding: 12px 20px;
  border-radius: var(--cw-pill);
  background: var(--cw-brown);
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-200%);
}

#cw .cw-skip:focus {
  transform: none;
}

/* ---- Scope ------------------------------------------------------------------------------------ */
#cw .cw-scope {
  font-family: var(--cw-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--cw-brown);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

#cw .cw-scope,
#cw .cw-scope *,
#cw .cw-scope *::before,
#cw .cw-scope *::after {
  box-sizing: border-box;
}

#cw .cw-scope :where(h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, fieldset, legend, blockquote) {
  margin: 0;
  padding: 0;
}

#cw .cw-scope :where(h1, h2, h3, h4, h5) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

#cw .cw-scope :where(dt, th, address, figcaption, blockquote) {
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  color: inherit;
}

#cw .cw-scope :where(ul, ol) {
  list-style: none;
}

#cw .cw-scope :where(fieldset) {
  min-width: 0;
  border: 0;
}

#cw .cw-scope :where(a) {
  color: inherit;
  text-decoration: none;
  background: none;
}

#cw .cw-scope :where(button) {
  appearance: none;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}

#cw .cw-scope :where(button):disabled {
  cursor: not-allowed;
}

#cw .cw-scope :where(input, select, textarea) {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

#cw .cw-scope :where(img, svg) {
  display: block;
  max-width: 100%;
}

/* A picture keeps its shape when only its width is set. */
#cw .cw-scope :where(img) {
  height: auto;
}

#cw .cw-scope :where(label) {
  display: block;
  line-height: inherit;
  vertical-align: baseline;
}

#cw .cw-scope :where(a, button, input, select, textarea, summary, video, [tabindex]):focus-visible {
  outline: 2px solid var(--cw-navy);
  outline-offset: 2px;
}

/* A film with its own controls takes the keyboard too. Its frame is cut round at the corners,
   which would cut off a ring drawn around the film itself; so the ring goes around the frame. */
@supports selector(:has(*)) {
  #cw .cw-scope :where(.cw-film, .cw-ritual__media):has(video:focus-visible) {
    outline: 2px solid var(--cw-navy);
    outline-offset: 2px;
  }

  #cw .cw-scope :where(.cw-film, .cw-ritual__media) video:focus-visible {
    outline: none;
  }
}

#cw .cw-scope [hidden] {
  display: none !important;
}

/* For screen readers only. */
#cw .cw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#cw .cw-container {
  width: 100%;
  max-width: calc(var(--cw-max) + 2 * var(--cw-gutter));
  margin-inline: auto;
  padding-inline: var(--cw-gutter);
}

/* While the cart is open the page behind it stays put. */
html.cw-locked,
html.cw-locked #cw {
  overflow: hidden;
}

/* ---- Type ------------------------------------------------------------------------------------- */
#cw .cw-eyebrow {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cw-copper);
}

/* Headings: regular weight, written as sentences, set a little tight. */
#cw .cw-display {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

#cw .cw-title {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* A word or two of a heading in the italic serif, in copper. */
#cw .cw-accent {
  font-family: var(--cw-font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--cw-copper);
}

#cw .cw-lead {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cw-brown-soft);
}

#cw .cw-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

#cw .cw-link:hover {
  color: var(--cw-copper);
}

/* A text link or text button standing on its own is only as tall as its line of text (17 to 21 px).
   Padding makes what answers to a tap at least 24 px tall; the margin gives the room back, so
   nothing moves. (A rule that gives one of these a margin of its own takes these 4 px off it.) */
#cw .cw-link,
#cw .cw-crumbs a,
#cw .cw-card__title a,
#cw .cw-line__title a,
#cw .cw-line__remove,
#cw .cw-addon__name a,
#cw .cw-prose a {
  padding-block: 4px;
  margin-block: -4px;
}

/* Text written in the admin panel (descriptions). */
#cw .cw-prose {
  font-size: 15px;
  line-height: 1.65;
  color: var(--cw-brown-soft);
}

#cw .cw-prose > * + * {
  margin-top: 0.9em;
}

#cw .cw-prose :where(p):empty {
  display: none;
}

#cw .cw-prose :where(h2, h3, h4) {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--cw-brown);
}

#cw .cw-prose :where(ul, ol) {
  padding-left: 1.2em;
}

#cw .cw-prose :where(ul) {
  list-style: disc;
}

#cw .cw-prose :where(ol) {
  list-style: decimal;
}

#cw .cw-prose :where(li) + :where(li) {
  margin-top: 0.35em;
}

#cw .cw-prose :where(a) {
  color: var(--cw-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cw .cw-prose :where(strong, b) {
  font-weight: 700;
  color: var(--cw-brown);
}

/* ---- Buttons ---------------------------------------------------------------------------------- */
#cw .cw-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: var(--cw-pill);
  background: var(--cw-amber);
  color: var(--cw-brown);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--cw-ease);
}

#cw .cw-btn:hover {
  background: var(--cw-amber-deep);
}

#cw .cw-btn:active {
  transform: scale(0.985);
}

#cw .cw-btn--dark {
  background: var(--cw-navy);
  color: #fff;
}

#cw .cw-btn--dark:hover {
  background: var(--cw-navy-deep);
}

#cw .cw-btn--ghost {
  border-color: var(--cw-line-strong);
  background: transparent;
  color: var(--cw-brown);
}

#cw .cw-btn--ghost:hover {
  border-color: var(--cw-brown);
  background: var(--cw-sand);
}

#cw .cw-btn--block {
  display: flex;
  width: 100%;
}

#cw .cw-btn--sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}

#cw .cw-btn--lg {
  min-height: 58px;
  font-size: 16px;
}

#cw .cw-btn:disabled,
#cw .cw-btn[aria-disabled='true'] {
  border-color: transparent;
  background: #efe6da;
  color: #6f5d4a;
  cursor: not-allowed;
  transform: none;
}

/* A button whose action is under way shows a turning ring in place of its label. */
#cw .cw-btn[aria-busy='true'] {
  color: transparent;
  pointer-events: none;
}

#cw .cw-btn[aria-busy='true']::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(80, 43, 9, 0.25);
  border-top-color: var(--cw-brown);
  border-radius: 50%;
  animation: cw-spin 0.7s linear infinite;
}

#cw .cw-btn--dark[aria-busy='true']::after {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

@keyframes cw-spin {
  to {
    transform: rotate(360deg);
  }
}

#cw .cw-iconbtn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cw-brown);
  transition: background-color 0.2s ease;
}

#cw .cw-iconbtn:hover {
  background: var(--cw-sand);
}

#cw .cw-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cw .cw-icon--sm {
  width: 16px;
  height: 16px;
}

#cw .cw-icon--lg {
  width: 28px;
  height: 28px;
}

/* ---- Small parts ------------------------------------------------------------------------------ */
#cw .cw-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--cw-pill);
  background: var(--cw-paper);
  color: var(--cw-brown);
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

#cw .cw-badge--dark {
  background: var(--cw-brown);
  color: #fff;
}

#cw .cw-badge--amber {
  background: var(--cw-amber);
}

#cw .cw-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-sand);
  font-size: 14px;
  line-height: 1.45;
}

#cw .cw-notice .cw-icon {
  margin-top: 1px;
}

#cw .cw-notice--error {
  background: var(--cw-error-bg);
  color: var(--cw-error);
}

#cw .cw-notice--ok {
  background: var(--cw-success-bg);
  color: var(--cw-success);
}

/* Quantity: minus, number, plus. */
#cw .cw-stepper {
  display: inline-grid;
  grid-template-columns: 44px 44px 44px;
  align-items: center;
  height: 52px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-pill);
  background: var(--cw-paper);
}

#cw .cw-stepper__btn {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: var(--cw-pill);
  transition: background-color 0.2s ease;
}

#cw .cw-stepper__btn:hover:not(:disabled) {
  background: var(--cw-sand);
}

#cw .cw-stepper__btn:disabled {
  color: #b5a28e;
}

#cw .cw-stepper__input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

#cw .cw-stepper__input::-webkit-outer-spin-button,
#cw .cw-stepper__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#cw .cw-stepper--sm {
  grid-template-columns: 34px 34px 34px;
  height: 38px;
}

#cw .cw-stepper--sm .cw-stepper__input {
  font-size: 14px;
}

/* Rating stars: an empty row with a filled row clipped over it. */
#cw .cw-stars {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 18px;
  flex: none;
  color: #d9c6b0;
}

#cw .cw-stars svg {
  width: 90px;
  height: 18px;
  max-width: none;
  fill: currentColor;
}

#cw .cw-stars__on {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--cw-amber-deep);
}

/* A placeholder while something loads. */
#cw .cw-skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #f3ebe0 25%, #faf4ec 37%, #f3ebe0 63%);
  background-size: 400% 100%;
  animation: cw-shimmer 1.4s ease infinite;
}

@keyframes cw-shimmer {
  from {
    background-position: 100% 50%;
  }
  to {
    background-position: 0 50%;
  }
}

/* ---- Form fields ------------------------------------------------------------------------------
 * The label sits inside the field and moves up once the field has a value or the cursor.
 */
#cw .cw-field {
  position: relative;
  display: block;
  min-width: 0;
}

#cw .cw-field__input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 23px 16px 7px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-paper);
  box-shadow: none;
  font-size: 16px;
  line-height: 1.3;
  color: var(--cw-brown);
  appearance: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

#cw .cw-field__input::placeholder {
  color: transparent;
}

#cw .cw-field__input:focus {
  outline: none;
  border-color: var(--cw-navy);
  box-shadow: 0 0 0 1px var(--cw-navy);
}

#cw .cw-field__label {
  position: absolute;
  top: 18px;
  left: 17px;
  max-width: calc(100% - 34px);
  overflow: hidden;
  font-size: 16px;
  line-height: 20px;
  color: var(--cw-brown-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.15s var(--cw-ease);
}

#cw .cw-field__input:focus ~ .cw-field__label,
#cw .cw-field__input:not(:placeholder-shown) ~ .cw-field__label,
#cw .cw-field__input:-webkit-autofill ~ .cw-field__label,
#cw .cw-field--select .cw-field__label {
  max-width: calc((100% - 34px) / 0.75);
  transform: translateY(-11px) scale(0.75);
}

#cw .cw-field--select .cw-field__input {
  padding-right: 40px;
  background: var(--cw-paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23502b09' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  cursor: pointer;
}

#cw .cw-field__input--area {
  height: auto;
  min-height: 112px;
  padding-top: 27px;
  resize: vertical;
}

#cw .cw-field--error .cw-field__input {
  border-color: var(--cw-error);
  box-shadow: 0 0 0 1px var(--cw-error);
}

#cw .cw-field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cw-error);
}

#cw .cw-field__error .cw-icon {
  margin-top: 1px;
}

#cw .cw-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

#cw .cw-check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border: 1px solid var(--cw-line-strong);
  border-radius: 6px;
  background: var(--cw-paper);
  appearance: none;
  cursor: pointer;
}

#cw .cw-check input:checked {
  border-color: var(--cw-navy);
  background: var(--cw-navy)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 24px no-repeat;
}

/* ---- Sections that open and close (product details, questions and answers) ------------------ */
#cw .cw-accs {
  margin-top: 24px;
  border-top: 1px solid var(--cw-line);
}

#cw .cw-acc {
  border-bottom: 1px solid var(--cw-line);
}

#cw .cw-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 400;
  list-style: none;
  cursor: pointer;
}

#cw .cw-acc summary::-webkit-details-marker {
  display: none;
}

#cw .cw-acc summary .cw-icon {
  transition: transform 0.25s var(--cw-ease);
}

#cw .cw-acc[open] summary .cw-icon {
  transform: rotate(180deg);
}

#cw .cw-acc__body {
  padding-bottom: 20px;
}

#cw .cw-acc summary :where(h2, h3, h4) {
  flex: 1;
  min-width: 0;
}

#cw .cw-acc summary .cw-icon {
  flex: none;
}

/* ---- Numbered steps ----------------------------------------------------------------------------- */
#cw .cw-steps {
  border-bottom: 1px solid var(--cw-line);
}

#cw .cw-steps > li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--cw-line);
  font-size: 18px;
  line-height: 1.5;
}

#cw .cw-steps > li > :nth-child(2) {
  flex: 1;
  min-width: 0;
}

#cw .cw-steps__number {
  flex: 0 0 64px;
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  color: var(--cw-copper);
  font-variant-numeric: tabular-nums;
}

#cw .cw-steps strong {
  font-weight: 700;
}

@media (max-width: 560px) {
  #cw .cw-steps > li {
    gap: 14px;
    font-size: 16px;
  }

  #cw .cw-steps__number {
    flex-basis: 44px;
    font-size: 24px;
  }
}

/* ---- The six yantras: a symbol is chosen and its affirmation is shown (home and product pages) -- */
#cw .cw-yantras {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--cw-radius);
  background: var(--cw-cream);
}

#cw .cw-yantras__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cw-brown-soft);
}

#cw .cw-yantras__pick {
  display: grid;
  gap: 20px;
  min-width: 0;
}

#cw .cw-yantras__tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

#cw .cw-yantras__tab {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 4px 0;
  border-radius: var(--cw-radius-sm);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: var(--cw-brown-soft);
  transition: color 0.2s ease;
}

/* The symbol stands in a ring; the ring of the chosen one is drawn and filled. */
#cw .cw-yantras__symbol {
  display: grid;
  place-items: center;
  width: min(88px, 100%);
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

#cw .cw-yantras__symbol img {
  width: 72%;
  height: auto;
}

#cw .cw-yantras__tab:hover {
  color: var(--cw-brown);
}

#cw .cw-yantras__tab:hover .cw-yantras__symbol {
  border-color: var(--cw-line-strong);
}

#cw .cw-yantras__tab[aria-selected='true'] {
  color: var(--cw-brown);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

#cw .cw-yantras__tab[aria-selected='true'] .cw-yantras__symbol {
  border-color: var(--cw-copper);
  background: var(--cw-paper);
}

/* Room for three lines, so the card keeps its height from one affirmation to the next. */
#cw .cw-yantras__panel {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding-top: 20px;
  border-top: 1px solid var(--cw-line);
}

#cw .cw-yantras__words {
  max-width: 62ch;
  font-family: var(--cw-font-accent);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--cw-copper);
}

@media (max-width: 900px) {
  #cw .cw-yantras {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  #cw .cw-yantras__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }

  #cw .cw-yantras__symbol {
    width: 72px;
  }

  /* Room for the longest affirmation, so that the card keeps its height from symbol to symbol,
     and no more: what follows it (the cap's price and button on the home page) stays close. */
  #cw .cw-yantras__panel {
    min-height: 148px;
  }

  #cw .cw-yantras__words {
    font-size: 18px;
  }
}

@media (max-width: 359px) {
  #cw .cw-yantras__panel {
    min-height: 172px;
  }
}

/* ---- Breadcrumb ------------------------------------------------------------------------------- */
#cw .cw-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cw-brown-soft);
}

#cw .cw-crumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

#cw .cw-crumbs li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cw-blush);
}

#cw .cw-crumbs a:hover {
  color: var(--cw-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cw .cw-crumbs [aria-current] {
  color: var(--cw-brown);
}

/* ---- Product grid and cards -------------------------------------------------------------------
 * One card everywhere a product is listed. The photo frame has a fixed shape: a cut-out is shown
 * whole on the tinted frame, any other photo fills it, so photos can be swapped freely.
 */
#cw .cw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 20px;
}

#cw .cw-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#cw .cw-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#cw .cw-grid > li {
  display: flex;
  min-width: 0;
}

#cw .cw-card {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

#cw .cw-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--cw-radius);
  background: var(--cw-tile);
  isolation: isolate;
}

#cw .cw-card--wide .cw-card__media {
  aspect-ratio: 16 / 11;
}

#cw .cw-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition:
    transform 0.9s var(--cw-ease),
    opacity 0.45s ease;
}

#cw .cw-card__img--cutout {
  padding: 11% 14%;
  object-fit: contain;
}

/* A second photo, shown while the pointer is on the card. */
#cw .cw-card__img--alt {
  opacity: 0;
}

#cw .cw-card__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--cw-blush);
}

#cw .cw-card__empty svg {
  width: 30%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

#cw .cw-card__badges {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

#cw .cw-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 14px;
  padding: 16px 4px 0;
}

#cw .cw-card__title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
}

#cw .cw-card__title:only-child,
#cw .cw-card__title:has(+ .cw-card__note) {
  grid-column: 1 / -1;
}

#cw .cw-card__title a {
  transition: color 0.2s ease;
}

#cw .cw-card__price {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#cw .cw-card__note {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cw-brown-soft);
}

#cw .cw-card__buy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding: 12px 4px 0;
}

/* The large cards of the signature bottles. */
#cw .cw-card--feature .cw-card__title {
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 400;
}

#cw .cw-card--feature .cw-card__price {
  font-size: 16px;
}

@media (hover: hover) {
  #cw .cw-card:hover .cw-card__img {
    transform: scale(1.045);
  }

  #cw .cw-card:hover .cw-card__img--alt {
    opacity: 1;
  }

  #cw .cw-card:hover .cw-card__title a {
    color: var(--cw-copper);
  }
}

/* One-click "add this size" buttons under a card. */
#cw .cw-quick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-pill);
  background: var(--cw-paper);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

#cw .cw-quick:hover {
  border-color: var(--cw-amber);
  background: var(--cw-amber);
}

#cw .cw-quick[aria-busy='true'] {
  opacity: 0.6;
  cursor: progress;
}

#cw .cw-quick--link {
  padding-inline: 14px;
}

#cw .cw-quick--out {
  border-style: dashed;
  background: none;
  color: #7c6a58;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* One shape for the buttons of every card in a grid, with or without a price in them: they fill
   the row and are as tall as a button that holds a size and its price. */
#cw .cw-card__buy .cw-quick {
  flex: 1 1 64px;
  min-width: 0;
  min-height: 46px;
  justify-content: center;
}

#cw .cw-card__buy--priced .cw-quick {
  padding: 6px;
  text-align: start;
  white-space: normal;
}

#cw .cw-quick__price {
  display: block;
  color: var(--cw-brown-soft);
  /* The size of the size above it: the price is what a shopper compares. */
  font-size: 13px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

/* A button alone on its row holds its size and price on one line. */
#cw .cw-card__buy--priced .cw-quick:only-child .cw-quick__option {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* Three buttons side by side need a card of 280 pixels; in a narrower one they become rows, as
   every button does in the narrow cards below. (Between 229 and 279 pixels their words touched
   the buttons' edges: laptops 1180 to 1280 wide, tablets, large phones.) */
@container (max-width: 279px) {
  #cw .cw-card__buy--priced:has(> .cw-quick:nth-child(3)) .cw-quick {
    flex-basis: 100%;
    padding-inline: 10px;
  }

  #cw .cw-card__buy--priced:has(> .cw-quick:nth-child(3)) .cw-quick__option {
    display: flex;
    flex: 1;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
  }
}

/* Narrow two-column cards keep the size and price together on a full-width tap target. */
@container (max-width: 228px) {
  #cw .cw-card__buy--priced .cw-quick {
    flex-basis: 100%;
    padding-inline: 10px;
  }

  #cw .cw-card__buy--priced .cw-quick__option {
    display: flex;
    flex: 1;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
  }
}

@media (max-width: 1100px) {
  #cw .cw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #cw .cw-grid,
  #cw .cw-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
  }

  #cw .cw-card__media {
    border-radius: 16px;
  }

  #cw .cw-card__body {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 12px;
  }

  #cw .cw-card__title {
    font-size: 15px;
  }

  #cw .cw-card__badges {
    top: 10px;
    left: 10px;
  }
}

@media (max-width: 560px) {
  #cw .cw-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* On phones the large cards sit in a row that is swiped sideways. */
  #cw .cw-grid--feature {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--cw-gutter));
    padding-inline: var(--cw-gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--cw-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #cw .cw-grid--feature::-webkit-scrollbar {
    display: none;
  }

  #cw .cw-grid--feature > li {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  /* The page being shown is named by its heading, right below. */
  #cw .cw-crumbs li:last-child:not(:first-child) {
    display: none;
  }
}

/* ---- Large product cards (the home page) ------------------------------------------------------
 * The whole card is one tinted panel: the photo at the top (a cut-out stands on the panel, any
 * other photo fills its frame), then the name and price, a line about the product, its sizes
 * and the button.
 */
#cw .cw-showgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#cw .cw-showgrid > li {
  display: flex;
  min-width: 0;
}

#cw .cw-show {
  /* Holds the card's hidden texts (for screen readers) inside it, and so inside a swiped row. */
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--cw-radius);
  background: var(--cw-tile);
}

#cw .cw-show__media {
  position: relative;
  aspect-ratio: 1;
  isolation: isolate;
}

#cw .cw-show__photo {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

#cw .cw-show__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.9s var(--cw-ease);
}

#cw .cw-show__img--cutout {
  padding: 7% 12% 0;
  object-fit: contain;
  object-position: center bottom;
}

#cw .cw-show__badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

/* The round arrow on the photo leads to the product's page. */
#cw .cw-show__open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cw-paper);
  color: var(--cw-brown);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.3s var(--cw-ease);
}

#cw .cw-show__open:hover {
  background: var(--cw-brown);
  color: #fff;
}

#cw .cw-show__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 1.9vw, 28px);
}

#cw .cw-show__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

#cw .cw-show__name {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}

#cw .cw-show__name a {
  transition: color 0.2s ease;
}

#cw .cw-show__name a:hover {
  color: var(--cw-copper);
}

#cw .cw-show__price {
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#cw .cw-show__currency {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cw-brown-soft);
}

#cw .cw-show__line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cw-brown-soft);
}

/* The sizes: equal cells in a row; the chosen one is filled. */
#cw .cw-show__choices {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  margin-top: auto;
}

#cw .cw-show__choice {
  position: relative;
  cursor: pointer;
}

#cw .cw-show__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#cw .cw-show__choice span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius-sm);
  background: var(--cw-paper);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#cw .cw-show__choice:hover input:not(:disabled):not(:checked) + span {
  border-color: var(--cw-brown);
}

/* The chosen size is filled, as on the product page. */
#cw .cw-show__choice input:checked + span {
  border-color: var(--cw-brown);
  background: var(--cw-brown);
  color: #fff;
}

#cw .cw-show__choice input:focus-visible + span {
  outline: 2px solid var(--cw-navy);
  outline-offset: 2px;
}

#cw .cw-show__choice input:disabled + span {
  border-style: dashed;
  background: none;
  color: #7c6a58;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* The button sits at the foot of the card, right under the sizes when there are any. */
#cw .cw-show__buy {
  margin-top: auto;
}

#cw .cw-show__choices + .cw-show__buy {
  margin-top: 0;
}

@media (hover: hover) {
  #cw .cw-show:hover .cw-show__img {
    transform: scale(1.035);
  }

  #cw .cw-show:hover .cw-show__open {
    transform: translate(2px, -2px);
  }
}

@media (max-width: 1100px) {
  #cw .cw-show__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* On tablets and phones the cards are a row to swipe through. */
@media (max-width: 820px) {
  #cw .cw-showgrid {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--cw-gutter));
    padding-inline: var(--cw-gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--cw-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #cw .cw-showgrid::-webkit-scrollbar {
    display: none;
  }

  #cw .cw-showgrid > li {
    flex: 0 0 min(82%, 360px);
    scroll-snap-align: start;
  }

  #cw .cw-show__head {
    flex-direction: row;
    align-items: baseline;
  }
}

/* ---- Cart buttons ----------------------------------------------------------------------------- */
/* In the header. */
#cw .cw-cartbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cw-brown);
  transition: background-color 0.2s ease;
}

#cw .cw-cartbtn:hover {
  background: rgba(80, 43, 9, 0.08);
}

#cw .cw-cartbtn .cw-icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

#cw .cw-cartcount {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--cw-pill);
  background: var(--cw-navy);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#cw .cw-cartcount[data-empty='true'] {
  display: none;
}

/* ---- Cart drawer ------------------------------------------------------------------------------ */
#cw .cw-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.45s;
}

#cw .cw-drawer-root[data-open='true'] {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

#cw .cw-drawer__veil {
  position: absolute;
  inset: 0;
  background: rgba(46, 26, 8, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

#cw .cw-drawer-root[data-open='true'] .cw-drawer__veil {
  opacity: 1;
}

#cw .cw-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  height: 100%;
  border-radius: 24px 0 0 24px;
  background: var(--cw-paper);
  box-shadow: -30px 0 70px -40px rgba(46, 26, 8, 0.6);
  transform: translateX(104%);
  transition: transform 0.45s var(--cw-ease);
}

#cw .cw-drawer-root[data-open='true'] .cw-drawer {
  transform: none;
}

#cw .cw-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 14px 28px;
}

#cw .cw-drawer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}

#cw .cw-drawer__count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--cw-pill);
  background: var(--cw-sand);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* Progress to the next merchandise threshold. */
#cw .cw-goal {
  margin: 0 28px;
  padding: 14px 16px 16px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-cream);
}

#cw .cw-goal__text {
  font-size: 14px;
  line-height: 1.45;
}

#cw .cw-goal__text strong {
  font-weight: 700;
}

#cw .cw-goal__text .cw-icon {
  display: inline-block;
  margin-right: 4px;
  vertical-align: -0.13em;
  color: var(--cw-success);
}

/* A line that starts with its tick: where it wraps, the next lines stay level with the words,
   not with the tick (16 for the tick, 4 beside it and the space that follows). */
#cw .cw-goal__text:has(> .cw-icon) {
  padding-inline-start: 24px;
  text-indent: -24px;
}

#cw .cw-goal__track {
  position: relative;
  height: 6px;
  margin-top: 10px;
  border-radius: var(--cw-pill);
  background: #ecdfd0;
}

#cw .cw-goal__fill {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 6px;
  border-radius: var(--cw-pill);
  background: var(--cw-amber-deep);
  transition: width 0.6s var(--cw-ease);
}

#cw .cw-drawer__body {
  flex: 1;
  min-height: 0;
  padding: 8px 28px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#cw .cw-drawer__loading {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

#cw .cw-drawer__loading .cw-skeleton {
  height: 104px;
}

#cw .cw-drawer__notice {
  position: sticky;
  z-index: 1;
  top: 0;
  padding-top: 8px;
}

#cw .cw-drawer__notice:empty {
  display: none;
}

/* One line of the cart; the same in the drawer, on the cart page and in the checkout summary. */
#cw .cw-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cw-line);
}

#cw .cw-line:last-child {
  border-bottom: 0;
}

#cw .cw-line__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-tile);
}

#cw .cw-line__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

#cw .cw-line__media img.cw-line__img--cutout {
  padding: 8%;
  object-fit: contain;
}

/* Name and options at the top, quantity and "Remove" at the bottom, level with the photo. */
#cw .cw-line__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  gap: 2px 12px;
  min-width: 0;
}

#cw .cw-line__title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

#cw .cw-line__title a:hover {
  color: var(--cw-copper);
}

#cw .cw-line__total {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#cw .cw-line__total del {
  display: block;
  color: var(--cw-brown-soft);
  font-size: 12px;
}

#cw .cw-line__meta {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cw-brown-soft);
}

#cw .cw-line__tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  align-self: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

#cw .cw-line__remove {
  font-size: 13px;
  color: var(--cw-brown-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cw .cw-line__remove:hover {
  color: var(--cw-error);
}

/* Category offers sit beside the items that qualify. */
#cw .cw-matka-teaser,
#cw .cw-matka-offer {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-sm);
  font-size: 14px;
  line-height: 1.5;
}

#cw .cw-matka-offer {
  background: var(--cw-cream);
}

#cw .cw-matka-offer__title,
#cw .cw-matka-offer > a {
  display: flex;
  align-items: center;
  gap: 10px;
}

#cw .cw-matka-offer__title {
  margin-bottom: 6px;
  /* The site's font is served in 300, 400 and 700 only. */
  font-weight: 700;
}

#cw .cw-matka-offer > a {
  justify-content: space-between;
  min-height: 44px;
  padding-block: 6px;
  border-bottom: 1px solid var(--cw-line);
}

#cw .cw-matka-offer > a:hover {
  color: var(--cw-copper);
}

#cw .cw-matka-offer small,
#cw .cw-matka-offer__note {
  display: block;
  color: var(--cw-brown-soft);
  font-size: 13px;
}

#cw .cw-matka-offer__note {
  margin-top: 8px;
}

/* Something that goes with what is in the cart. */
#cw .cw-addon {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--cw-radius-sm);
  background: var(--cw-cream);
}

#cw .cw-addon__label {
  margin-bottom: 12px;
}

#cw .cw-addon__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

#cw .cw-addon__item + .cw-addon__item {
  margin-top: 12px;
}

#cw .cw-addon__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cw-paper);
}

#cw .cw-addon__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

#cw .cw-addon__media img.cw-addon__img--cutout {
  padding: 5px;
  object-fit: contain;
}

#cw .cw-addon__name {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
}

#cw .cw-addon__price {
  font-size: 13px;
  color: var(--cw-brown-soft);
}

#cw .cw-drawer__foot {
  padding: 16px 28px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--cw-line);
  background: var(--cw-paper);
}

/* Keep all actions reachable when summed discounts and totals fill a short screen. */
@media (max-height: 640px) {
  #cw .cw-drawer {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #cw .cw-drawer__body {
    flex: none;
    overflow: visible;
  }
}

/* Promo code: a line that opens into a field. */
#cw .cw-coupon__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cw .cw-coupon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

#cw .cw-coupon__input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-pill);
  background: var(--cw-paper);
  box-shadow: none;
  font-size: 16px;
}

#cw .cw-coupon__input:focus {
  outline: none;
  border-color: var(--cw-navy);
  box-shadow: 0 0 0 1px var(--cw-navy);
}

#cw .cw-coupon__form .cw-btn {
  min-height: 46px;
  padding-inline: 22px;
}

#cw .cw-coupon__applied {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 6px 4px 12px;
  border-radius: var(--cw-pill);
  background: var(--cw-success-bg);
  color: var(--cw-success);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#cw .cw-coupon__applied button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

#cw .cw-coupon__applied button:hover {
  background: rgba(46, 107, 70, 0.14);
}

/* Sums: label left, amount right. */
#cw .cw-totals {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
  font-size: 14px;
  line-height: 1.4;
}

#cw .cw-totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

#cw .cw-totals__row dt {
  color: var(--cw-brown-soft);
}

#cw .cw-totals__row dd {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#cw .cw-totals__row--less dd {
  color: var(--cw-success);
}

#cw .cw-totals__row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--cw-line);
  font-size: 18px;
  font-weight: 400;
}

#cw .cw-totals__row--total dt {
  color: var(--cw-brown);
}

#cw .cw-drawer__small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cw-brown-soft);
}

#cw .cw-drawer__small a {
  color: var(--cw-brown);
}

/* Nothing in the cart yet. */
#cw .cw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 12px;
  text-align: center;
}

#cw .cw-empty__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--cw-sand);
}

#cw .cw-empty__icon .cw-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.2;
}

#cw .cw-empty__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
}

#cw .cw-empty__text {
  max-width: 34ch;
  margin-top: 6px;
  font-size: 14px;
  color: var(--cw-brown-soft);
}

#cw .cw-empty__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

#cw .cw-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-pill);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

#cw .cw-chip:hover {
  border-color: var(--cw-brown);
  background: var(--cw-sand);
}

/* The drawer greys out and waits while a change is on its way to the server. */
#cw .cw-drawer[aria-busy='true'] .cw-drawer__body,
#cw .cw-drawer[aria-busy='true'] .cw-drawer__foot {
  opacity: 0.6;
  transition: opacity 0.2s ease 0.25s;
}

@media (max-width: 560px) {
  #cw .cw-drawer {
    border-radius: 0;
  }

  #cw .cw-drawer__head {
    padding-left: 20px;
  }

  #cw .cw-goal {
    margin-inline: 20px;
  }

  #cw .cw-drawer__body {
    padding-inline: 20px;
  }

  #cw .cw-drawer__foot {
    padding-inline: 20px;
  }

  #cw .cw-line {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cw .cw-scope *,
  #cw .cw-scope *::before,
  #cw .cw-scope *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #cw .cw-drawer-root {
    transition: none;
  }
}
