.cart-page {
  padding-block: 28px 64px;
}

.cart-empty {
  max-width: 720px;
  margin: 52px auto;
  padding: 40px;
  border: 1px solid #dfe3e8;
  border-radius: 24px;
  background: #ffffff;
}

.cart-empty h1 {
  margin-block: 8px 12px;
}

.cart-items {
  display: grid;
  gap: 16px;
  margin-block: 24px 36px;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid #dfe3e8;
  border-radius: 20px;
  background: #ffffff;
}

.cart-line-media {
  display: block;
  width: 96px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.cart-line-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line-main h2 {
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

.cart-line-main h2 a {
  color: inherit;
  text-decoration: none;
}

.cart-live-price {
  margin: 0;
  color: #4b5563;
}

.cart-line-actions {
  display: grid;
  gap: 10px;
  min-width: 180px;
}

.button-secondary {
  background: #ffffff;
  border: 1px solid #c7cdd4;
  color: #111827;
}

.cart-notice {
  margin-block: 18px;
}

.cart-checkout {
  margin-top: 36px;
}

@media (max-width: 760px) {
  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line-media {
    width: 72px;
  }

  .cart-line-actions {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .cart-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .cart-empty {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 18px 0;
    padding: 22px 20px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
}

/* Purchasing cart: in-place quantity (cart_quantity.js), line problems, free-shipping indicator. */
.om-cart-line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.om-cart-line-controls form { margin: 0; }
.om-cart-line-controls output { min-width: 28px; text-align: center; font-weight: 700; }
/* Remove: a quiet trash icon (44px target) that never outweighs quantity or Checkout. */
.om-cart-remove { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--om-muted, #565959); cursor: pointer; }
.om-cart-remove svg { width: 18px; height: 18px; }
.om-cart-remove:hover { background: #f3f3f3; color: var(--om-ink, #0f1111); }
.om-cart-remove:focus-visible { outline: 3px solid var(--om-orange, #ff9900); outline-offset: -3px; }
.om-cart-remove[disabled] { color: #bbb; cursor: not-allowed; }
.cart-line[aria-busy] { opacity: .65; transition: opacity .15s; }
.om-cart-line-problem { margin: 6px 0 0; color: #b12704; font-size: 13px; font-weight: 600; }
.cart-line.is-unavailable { background: #fffaf7; border-color: #f2c7b5; }
.cart-line.is-unavailable .cart-line-image { opacity: .55; }
.cart-line.is-unavailable .amazon-cart-line-price span { color: #b12704; font-weight: 600; }
.om-cart-line-ship:not(:has(strong)) { color: var(--om-muted, #565959); }
.om-cart-freeship { margin: 8px 0 12px; font-size: 13px; line-height: 1.35; color: var(--om-ink, #0f1111); }
.cart-summary-card .om-cart-freeship p, .cart-summary-card .om-cart-freeship span, .cart-summary-card .om-cart-freeship strong { font-size: 14px; line-height: 1.35; }
.cart-summary-card .om-cart-freeship strong { font-weight: 700; color: inherit; }
.cart-summary-card [data-cart-subtotal] { color: var(--om-ink, #0f1111); font-size: 18px; font-weight: 700; }
.om-cart-freeship p { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.om-cart-freeship svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: #067d62; }
.om-cart-freeship.is-free p { color: #067d62; }
.om-cart-meter-bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: #e3e6e6; overflow: hidden; }
.om-cart-meter-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f7a64a, #f08804); transition: width .25s ease; }
.om-cart-freeship.is-free .om-cart-meter-bar > span { background: #2fbf71; }
.om-cart-proceed[disabled] { opacity: .55; cursor: not-allowed; }
.om-cart-blocked { margin: 8px 0 0; color: #b12704; font-size: 13px; }

/* Checkout page (/checkout/): summary, payment method, delivery address, one Pay control. */
.om-co-page {
  padding-block: 16px 48px;
}

#main-content .om-co-page {
  display: block; /* the storefront shell is a two-column grid; checkout is one centred column */
}

.om-cart-co {
  width: 100%;
  margin: 0 auto;
  max-width: 640px;
}

.om-cart-co .checkout-main {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.om-cart-co-step {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--om-line, #d5d9d9);
  border-radius: var(--om-radius, 8px);
  background: #ffffff;
}

.om-cart-co-step h2,
.om-cart-co-step legend {
  margin: 0 0 12px;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--om-ink, #0f1111);
}

fieldset.om-cart-co-step legend {
  float: left;
  width: 100%;
}

fieldset.om-cart-co-step legend + * {
  clear: both;
}

.om-co-lines {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.om-co-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.om-co-line-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: #f7f8f8;
}

.om-co-line-main p {
  margin: 0;
}

.om-co-line-title {
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.om-co-line-meta {
  color: var(--om-ink-2, #565959);
  font-size: 0.875rem;
}

.om-co-line-problem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 4px !important;
  color: #b12704;
  font-size: 0.875rem;
  font-weight: 600;
}

.om-co-line-problem[hidden] {
  display: none;
}

.om-co-line-problem button {
  min-height: 44px;
}

.om-co-line-price {
  white-space: nowrap;
  font-weight: 700;
}

.om-cart-co-totals {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--om-line, #d5d9d9);
}

.om-cart-co-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.om-cart-co-totals dd {
  margin: 0;
}

#cart-quote-shipping-amount {
  color: var(--om-ok, #067d62);
  font-weight: 700;
}

.om-cart-co-total {
  font-size: 1.2rem;
  font-weight: 700;
}

.om-cart-co-note {
  margin: 8px 0 0;
  color: var(--om-ink-2, #565959);
  font-size: 0.9rem;
}

#cart-quote-eta {
  color: var(--om-ok, #067d62);
  font-weight: 600;
}

.om-cart-co .payment-method-card.is-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border-color: var(--om-ok, #067d62);
  border-radius: var(--om-radius, 8px);
}

.om-cart-co-form {
  margin-top: 0;
  gap: 12px;
}

.om-co-fields {
  display: grid;
  gap: 12px;
}

.om-cart-co-form .field label {
  margin-bottom: 4px;
}

.om-cart-co-form .field-hint,
.om-cart-co-form .field-error {
  margin: 4px 0 0;
}

.om-cart-co-form input,
.om-cart-co-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  font-size: 16px; /* no iOS zoom on focus */
}

.om-cart-co-form [aria-invalid="true"] {
  border-color: #c40000;
  box-shadow: 0 0 0 1px #c40000 inset;
}

.om-cart-co #cart-paypal-button-container,
.om-cart-co #cart-pay-button {
  width: 100%;
}

.om-cart-co #cart-pay-hint {
  margin: 0;
}

.om-cart-co #cart-checkout-status {
  margin: 0 0 10px;
}

@media (max-width: 760px) {
  .om-co-page {
    padding-block: 8px 32px;
  }

  .om-cart-co-step {
    padding: 14px 12px;
  }

  .om-cart-co-title {
    font-size: 1.35rem;
  }
}
