.cart-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 1rem;
}

.cart-header > .brand { grid-column: 1 / -1; }
.cart-header > .site-nav { justify-self: start; }

.cart-shortcut {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: .45rem;
  font-size: clamp(.875rem, 1.39vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.cart-shortcut img { width: 1.2rem; height: auto; }

.cart-shortcut-count:not([hidden]) {
  display: inline-grid;
  min-width: 1.35rem;
  min-height: 1.35rem;
  place-items: center;
  padding-inline: .25rem;
  border-radius: 2rem;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.cart-content { padding-block: clamp(2rem, 6vw, 5.5rem) clamp(2.75rem, 6.5vw, 6rem); }
.cart-content [hidden] { display: none; }
.cart-content .text-link { text-decoration: none; }

.cart-introduction {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: .9rem 2rem;
  margin-bottom: 1.5rem;
}

.cart-introduction h1 {
  margin-bottom: .55rem;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.cart-introduction p { line-height: 1.4; }
.cart-checkout-note { font-size: .875rem; font-weight: 700; text-transform: uppercase; }

.cart-table { border-block: .16rem solid var(--ink); }

.cart-table-heading, .cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, .3fr) minmax(4.5rem, .16fr);
  align-items: center;
  gap: .6rem 1rem;
}

.cart-table-heading {
  padding-block: .85rem;
  border-bottom: 1px solid #8b8179;
  font-size: clamp(1rem, 1.39vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
}

.cart-table-heading span { text-align: center; }
.cart-table-heading h2 { font-size: inherit; font-weight: inherit; }

.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-row { min-height: 7.25rem; padding-block: .75rem; }
.cart-row + .cart-row { border-top: 1px solid #c1b9b2; }

.cart-product {
  display: grid;
  grid-template-columns: minmax(3.25rem, 5.75rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.55rem, 2vw, 1.25rem);
  min-width: 0;
  color: inherit;
  line-height: 1.3;
  text-decoration: none;
}

.cart-product strong {
  font-size: clamp(1rem, 1.39vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.cart-product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.cart-product small {
  display: block;
  margin-top: .22rem;
  color: #554b43;
  font-size: .875rem;
}

.cart-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-variant-numeric: tabular-nums;
}

.cart-quantity span { min-width: 1.55rem; text-align: center; }

.cart-quantity button, .cart-remove {
  min-height: 2.75rem;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.cart-quantity button { width: 2.75rem; padding: 0; }
.cart-quantity button:disabled { opacity: .35; cursor: default; }

.cart-remove {
  justify-self: end;
  padding: .4rem .6rem;
  border-color: #85796d;
  font-size: .875rem;
}

.cart-summary {
  width: min(100%, 36rem);
  margin: 1rem 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
  border-top: 1px solid #8b8179;
}

.cart-summary div:last-child { font-weight: 700; }
.cart-summary dd { margin: 0; }
.cart-empty { display: grid; justify-items: start; gap: 1rem; padding-block: 2rem; }
.cart-status { min-height: 1.5em; margin-block: .65rem .5rem; font-size: .875rem; }

.cart-thanks {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(21rem, 34.8vw, 38rem);
  background: #1e2631;
  color: #fff;
}

.cart-thanks > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thanks-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .68fr) minmax(0, 1.05fr);
  grid-template-areas: "note . title";
  align-items: center;
  gap: 1rem;
  padding-block: 2rem;
}

.cart-thanks-copy h2 {
  grid-area: title;
  font-size: clamp(1.75rem, 4.45vw, 4rem);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.cart-thanks-copy p {
  grid-area: note;
  font-size: clamp(1rem, 1.39vw, 1.25rem);
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

@media (max-width: 45rem) {
  .cart-header { column-gap: .6rem; }
  .cart-header > .site-nav { gap: .45rem .8rem; }
  .cart-shortcut { min-height: 2rem; gap: .25rem; }
  .cart-shortcut-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .cart-table-heading, .cart-row { grid-template-columns: minmax(0, 1fr) minmax(7.25rem, auto); }
  .cart-table-heading span { text-align: right; }
  .cart-product { grid-template-columns: minmax(2.75rem, 4rem) minmax(0, 1fr); }
  .cart-quantity { justify-content: end; gap: .2rem; }
  .cart-remove { grid-column: 2; min-height: 2.25rem; }
  .cart-thanks { min-height: auto; }
  .cart-thanks > img { position: static; aspect-ratio: 2 / 1; }
  .cart-thanks-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "note"; }
  .cart-thanks-copy h2 br { display: none; }
  .cart-thanks-copy h2 { white-space: normal; }
  .cart-thanks-copy p { line-height: 1.35; text-align: left; }
}
