.commerce-page {
  min-height: 70vh;
  padding: 145px clamp(20px, 5vw, 72px) 90px;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
}

.commerce-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.commerce-shell--narrow {
  width: min(760px, 100%);
}

.commerce-shell--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 36px;
  align-items: start;
}

.commerce-heading {
  margin-bottom: 34px;
}

.commerce-heading--center {
  text-align: center;
}

.commerce-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.commerce-heading h1,
.commerce-confirmation h1 {
  margin: 0 0 18px;
  color: #000;
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .95;
}

.commerce-heading p,
.commerce-confirmation p {
  max-width: 680px;
  margin: 0 auto;
  color: #000;
  font-size: 18px;
  line-height: 1.65;
}

.commerce-panel {
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: clamp(22px, 3vw, 36px);
}

.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: start;
}

.commerce-page[data-commerce-page="cart"] {
  padding-top: 120px;
}

.commerce-page[data-commerce-page="cart"] .commerce-heading {
  display: none;
}

.cart-page-layout {
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 22px;
  align-items: start;
}

.cart-page-layout > .commerce-panel {
  border: 0;
  padding: 0;
}

.cart-page-layout > .commerce-summary {
  position: static;
  display: grid;
  gap: 28px;
}

.cart-selection-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #bdbdbd;
  color: #000;
}

.cart-selection-head strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cart-print-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #000;
  font-family: var(--font-body);
  font-size: 13px;
}

.cart-print-button iconify-icon {
  width: 17px;
  height: 17px;
}

.cart-selection-list {
  display: grid;
}

.cart-selection-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 80px 90px;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid #bdbdbd;
  padding: 44px 0 36px;
  color: #000;
}

.cart-product-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cart-product-image img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.cart-product-details h3 {
  margin: 0 0 14px;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.cart-product-details p {
  margin: 0 0 8px;
  color: #000;
  font-size: 13px;
  line-height: 1.35;
}

.cart-availability {
  display: grid;
  gap: 4px;
  margin-top: 38px;
  color: #000;
  font-size: 13px;
  line-height: 1.35;
}

.cart-availability strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.cart-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.cart-item-links button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #000;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.1;
}

.cart-item-links button + button {
  position: relative;
}

.cart-item-links button + button::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 15px;
  margin-right: 8px;
  background: #000;
  vertical-align: -2px;
}

.cart-quantity {
  display: inline-flex;
  width: 80px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  color: #000;
  font-size: 12px;
}

.cart-quantity select {
  border: 0;
  background: transparent;
  color: #000;
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
}

.cart-line-price {
  margin: 0;
  color: #000;
  font-size: 18px;
  text-align: right;
}

.cart-summary-card,
.cart-support-card {
  border: 1px solid #d8d8d8;
  padding: 30px 26px;
  color: #000;
}

.cart-summary-card h2 {
  margin: 0 0 8px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.cart-order-code {
  margin: 0 0 22px;
  border-bottom: 1px solid #d8d8d8;
  padding-bottom: 20px;
  color: #000;
  font-size: 10px;
  font-weight: 700;
}

.cart-summary-lines {
  display: grid;
  gap: 20px;
  color: #000;
}

.cart-summary-lines div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary-lines span {
  color: #000;
  font-size: 16px;
}

.cart-summary-lines strong {
  color: #000;
  font-size: 18px;
  font-weight: 400;
}

.cart-summary-lines small {
  color: #777;
  font-size: 12px;
}

.cart-summary-lines button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #000;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
}

.cart-estimated-total {
  margin-top: 10px;
}

.cart-estimated-total strong {
  font-size: 22px;
}

.cart-details-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #000;
  margin: 38px 0 18px;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
}

.cart-details-toggle span {
  border-bottom: 1px solid currentColor;
}

.cart-details-toggle strong {
  font-size: 30px;
  line-height: 1;
}

.cart-charge-note {
  margin: 0 0 28px;
  color: #000;
  font-size: 15px;
  line-height: 1.35;
}

.cart-charge-note.is-collapsed {
  display: none;
}

.cart-checkout-button {
  width: 100%;
  min-height: 48px;
  --button-rest-bg: #000;
  --button-rest-border: #000;
}

.cart-or {
  margin: 12px 0 8px;
  color: #000;
  font-size: 13px;
  text-align: center;
}

.cart-wallet-button {
  display: grid;
  grid-template-columns: 72px 124px;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  --button-rest-bg: #fff;
  --button-rest-border: #000;
  --button-border-width: 2px;
  border: 2px solid transparent;
  background: transparent;
  color: #000;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.payment-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 72px;
  line-height: 1;
}

.payment-brand {
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
}

.payment-brand--paypal {
  width: 82px;
  height: 24px;
  justify-self: start;
}

.payment-card-icons {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-self: start;
  gap: 8px;
  line-height: 1;
}

.payment-brand--visa {
  width: 42px;
  height: 22px;
}

.payment-brand--mastercard {
  width: 34px;
  height: 22px;
}

.payment-brand--amex {
  width: 30px;
  height: 22px;
}

.cart-payment-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #000;
  font-size: 12px;
  line-height: 1.35;
}

.cart-support-card {
  display: grid;
  gap: 28px;
}

.cart-support-card details {
  color: #000;
}

.cart-support-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
  font-size: 16px;
  text-decoration: underline;
  list-style: none;
  cursor: pointer;
}

.cart-support-card summary::-webkit-details-marker {
  display: none;
}

.cart-support-card summary::after {
  content: "+";
  color: #000;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}

.cart-support-card details[open] summary::after {
  content: "-";
}

.cart-support-card p {
  margin: 14px 0 0;
  color: #000;
  font-size: 15px;
  line-height: 1.35;
}

.cart-support-card a {
  color: #000;
  text-decoration: underline;
}

.commerce-form {
  display: grid;
  gap: 18px;
}

.commerce-form label {
  display: grid;
  gap: 8px;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.commerce-form input,
.commerce-form textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  padding: 16px 18px;
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0;
  outline: none;
}

.commerce-form input:focus,
.commerce-form textarea:focus {
  border-color: #000;
}

.commerce-form-grid {
  display: grid;
  grid-template-columns: 1fr 100px 120px;
  gap: 12px;
}

.cart-checkout-button,
.cart-wallet-button,
.commerce-button {
  position: relative;
  z-index: 0;
  isolation: isolate;
  transform-origin: center;
  transition: color .24s ease, opacity .24s ease;
}

.cart-checkout-button::before,
.cart-wallet-button::before,
.commerce-button::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.cart-checkout-button::after,
.cart-wallet-button::after,
.commerce-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: var(--button-border-width, 1px) solid var(--button-rest-border, currentColor);
  background: var(--button-rest-bg, transparent);
  transform: translate(-50%, -50%);
  transition: transform .16s cubic-bezier(.55, 0, 1, .45) .05s, background-color .24s ease, border-color .24s ease;
  will-change: transform;
  pointer-events: none;
}

.commerce-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .24s ease, opacity .24s ease;
}

.commerce-button--dark {
  --button-rest-bg: #000;
  --button-rest-border: #000;
  background: transparent;
  color: #fff;
}

.commerce-button--light {
  --button-rest-bg: #fff;
  --button-rest-border: #000;
  background: transparent;
  color: #000;
}

.cart-checkout-button.is-hover-scale::after,
.cart-wallet-button.is-hover-scale::after,
.commerce-button.is-hover-scale::after {
  transform: translate(-50%, -50%) scale(.96);
}

.commerce-list {
  display: grid;
  gap: 16px;
}

.commerce-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #ececec;
  padding-bottom: 16px;
}

.commerce-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.commerce-row img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: #f5f5f5;
}

.commerce-row h3 {
  margin: 0 0 6px;
  color: #000;
  font-size: 17px;
  font-weight: 700;
}

.commerce-row p,
.commerce-row small {
  margin: 0;
  color: #000;
  font-size: 14px;
  line-height: 1.45;
}

.commerce-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.commerce-icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 18px;
}

.commerce-summary {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.commerce-summary h2,
.commerce-panel h2 {
  margin: 0 0 12px;
  color: #000;
  font-size: 22px;
  font-weight: 700;
}

.commerce-totals {
  display: grid;
  gap: 10px;
  color: #000;
  font-size: 15px;
}

.commerce-totals div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.commerce-totals strong {
  font-size: 18px;
}

.commerce-empty {
  padding: 36px;
  border: 1px solid #d8d8d8;
  text-align: center;
}

.commerce-status {
  min-height: 22px;
  margin: 0;
  color: #000;
  font-size: 14px;
}

.commerce-confirmation {
  text-align: center;
}

.commerce-confirmation .commerce-actions,
.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.fulfillment-order,
.after-sales-order {
  display: grid;
  gap: 18px;
  border-bottom: 1px solid #ececec;
  padding: 0 0 28px;
  margin-bottom: 28px;
}

.fulfillment-order:last-child,
.after-sales-order:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.commerce-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.commerce-step {
  min-height: 72px;
  border: 1px solid #d8d8d8;
  padding: 14px;
  color: #000;
  font-size: 13px;
  line-height: 1.35;
}

.commerce-step.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.commerce-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.commerce-rating button {
  width: 44px;
  height: 44px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
}

.commerce-rating button.is-selected {
  background: #000;
  color: #fff;
}

@media (max-width: 900px) {
  .commerce-page {
    padding: 118px 18px 70px;
  }

  .commerce-shell--split,
  .commerce-layout {
    grid-template-columns: 1fr;
  }

  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .commerce-summary {
    position: static;
  }

  .commerce-form-grid {
    grid-template-columns: 1fr;
  }

  .commerce-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .commerce-row-actions {
    grid-column: 1 / -1;
  }

  .cart-selection-item {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
  }

  .cart-product-image img {
    width: 76px;
    height: 76px;
  }

  .cart-quantity,
  .cart-line-price {
    grid-column: 2;
    justify-self: start;
  }

  .cart-line-price {
    text-align: left;
  }

  .cart-availability {
    margin-top: 22px;
  }

  .cart-item-links {
    margin-top: 22px;
  }

  .cart-summary-card,
  .cart-support-card {
    padding: 24px 20px;
  }

  .commerce-steps {
    grid-template-columns: 1fr 1fr;
  }
}
