/* =========================================================
   Morrow checkout
   1. Tokens & base
   2. Page shell & header
   3. Express checkout & form intro
   4. Fields & controls
   5. Shipping method
   6. Payment
   7. Order summary
   8. Footer
   9. Responsive
   ========================================================= */

/* 1. Tokens & base
   ========================================================= */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --ink: #1d1d19;
  --ink-soft: #55514a;
  --muted: #6f6a62;
  --placeholder: #948f86;
  --line: #dcd7ce;
  --line-soft: #eae6df;
  --paper: #ffffff;
  --paper-warm: #f7f5f0;
  --field: #ffffff;
  --accent: #1c4336;
  --accent-hover: #13352a;
  --focus-ring: rgba(28, 67, 54, 0.14);

  --page-max: 1240px;
  --form-max: 600px;
  --page-gutter: clamp(24px, 4.2vw, 52px);
  --mobile-gutter: clamp(20px, 4vw, 24px);
  --summary-gutter: clamp(34px, 4vw, 52px);
  --radius: 7px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: #dce9e1;
  color: var(--ink);
}

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

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  content: "";
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* 2. Page shell & header
   ========================================================= */
.site-header {
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-max);
  min-height: 84px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  opacity: 0.72;
}

.brand__mark {
  width: 25px;
  height: 25px;
}

.brand__name {
  padding-right: 0.18em;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}

.cart-link:hover {
  color: var(--ink);
}

.cart-link .icon {
  width: 17px;
  height: 17px;
}

.cart-link__count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 2px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.checkout {
  display: grid;
  grid-template-areas: "main summary";
  grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr);
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  align-items: stretch;
}

.checkout__main {
  grid-area: main;
  min-width: 0;
  padding: 36px var(--page-gutter) 0;
}

.checkout__shell {
  width: 100%;
  max-width: var(--form-max);
}

/* 3. Express checkout & form intro
   ========================================================= */
.eyebrow {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.express__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.express-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

.express-button__icon {
  width: 17px;
  height: 17px;
  margin-right: 7px;
}

.express-button--shop-pay {
  background: #5a31f4;
  color: #fff;
}

.express-button--shop-pay:hover {
  background: #4a22dd;
}

.express-button--paypal {
  background: #ffc439;
  color: #003087;
}

.express-button--paypal:hover {
  background: #f6b92e;
}

.express-button--google-pay {
  gap: 7px;
  background: #000;
  color: #fff;
}

.express-button--google-pay:hover {
  background: #242424;
}

.google-g {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.paypal-word {
  color: #003087;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.paypal-word span {
  color: #009cde;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 29px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line-soft);
}

.form-section + .form-section {
  margin-top: 33px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2,
.order-summary__head h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.text-link {
  color: var(--ink-soft);
  font-size: 13px;
  text-underline-offset: 3px;
  text-decoration-color: #aaa49a;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* 4. Fields & controls
   ========================================================= */
.fields {
  display: grid;
  gap: 13px;
}

.field {
  min-width: 0;
}

.field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.label-hint {
  color: var(--muted);
  font-weight: 400;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.field input,
.field select,
.discount__form input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #d6d1c8;
  border-radius: 6px;
  background-color: var(--field);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:hover,
.field select:hover,
.discount__form input:hover {
  border-color: #bdb7ad;
}

.field input:focus,
.field select:focus,
.discount__form input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field input::placeholder,
.discount__form input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.field select {
  padding-right: 38px;
  background-image: 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.5 6 6.5l5-5' fill='none' stroke='%23615c53' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  appearance: none;
  cursor: pointer;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 46px;
}

.input-with-icon__icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 19px;
  height: 19px;
  color: #858077;
  pointer-events: none;
  transform: translateY(-50%);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.checkbox input {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  place-content: center;
  border: 1px solid #c6c0b6;
  border-radius: 4px;
  background: #fff;
  appearance: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.checkbox input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-bottom: 1.6px solid #fff;
  border-left: 1.6px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 120ms ease;
}

.checkbox input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.checkbox input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.checkbox input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox:hover input:not(:checked) {
  border-color: #9f978c;
}

/* 5. Shipping method
   ========================================================= */
.choice-list {
  display: grid;
  gap: 9px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease,
    background-color 150ms ease;
}

.choice-card:hover {
  border-color: #b9b2a8;
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: #fbfcfa;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.radio-visual {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #bdb7ad;
  border-radius: 50%;
  background: #fff;
  transition: border-color 150ms ease;
}

.radio-visual::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 130ms ease;
}

.choice-card:has(input:checked) .radio-visual,
.payment-option:has(input:checked) .radio-visual {
  border-color: var(--accent);
}

.choice-card:has(input:checked) .radio-visual::after,
.payment-option:has(input:checked) .radio-visual::after {
  transform: scale(1);
}

.choice-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.choice-card__title {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.choice-card__detail {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.choice-card__price {
  margin-left: auto;
  padding-left: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 6. Payment
   ========================================================= */
.secure-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.secure-copy .icon {
  width: 14px;
  height: 14px;
}

.payment-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.payment-option + .payment-option {
  border-top: 1px solid var(--line);
}

.payment-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.payment-option__header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  background: #fbfaf8;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.payment-option__header:hover {
  background: #f8f6f2;
}

.payment-option:has(input:checked) .payment-option__header {
  background: #f6f8f4;
}

.payment-option:has(input:focus-visible) .payment-option__header {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.payment-option__name {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.payment-option__body {
  display: none;
  padding: 16px;
  background: #fff;
}

.payment-option:has(input:checked) .payment-option__body {
  display: block;
}

.payment-option__body .field > label {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.payment-option__body .field input {
  height: 46px;
}

.payment-option__body .fields {
  gap: 12px;
}

.card-brands {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.card-brand {
  display: inline-grid;
  width: 35px;
  height: 23px;
  place-items: center;
  border: 1px solid #e2ded7;
  border-radius: 3px;
  background: #fff;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}

.card-brand--visa {
  color: #1a1f71;
  font-size: 8px;
  font-style: italic;
  letter-spacing: 0.025em;
}

.card-brand--mastercard {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-brand--mastercard i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eb001b;
}

.card-brand--mastercard i + i {
  margin-left: -5px;
  background: #f79e1b;
  opacity: 0.92;
}

.card-brand--amex {
  border-color: #2c6fbf;
  background: #2c6fbf;
  color: #fff;
  font-size: 6.5px;
  letter-spacing: 0.02em;
}

.paypal-word--small {
  margin-left: auto;
  font-size: 16px;
}

.redirect-note {
  padding: 2px 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.billing {
  margin-top: 16px;
}

.billing .checkbox {
  margin-top: 0;
}

.billing-address {
  display: none;
  margin-top: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf8;
}

.billing:has(#same-billing:not(:checked)) .billing-address {
  display: block;
  animation: billing-reveal 180ms ease both;
}

@keyframes billing-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.billing-address__title {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.billing-address .fields {
  gap: 12px;
}

.pay-button {
  width: 100%;
  min-height: 52px;
  margin-top: 21px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(20, 43, 34, 0.16);
  transition: background-color 150ms ease, transform 150ms ease,
    box-shadow 150ms ease;
}

.pay-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 5px rgba(20, 43, 34, 0.18);
}

.pay-button:focus-visible {
  outline-color: var(--ink);
}

.pay-button:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* 7. Order summary
   ========================================================= */
.checkout__summary {
  grid-area: summary;
  position: relative;
  z-index: 0;
  padding: 36px var(--summary-gutter) 52px;
  border-left: 1px solid var(--line);
  background: var(--paper-warm);
  box-shadow: 100vw 0 0 var(--paper-warm);
}

.summary-sticky {
  width: 100%;
}

.order-summary__toggle {
  display: none;
}

.order-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}

.order-summary__head > span {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.order-list {
  display: grid;
  gap: 17px;
}

.order-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.order-item__media {
  position: relative;
  width: 68px;
  aspect-ratio: 4 / 5;
}

.order-item__media img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(29, 29, 25, 0.055);
  border-radius: 5px;
  object-fit: cover;
}

.order-item__qty {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid #e3ded4;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(29, 29, 25, 0.1);
}

.order-item__info {
  min-width: 0;
}

.order-item__info h3 {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-item__variant {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(29, 29, 25, 0.1);
  border-radius: 50%;
}

.swatch--olive {
  background: #646743;
}

.swatch--oat {
  background: #ddcfba;
}

.swatch--saddle {
  background: #91532f;
}

.order-item__price {
  align-self: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.discount {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.discount > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.4;
}

.discount > summary:hover {
  color: var(--ink);
}

.discount__chevron {
  width: 14px;
  height: 14px;
  color: #8e887e;
  transition: transform 180ms ease;
}

.discount[open] .discount__chevron {
  transform: rotate(180deg);
}

.discount__form {
  display: flex;
  gap: 8px;
  padding: 0 0 15px;
}

.discount__form input {
  min-width: 0;
  height: 42px;
  flex: 1;
  font-size: 13px;
}

.discount__form button {
  height: 42px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid #c9c3b9;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease;
}

.discount__form button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.totals {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.totals__row dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.totals__row--grand {
  margin-top: 7px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.totals__row--grand dt {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.totals__row--grand dd {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.currency {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.summary-meta {
  display: grid;
  gap: 7px;
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11.5px;
}

.summary-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 500;
}

.summary-secure .icon {
  width: 13px;
  height: 13px;
}

.summary-meta .text-link {
  font-size: 11.5px;
}

/* 8. Footer
   ========================================================= */
.site-footer {
  margin-top: 44px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 17px;
  margin-bottom: 11px;
}

.policy-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.policy-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  max-width: none;
}

/* 9. Responsive
   ========================================================= */
@media (min-width: 1024px) and (min-height: 780px) {
  .summary-sticky {
    position: sticky;
    top: 32px;
  }
}

@media (max-width: 1023px) {
  .site-header__inner {
    max-width: calc(var(--form-max) + var(--mobile-gutter) * 2);
    min-height: 72px;
    padding: 0 var(--mobile-gutter);
  }

  .brand__name {
    font-size: 18px;
  }

  .checkout {
    display: flex;
    max-width: none;
    flex-direction: column;
  }

  .checkout__summary {
    padding: 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    border-left: 0;
    box-shadow: none;
  }

  .summary-sticky {
    position: static;
  }

  .order-summary__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px max(var(--mobile-gutter), calc((100% - var(--form-max)) / 2));
    color: var(--ink);
    background: transparent;
  }

  .order-summary__toggle-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
  }

  .order-summary__toggle-meta {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .order-summary__toggle-total {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .order-summary__chevron {
    width: 16px;
    height: 16px;
    color: var(--ink-soft);
    transition: transform 180ms ease;
  }

  .order-summary[open] .order-summary__chevron {
    transform: rotate(180deg);
  }

  .order-summary[open] .order-summary__toggle {
    border-bottom: 1px solid var(--line-soft);
  }

  .order-summary__body {
    padding: 20px max(var(--mobile-gutter), calc((100% - var(--form-max)) / 2)) 27px;
  }

  .order-summary__head {
    display: none;
  }

  .checkout__main {
    padding: 29px var(--mobile-gutter) 0;
  }

  .checkout__shell {
    margin: 0 auto;
  }

  .order-list {
    gap: 15px;
  }

  .site-footer {
    margin-top: 38px;
    padding-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .brand__mark {
    width: 23px;
    height: 23px;
  }

  .brand__name {
    font-size: 17px;
  }

  .cart-link {
    font-size: 12px;
  }

  .express__buttons {
    gap: 7px;
  }

  .express-button {
    height: 46px;
    padding: 0 5px;
    font-size: 12px;
  }

  .express-button__icon {
    width: 15px;
    height: 15px;
    margin-right: 5px;
  }

  .google-g {
    width: 17px;
    height: 17px;
  }

  .express-button--google-pay {
    gap: 5px;
  }

  .paypal-word {
    font-size: 17px;
  }

  .or-divider {
    margin: 22px 0 26px;
  }

  .form-section + .form-section {
    margin-top: 30px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  /* Keep iOS from zooming when a field receives focus. */
  .field input,
  .field select,
  .discount__form input {
    font-size: 16px;
  }

  .field > label {
    font-size: 13px;
  }

  .field input,
  .field select {
    height: 49px;
  }

  .checkbox {
    font-size: 12.5px;
  }

  .choice-card {
    min-height: 61px;
    padding: 13px 14px;
  }

  .choice-card__title {
    font-size: 13px;
  }

  .secure-copy {
    font-size: 11.5px;
  }

  .payment-option__header {
    gap: 10px;
    padding: 14px;
  }

  .payment-option__name {
    font-size: 13px;
  }

  .payment-option__body {
    padding: 14px;
  }

  .card-brand {
    width: 32px;
    height: 22px;
  }

  .card-brands {
    gap: 3px;
  }

  .order-item {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .order-item__media {
    width: 62px;
  }

  .order-item__info h3 {
    font-size: 13px;
  }

  .order-item__variant {
    font-size: 11.5px;
  }

  .summary-meta {
    margin-top: 21px;
  }

  .site-footer {
    margin-top: 34px;
    padding-top: 19px;
    padding-bottom: 26px;
  }
}

@media (max-width: 359px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .express-button span {
    font-size: 11.5px;
  }

  .express-button__icon {
    display: none;
  }

  .cart-link .icon {
    display: none;
  }
}

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