:root {
  color-scheme: light;
  --ink: #1d1a16;
  --ink-soft: #6f655a;
  --forest: #1d1a16;
  --forest-deep: #1d1a16;
  --leaf: #8a6844;
  --bronze: #8a6844;
  --accent: #8a6844;
  --lime: #f4dcd4;
  --blush: #f6ddd6;
  --cream: #f3eee6;
  --paper: #fbf8f3;
  --sand: #e6dccd;
  --tan: #e2d3bd;
  --card: #ece4d8;
  --rust: #a4553a;
  --gold: #c9a57a;
  --line: rgba(29, 26, 22, 0.12);
  --shadow: 0 24px 70px rgba(29, 26, 22, 0.14);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: max(1rem, 5vw);
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  min-width: 320px;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.skip-link {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------- top strip */

.service-strip {
  align-items: center;
  background: var(--blush);
  color: #6b3a2c;
  display: flex;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 1.5rem;
  justify-content: space-between;
  letter-spacing: 0.06em;
  min-height: 36px;
  padding: 0.45rem var(--gutter);
  text-transform: uppercase;
}

.service-strip p {
  margin: 0;
}

.service-strip__meta {
  display: flex;
  gap: 1.5rem;
}

/* ------------------------------------------------------------------ header */

.site-header {
  align-items: center;
  background: rgba(251, 248, 243, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  padding: 0 var(--gutter);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  justify-self: center;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 2rem;
}

.desktop-nav a,
.link-button {
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0;
  text-decoration: none;
  transition: color 160ms ease;
}

.desktop-nav a:first-child,
.desktop-nav a:hover,
.link-button:hover {
  color: var(--ink);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-self: end;
}

.search-toggle,
.cart-button,
.close-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.search-toggle svg,
.cart-button svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 20px;
}

.search-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  gap: 0.55rem;
  justify-content: flex-start;
  min-height: 42px;
  min-width: 220px;
  padding: 0 1rem;
  transition: border-color 160ms ease;
}

.search-toggle:hover {
  border-color: var(--ink);
}

.cart-button {
  border-left: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 0 0 1rem;
}

.cart-count {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 0.35rem;
}

.search-panel {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  left: 0;
  padding: 1.5rem var(--gutter) 1.75rem;
  position: absolute;
  right: 0;
  top: 100%;
}

.search-panel label {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.search-panel div {
  display: flex;
  gap: 1rem;
  max-width: var(--max);
}

.search-panel input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  flex: 1;
  font-size: 1.1rem;
  outline: 0;
  padding: 0.7rem 0;
}

.search-panel button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ shared type */

.kicker {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto 2.25rem;
  max-width: var(--max);
}

.section-heading h2,
.promise h2,
.support-band h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.text-link {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 500;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- buttons */

.primary-button,
.secondary-button,
.outline-button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.1em;
  min-height: 52px;
  padding: 0 2rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-button {
  background: var(--ink);
  color: var(--paper);
}

.primary-button:hover {
  background: #3a332b;
  border-color: #3a332b;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.outline-button {
  background: transparent;
  color: inherit;
}

.pill-button {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 500;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1.4rem;
  text-decoration: none;
  transition: background 160ms ease;
}

.pill-button:hover {
  background: #3a332b;
}

/* ------------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(ellipse at 78% 20%, rgba(255, 250, 240, 0.75), transparent 55%),
    linear-gradient(120deg, #eadfce 0%, #ddcbb1 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(680px, calc(100vh - 112px));
  overflow: hidden;
}

.hero-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3vw 5rem var(--gutter);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6.2vw, 6.1rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
}

.hero h1 em {
  color: var(--bronze);
  font-style: normal;
}

.hero-intro {
  color: #4f463d;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 1.8rem 0 2.2rem;
  max-width: 31rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.hero-feature {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 3rem var(--gutter) 3rem 2vw;
  position: relative;
}

.hero-placeholder svg {
  fill: none;
  max-width: 280px;
  opacity: 0.5;
  stroke: var(--bronze);
  stroke-width: 1.2;
  width: 60%;
}

.hero-placeholder {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-product {
  aspect-ratio: 4 / 5;
  background: var(--card);
  border: 0;
  box-shadow: 0 30px 60px -30px rgba(60, 40, 20, 0.35);
  cursor: pointer;
  display: block;
  max-height: 560px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: min(100%, 440px);
}

.hero-product img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
  width: 100%;
}

.hero-product:hover img {
  transform: scale(1.03);
}

.hero-tag {
  align-items: flex-end;
  background: rgba(251, 248, 243, 0.94);
  bottom: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 1rem;
  padding: 0.9rem 1rem;
  position: absolute;
  right: 1rem;
  text-align: left;
}

.hero-tag small {
  color: var(--ink-soft);
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.hero-tag strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-tag > span:last-child {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ------------------------------------------------------------ value strip */

.value-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
}

.value-strip li {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  padding: 1.6rem 1.25rem;
}

.value-strip li + li {
  border-left: 1px solid var(--line);
}

.value-strip svg {
  fill: none;
  flex: 0 0 auto;
  height: 24px;
  stroke: var(--bronze);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 24px;
}

.value-strip strong,
.value-strip span {
  display: block;
}

.value-strip strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.value-strip span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  margin-top: 0.15rem;
}

/* ------------------------------------------------------- category circles */

.category-rail {
  padding: 4rem var(--gutter) 1rem;
}

.category-circles {
  display: grid;
  grid-auto-columns: minmax(140px, 1fr);
  grid-auto-flow: column;
  margin: 0 auto;
  max-width: var(--max);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-circle {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem 1rem;
  position: relative;
}

.category-circle + .category-circle::before {
  background: var(--line);
  bottom: 1rem;
  content: "";
  left: 0;
  position: absolute;
  top: 4.5rem;
  width: 1px;
}

.category-circle__image {
  aspect-ratio: 1;
  background: var(--card);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  display: block;
  overflow: hidden;
  transition: box-shadow 200ms ease;
  width: min(112px, 100%);
}

.category-circle__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  width: 100%;
}

.category-circle:hover .category-circle__image img {
  transform: scale(1.06);
}

.category-circle[aria-pressed="true"] .category-circle__image {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--ink);
}

.category-circle strong {
  font-size: 0.98rem;
  font-weight: 500;
  margin-top: 0.9rem;
}

.category-circle span:last-child {
  color: var(--ink-soft);
  font-size: 0.74rem;
  margin-top: 0.2rem;
}

/* ------------------------------------------------------ this week's edit */

.edit {
  padding: 4rem var(--gutter) 5.5rem;
}

.edit-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  margin: 0 auto;
  max-width: var(--max);
  min-height: 680px;
}

.edit-grid[data-count="2"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(480px, 1fr);
  min-height: 0;
}

.edit-grid[data-count="3"] {
  grid-template-rows: minmax(520px, 1fr);
  min-height: 0;
}

.edit-grid[data-count="4"] > :nth-child(1),
.edit-grid[data-count="4"] > :nth-child(2) {
  grid-row: span 2;
}

.edit-card {
  background: var(--paper);
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.edit-card__image {
  background: var(--card);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.edit-card__image img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform 600ms ease;
  width: 100%;
}

.edit-card:hover .edit-card__image img {
  transform: scale(1.03);
}

.edit-card .product-badge {
  left: 0.8rem;
  top: 0.8rem;
}

.edit-card__copy {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem 1rem;
}

.edit-card__copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.edit-card__copy small {
  color: var(--ink-soft);
  display: block;
  font-size: 0.74rem;
  margin-top: 0.2rem;
}

.edit-card__copy > span:last-child {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------------------------------------------------- promise band */

.promise {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255, 250, 240, 0.6), transparent 60%),
    var(--tan);
  display: grid;
  gap: 5vw;
  grid-template-columns: 0.8fr 1.2fr;
  padding: 6rem var(--gutter);
}

.promise h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.promise-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.promise-grid article {
  border-top: 1px solid rgba(29, 26, 22, 0.25);
  padding-top: 1.2rem;
}

.promise-grid article > span {
  color: var(--bronze);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.promise-grid h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 2.2rem 0 0.7rem;
}

.promise-grid p {
  color: #4f463d;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0;
}

/* ------------------------------------------------------ full collection */

.collection {
  background: var(--paper);
  padding: 6rem var(--gutter);
}

.sort-control {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: flex;
  font-family: var(--mono);
  font-size: 0.72rem;
  gap: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sort-control select {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0;
  outline: 0;
  padding: 0.7rem 0;
  text-transform: none;
}

.collection-status {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.84rem;
  gap: 0.8rem;
  margin: 0 auto 1.5rem;
  max-width: var(--max);
}

.loading-line {
  animation: pulse 1.1s infinite alternate;
  background: var(--bronze);
  height: 1px;
  width: 38px;
}

@keyframes pulse {
  to { opacity: 0.25; width: 64px; }
}

.product-grid {
  display: grid;
  gap: 2.25rem 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.store-product {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(29, 26, 22, 0.05);
}

.product-image-button {
  aspect-ratio: 0.86;
  background: var(--card);
  border: 0;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.product-image-button img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.store-product:hover img {
  transform: scale(1.035);
}

.product-badge {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.6rem;
  left: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  position: absolute;
  text-transform: uppercase;
  top: 0.7rem;
  z-index: 2;
}

.product-badge:empty {
  display: none;
}

.quick-add {
  background: rgba(251, 248, 243, 0.95);
  bottom: 0.7rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  left: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0;
  padding: 0.8rem;
  position: absolute;
  right: 0.7rem;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: 180ms ease;
}

.store-product:hover .quick-add,
.product-image-button:focus-visible .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.product-copy {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 0.95rem 1rem;
}

.product-copy h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.product-meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0.3rem 0 0;
}

.product-price {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.load-more {
  display: flex;
  margin: 3rem auto 0;
}

/* --------------------------------------------------------- support + foot */

.support-band {
  align-items: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 6rem var(--gutter);
  text-align: center;
}

.support-band p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0.9rem 0 1.8rem;
  max-width: 34rem;
}

footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 4.5rem var(--gutter) 2rem;
}

.footer-main {
  display: grid;
  gap: 3rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin: 0 auto;
  max-width: var(--max);
}

.brand-footer {
  display: inline-block;
}

.footer-main > div:first-child p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

.footer-main h3 {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}

.footer-main button,
.footer-main > div > a:not(.brand) {
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: block;
  font-size: 0.86rem;
  margin: 0.7rem 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.footer-main button:hover,
.footer-main > div > a:not(.brand):hover {
  color: var(--bronze);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  font-family: var(--mono);
  font-size: 0.68rem;
  justify-content: space-between;
  margin: 4rem auto 0;
  max-width: var(--max);
  padding-top: 1.5rem;
}

.scrim {
  background: rgba(6, 24, 19, 0.56);
  inset: 0;
  position: fixed;
  z-index: 40;
  backdrop-filter: blur(3px);
}

.drawer {
  background: var(--paper);
  bottom: 0;
  max-width: 480px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 260ms ease;
  width: min(100%, 480px);
  z-index: 50;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-header,
.modal-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
}

.drawer-header .kicker,
.modal-top .kicker {
  margin-bottom: 0.35rem;
}

.drawer-header h2,
.modal-top h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 0;
}

.close-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.5rem;
  height: 42px;
  width: 42px;
}

.cart-drawer {
  display: flex;
  flex-direction: column;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.75rem;
}

.cart-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 84px 1fr;
  padding: 1rem 0;
}

.cart-item img {
  aspect-ratio: 1;
  background: var(--cream);
  object-fit: cover;
  width: 84px;
}

.cart-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.cart-item p {
  color: var(--ink-soft);
  font-size: 0.75rem;
  margin: 0.2rem 0;
}

.cart-item-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
}

.quantity-control {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
}

.quantity-control button {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 30px;
  width: 30px;
}

.quantity-control span {
  font-size: 0.78rem;
  min-width: 24px;
  text-align: center;
}

.remove-item {
  background: none;
  border: 0;
  color: var(--rust);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0;
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.75rem 2rem;
}

.cart-subtotal {
  display: flex;
  font-size: 1.05rem;
  justify-content: space-between;
}

.cart-footer > p {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.full-button {
  width: 100%;
}

.empty-cart {
  padding: 4rem 1rem;
  text-align: center;
}

.empty-cart svg {
  fill: none;
  height: 56px;
  stroke: var(--leaf);
  stroke-width: 1.2;
  width: 56px;
}

.empty-cart h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 1rem 0 0.4rem;
}

.empty-cart p {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.modal {
  background: var(--paper);
  box-shadow: var(--shadow);
  display: none;
  left: 50%;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -48%);
  width: min(94vw, 980px);
  z-index: 60;
}

.modal.is-open {
  display: block;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 590px;
}

.product-detail-image {
  background: var(--cream);
}

.product-detail-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.product-detail-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.detail-price {
  font-size: 1.15rem;
  font-weight: 600;
}

.product-description {
  color: var(--ink-soft);
  line-height: 1.7;
  white-space: pre-line;
}

.variant-picker {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.variant-picker label {
  font-size: 0.75rem;
  font-weight: 700;
}

.variant-picker select {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 48px;
  padding: 0 0.8rem;
}

.product-detail-image {
  display: flex;
  flex-direction: column;
}

.product-detail-image > img {
  flex: 1;
  min-height: 0;
}

.detail-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem;
}

.detail-thumbs button {
  background: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  flex: 0 0 auto;
  height: 60px;
  overflow: hidden;
  padding: 0;
  width: 60px;
}

.detail-thumbs button[aria-pressed="true"] {
  border-color: var(--forest);
}

.detail-thumbs img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-description {
  max-height: 14rem;
  overflow-y: auto;
}

.ask-chat-button {
  margin-top: 0.7rem;
}

.category-chips {
  display: flex;
  gap: 0.5rem;
  margin: -0.5rem auto 1.5rem;
  max-width: var(--max);
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.category-chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 38px;
  padding: 0 1.1rem;
  transition: border-color 160ms ease;
}

.category-chip:hover {
  border-color: var(--ink);
}

.category-chip[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.detail-notes {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
}

.detail-notes span {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.checkout-modal {
  max-width: 1140px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
}

.checkout-fields {
  padding: 1rem 2rem 2rem;
}

.form-section {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 1.5rem 0;
}

.form-section h3,
.form-section legend,
.checkout-summary h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding: 0;
}

.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.field-wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field > span {
  font-size: 0.72rem;
  font-weight: 700;
}

.field em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  min-height: 46px;
  outline: 0;
  padding: 0.7rem;
  resize: vertical;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(35, 115, 91, 0.12);
}

.field small {
  color: var(--rust);
  min-height: 0.8rem;
}

.payment-options {
  display: grid;
  gap: 0.7rem;
}

.payment-options > label {
  align-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr auto;
  padding: 1rem;
}

.payment-options label:has(input:checked) {
  background: rgba(217, 239, 111, 0.2);
  border-color: var(--leaf);
}

.payment-options input {
  accent-color: var(--leaf);
}

.payment-options strong,
.payment-options small {
  display: block;
}

.payment-options small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.payment-mark {
  color: var(--leaf);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.consent {
  align-items: start;
  display: flex;
  font-size: 0.72rem;
  gap: 0.6rem;
  line-height: 1.5;
  margin-top: 0.9rem;
}

.checkout-summary {
  background: var(--cream);
  padding: 2rem;
}

.checkout-mini-item {
  display: grid;
  font-size: 0.76rem;
  gap: 0.8rem;
  grid-template-columns: 48px 1fr auto;
  margin-bottom: 1rem;
}

.checkout-mini-item img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 48px;
}

.checkout-mini-item strong,
.checkout-mini-item span {
  display: block;
}

.checkout-mini-item span {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.checkout-summary dl {
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
  padding-top: 1rem;
}

.checkout-summary dl div {
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
  margin: 0.7rem 0;
}

.checkout-summary dd {
  font-weight: 700;
  margin: 0;
}

.secure-note {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.65rem;
  gap: 0.45rem;
  line-height: 1.4;
}

.secure-note svg {
  fill: none;
  height: 18px;
  min-width: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.form-alert {
  background: #fae7df;
  border-left: 4px solid var(--rust);
  color: #77321f;
  margin: 0 2rem 2rem;
  padding: 1rem;
}

.order-modal {
  max-width: 650px;
  padding: 3.5rem;
}

.order-result-icon {
  align-items: center;
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  font-size: 1.8rem;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.order-modal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 1.2rem 0 0.7rem;
}

.order-reference {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.order-totals,
.order-timeline {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}

.order-totals div {
  display: flex;
  justify-content: space-between;
  margin: 0.7rem 0;
}

.order-timeline article {
  border-left: 2px solid var(--sand);
  padding: 0 0 1.1rem 1rem;
  position: relative;
}

.order-timeline article::before {
  background: var(--leaf);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: -5px;
  position: absolute;
  top: 0.35rem;
  width: 8px;
}

.order-timeline strong,
.order-timeline small {
  display: block;
}

.order-timeline small {
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.order-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.policy-modal {
  max-width: 760px;
}

.policy-content {
  color: var(--ink-soft);
  line-height: 1.8;
  padding: 2rem;
  white-space: pre-line;
}

.error-state,
.setup-state {
  border: 1px solid var(--line);
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
}

.error-state h3,
.setup-state h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.error-state p,
.setup-state p {
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand {
    justify-self: start;
  }

  .search-toggle {
    min-width: 0;
  }

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

  .value-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-strip li:nth-child(3) {
    border-left: 0;
  }

  .value-strip li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .promise {
    grid-template-columns: 1fr;
  }

  .promise h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .service-strip {
    justify-content: center;
    text-align: center;
  }

  .service-strip__meta {
    display: none;
  }

  .site-header {
    gap: 0.75rem;
    min-height: 64px;
    padding: 0 1rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .search-toggle {
    border: 0;
    min-height: 40px;
    padding: 0 0.5rem;
  }

  .search-toggle span,
  .cart-label {
    display: none;
  }

  .cart-button {
    padding-left: 0.75rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-copy {
    padding: 3.5rem 1rem 1rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .hero-feature {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero-product {
    aspect-ratio: 1;
    width: 100%;
  }

  .value-strip {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .value-strip li {
    padding: 1rem 0;
  }

  .value-strip li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .category-rail {
    padding: 2.5rem 0 0.5rem;
  }

  .category-circles {
    grid-auto-columns: 112px;
    padding: 0 0.5rem;
  }

  .category-circle {
    padding: 0.5rem 0.5rem 1rem;
  }

  .category-circle + .category-circle::before {
    display: none;
  }

  .category-circle__image {
    width: 88px;
  }

  .category-circle strong {
    font-size: 0.86rem;
  }

  .edit,
  .collection {
    padding: 3.5rem 1rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .edit-grid,
  .edit-grid[data-count="2"],
  .edit-grid[data-count="3"] {
    gap: 0.6rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .edit-grid > * {
    grid-row: auto !important;
  }

  .edit-grid > :first-child {
    grid-column: 1 / -1;
  }

  .edit-card__image {
    aspect-ratio: 0.9;
    flex: none;
  }

  .edit-grid > :first-child .edit-card__image {
    aspect-ratio: 1.1;
  }

  .edit-card__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .promise {
    padding: 4rem 1rem;
  }

  .promise-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .promise-grid h3 {
    margin-top: 1rem;
  }

  .product-grid {
    gap: 1.25rem 0.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-copy {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .product-copy h3 {
    font-size: 0.94rem;
  }

  .support-band {
    padding: 4rem 1rem;
  }

  footer {
    padding: 3.5rem 1rem 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }

  .product-detail {
    display: block;
  }

  .product-detail-image {
    height: 42vh;
  }

  .product-detail-copy {
    padding: 2rem 1.2rem;
  }

  .checkout-modal {
    bottom: 0;
    left: 0;
    max-height: 96vh;
    top: auto;
    transform: none;
    width: 100%;
  }

  .checkout-modal.is-open {
    transform: none;
  }

  .checkout-layout {
    display: block;
  }

  .checkout-fields {
    padding-inline: 1rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .checkout-summary {
    padding: 1.5rem 1rem;
  }

  .order-modal {
    padding: 3rem 1.2rem 2rem;
  }
}

@media (max-width: 400px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Customer self-service
   Order tracking, lookup, and problem/return reporting — the surfaces a
   customer reaches for when something has gone right, or gone wrong.
   ========================================================================== */

.order-progress {
  display: grid;
  gap: 0;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
}

.order-progress li {
  position: relative;
  text-align: center;
}

.order-progress li::before {
  background: var(--sand);
  content: "";
  height: 2px;
  left: -50%;
  position: absolute;
  top: 7px;
  width: 100%;
  z-index: 0;
}

.order-progress li:first-child::before { display: none; }
.order-progress li.is-done::before,
.order-progress li.is-current::before { background: var(--leaf); }

.order-progress__dot {
  background: var(--paper);
  border: 2px solid var(--sand);
  border-radius: 50%;
  display: block;
  height: 16px;
  margin: 0 auto 0.55rem;
  position: relative;
  transition: background 300ms ease, border-color 300ms ease;
  width: 16px;
  z-index: 1;
}

.order-progress li.is-done .order-progress__dot { background: var(--leaf); border-color: var(--leaf); }
.order-progress li.is-current .order-progress__dot {
  animation: idun-pulse-ring 2.4s var(--ease-out, ease-out) infinite;
  background: var(--leaf);
  border-color: var(--leaf);
}

.order-progress__label {
  color: var(--ink-soft);
  display: block;
  font-size: 0.66rem;
  line-height: 1.35;
  padding: 0 0.2rem;
}

.order-progress li.is-current .order-progress__label { color: var(--ink); font-weight: 700; }

@media (max-width: 560px) {
  .order-progress { grid-auto-flow: row; gap: 0; }
  .order-progress li { display: grid; gap: 0.6rem; grid-template-columns: 16px 1fr; text-align: left; }
  .order-progress li::before { height: 100%; left: 7px; top: -50%; width: 2px; }
  .order-progress__dot { margin: 2px 0 0; }
  .order-progress__label { font-size: 0.78rem; padding: 0; }
}

.order-cancelled {
  background: rgba(189, 87, 55, 0.1);
  border-left: 3px solid var(--rust);
  border-radius: 0 8px 8px 0;
  color: #7c3520;
  font-size: 0.82rem;
  padding: 0.75rem 0.9rem;
}

.order-facts {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.2rem 0;
}

.order-facts > div {
  background: var(--cream);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.order-facts span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.order-items-list { display: grid; gap: 0.4rem; margin: 1.2rem 0; }

.order-item-row {
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 0.84rem;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 0.45rem;
}

.order-section { border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.2rem; }
.order-section h3 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 0.9rem; }
.order-note { color: var(--ink-soft); font-size: 0.76rem; margin-top: 0.8rem; }

.tracking-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.9rem;
  padding: 1rem;
}

.tracking-card header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.tracking-card header strong { display: block; font-size: 0.9rem; }
.tracking-card header span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
.tracking-card .secondary-button { font-size: 0.72rem; min-height: 38px; padding: 0 0.9rem; }

.request-list { display: grid; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.request-list li {
  background: var(--cream);
  border-radius: 10px;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
}
.request-list strong { font-size: 0.82rem; }
.request-list span { color: var(--ink-soft); font-size: 0.74rem; }
.request-list em { color: var(--leaf); font-size: 0.76rem; font-style: normal; }

.order-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

.lookup-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.lookup-form label { display: grid; gap: 0.4rem; }
.lookup-form label > span,
.lookup-form .field-label {
  font-size: 0.72rem;
  font-weight: 700;
}
.lookup-form .field-label em { color: var(--ink-soft); font-weight: 500; }
.lookup-hint { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.6; margin: 0; }
.request-photos { display: grid; gap: 0.5rem; }
.muted { color: var(--ink-soft); }

/* ------------------------------------------------------------------- chat */

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.chat-root {
  bottom: 1rem;
  position: fixed;
  right: 1rem;
  z-index: 45;
}

.chat-root.is-open {
  z-index: 55;
}

.chat-launcher {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font: 500 0.86rem var(--sans);
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.2rem;
}

.chat-launcher svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.chat-root.is-open .chat-launcher {
  display: none;
}

.chat-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: min(620px, calc(100vh - 2rem));
  width: min(380px, calc(100vw - 2rem));
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.chat-head strong {
  display: block;
  font: 500 1.05rem var(--serif);
}

.chat-status {
  font: 0.68rem var(--mono);
  letter-spacing: 0.08em;
  opacity: 0.75;
  text-transform: uppercase;
}

.chat-close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
}

.chat-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  padding: 1rem;
}

.chat-msg {
  max-width: 86%;
}

.chat-msg p {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0.6rem 0.8rem;
}

.chat-bot p,
.chat-team p {
  background: var(--cream);
}

.chat-team p {
  border-left: 3px solid var(--accent);
}

.chat-me {
  align-self: flex-end;
}

.chat-me p {
  background: var(--ink);
  color: var(--paper);
}

.chat-msg a {
  color: inherit;
}

.chat-who {
  color: var(--ink-soft);
  display: block;
  font: 0.66rem var(--mono);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.chat-typing p {
  display: flex;
  gap: 0.25rem;
}

.chat-typing span {
  animation: chat-dot 1s infinite ease-in-out;
  background: var(--ink-soft);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}

.chat-products {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-product {
  background: var(--card);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 0.25rem;
  padding: 0 0 0.5rem;
  text-align: left;
}

.chat-product img,
.chat-product-blank {
  aspect-ratio: 1;
  background: var(--sand);
  object-fit: cover;
  width: 100%;
}

.chat-product-title {
  display: -webkit-box;
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 0.5rem;
}

.chat-product-price {
  font: 0.72rem var(--mono);
  padding: 0 0.5rem;
}

.chat-checkout {
  border: 1px solid var(--line);
  font-size: 0.86rem;
  padding: 0.9rem;
}

.chat-checkout-title {
  font: 500 1rem var(--serif);
  margin: 0 0 0.5rem;
}

.chat-checkout ul {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
}

.chat-checkout li {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.chat-checkout .chat-total {
  border-top: 1px solid var(--line);
  font-weight: 600;
  margin-top: 0.3rem;
  padding-top: 0.4rem;
}

.chat-checkout p {
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.chat-checkout .chat-error {
  color: var(--rust);
  margin: 0.5rem 0 0;
}

.chat-actions {
  display: grid;
  gap: 0.5rem;
}

.chat-actions a {
  text-align: center;
  text-decoration: none;
}

.chat-form {
  align-items: flex-end;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
}

.chat-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  flex: 1;
  font: 16px/1.4 var(--sans);
  max-height: 120px;
  padding: 0.6rem 0.7rem;
  resize: none;
}

.chat-send {
  background: var(--ink);
  border: 0;
  color: var(--paper);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.chat-send svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

@media (max-width: 520px) {
  .chat-root.is-open {
    inset: 0;
  }

  .chat-root.is-open .chat-panel {
    border: 0;
    height: 100dvh;
    width: 100vw;
  }
}
