.basket-page {
  --basket-divider: #dedede;
  width: min(calc(100% - 48px), 1200px);
  margin: 54px auto 60px;
}

.basket-heading,
.basket-empty h1 {
  margin: 0 0 34px;
  text-align: center;
  font: 400 clamp(30px, 3vw, 38px)/1.2 var(--editorial);
}

.basket-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 14vw, 215px) 128px clamp(86px, 10vw, 150px);
  gap: 20px;
  align-items: start;
}

.basket-column-headings {
  padding: 10px 0 12px;
}

.basket-items,
.basket-discounts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.basket-row {
  border-top: 1px solid var(--basket-divider);
  padding: 40px 0;
}

.basket-product {
  display: grid;
  grid-template-columns: clamp(76px, 8vw, 110px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 32px);
  min-width: 0;
  overflow-wrap: anywhere;
}

.basket-product--without-image {
  grid-template-columns: minmax(0, 1fr);
}

.basket-image {
  display: block;
  background: #f8f6f3;
}

.basket-image img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.basket-product-name {
  font-weight: 600;
  text-decoration: none;
}

.basket-product-name:hover {
  text-decoration: underline;
}

.basket-detail,
.basket-previous-price,
.basket-discounts,
.basket-remove {
  color: #666;
  font-size: 14px;
}

.basket-discounts {
  margin-block: 8px;
}

.basket-unit-price,
.basket-line-total {
  text-align: end;
}

.basket-unit-price strong,
.basket-line-total strong {
  font-weight: 600;
}

.basket-price-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.basket-previous-price {
  display: block;
}

.basket-quantity-cell {
  text-align: center;
}

.basket-quantity {
  display: inline-flex;
  align-items: stretch;
  min-height: 44px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
}

.basket-quantity a {
  display: grid;
  place-items: center;
  min-width: 32px;
  color: #656565;
  text-decoration: none;
}

.basket-quantity a:hover {
  background: #f4eee8;
}

.basket-quantity input {
  width: 2.55em;
  padding: 0 2px;
  border: 0;
  text-align: center;
  appearance: textfield;
}

.basket-quantity input::-webkit-inner-spin-button,
.basket-quantity input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.basket-remove,
.basket-continue {
  display: inline-block;
  margin-top: 10px;
  text-underline-offset: .16em;
}

.basket-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 24px;
  padding-top: 22px;
  margin-top: 14px;
  border-top: 1px solid var(--basket-divider);
}

.basket-note label {
  display: block;
  margin-bottom: 10px;
}

.basket-note textarea {
  display: block;
  width: min(100%, 410px);
  min-height: 74px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  resize: vertical;
}

.basket-totals {
  text-align: end;
}

.basket-subtotal {
  margin: 0 0 28px;
  font: 400 clamp(26px, 2.5vw, 34px)/1.2 var(--editorial);
}

.basket-subtotal span {
  white-space: nowrap;
}

.basket-policies {
  margin: 0 0 18px;
}

.basket-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.basket-checkout,
.basket-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #ffa900;
  color: #111;
  text-decoration: none;
}

.basket-checkout:hover {
  background: #f09d00;
}

.basket-update {
  border-color: #c9c9c9;
  background: var(--paper);
}

.basket-update:hover {
  background: #f4eee8;
}

.basket-wallets {
  margin-top: 10px;
}

.basket-wallets shopify-accelerated-checkout-cart {
  --shopify-accelerated-checkout-button-block-size: 48px;
  --shopify-accelerated-checkout-button-inline-size: 48px;
  --shopify-accelerated-checkout-button-border-radius: 3px;
  --shopify-accelerated-checkout-button-box-shadow: none;
  --shopify-accelerated-checkout-inline-alignment: flex-end;
  --shopify-accelerated-checkout-row-gap: 10px;
}

.basket-wallets[inert],
.basket-page [aria-busy="true"] {
  opacity: .65;
}

.basket-continue {
  margin-top: 16px;
  color: #656565;
}

.basket-empty {
  padding: 32px 0 20px;
  text-align: center;
}

.basket-empty-icon svg {
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
}

.basket-status:not(.basket-status--error) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.basket-status--error {
  margin: 0 0 18px;
  padding: 10px 14px;
  background: #f4eee8;
}

@media (max-width: 767px) {
  .basket-page {
    width: calc(100% - 32px);
    margin-block: 34px 46px;
  }

  .basket-heading {
    margin-bottom: 24px;
  }

  .basket-column-headings {
    display: none;
  }

  .basket-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding-block: 24px;
  }

  .basket-product {
    grid-column: 1/-1;
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .basket-product--without-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .basket-quantity-cell {
    grid-column: 1;
    grid-row: 2/4;
    justify-self: start;
  }

  .basket-quantity a {
    min-width: 44px;
  }

  .basket-row .basket-unit-price {
    grid-column: 2;
    grid-row: 2;
  }

  .basket-row .basket-line-total {
    grid-column: 2;
    grid-row: 3;
  }

  .basket-price-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    clip-path: none;
    color: #656565;
    font-size: 13px;
  }

  .basket-summary {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 4px;
  }

  .basket-note textarea {
    width: 100%;
  }

  .basket-totals {
    text-align: center;
  }

  .basket-subtotal {
    margin-bottom: 14px;
  }

  .basket-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .basket-checkout,
  .basket-update {
    min-width: 0;
  }

  .basket-wallets shopify-accelerated-checkout-cart {
    --shopify-accelerated-checkout-inline-alignment: center;
  }
}
