.esh-cart-page {
  --cart-ink: #183445;
  --cart-muted: #6d7e89;
  --cart-line: #e3eaee;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
  color: var(--cart-ink);
}

.esh-cart-heading,
.esh-cart-layout,
.esh-cart-item,
.esh-cart-item-controls,
.esh-cart-summary > div {
  display: flex;
  align-items: center;
}

.esh-cart-heading {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.esh-cart-eyebrow {
  color: #a96516;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.esh-cart-heading h1 {
  margin: .25rem 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.esh-cart-heading > a,
.esh-cart-summary > a {
  color: #fff;
  background: #dd851d;
  border-radius: 9px;
  padding: .75rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.esh-cart-layout {
  align-items: flex-start;
  gap: 1.25rem;
}

.esh-cart-items,
.esh-cart-summary {
  border: 1px solid var(--cart-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(24 52 69 / 6%);
}

.esh-cart-items {
  flex: 1 1 65%;
  min-width: 0;
  padding: 1.25rem;
}

.esh-cart-items h2,
.esh-cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

#esh-cart-count {
  color: var(--cart-muted);
  font-size: .9rem;
  font-weight: 500;
}

.esh-cart-item {
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--cart-line);
}

.esh-cart-item-image {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 10px;
  background: #f5f8f9;
  object-fit: contain;
}

.esh-cart-item-details {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.esh-cart-item-details h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.esh-cart-item-details p {
  margin: 0;
  color: var(--cart-muted);
  font-size: .9rem;
}

.esh-cart-item-details .esh-cart-identifiers {
  font-size: .76rem;
}

.esh-cart-item-controls {
  gap: .6rem;
}

.esh-cart-item-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--cart-line);
  border-radius: 7px;
  background: #fff;
  color: var(--cart-ink);
}

.esh-cart-remove {
  border: 0;
  background: transparent;
  color: #ae362d;
  font-size: .85rem;
}

.esh-cart-empty {
  padding: 2rem 1rem;
  border-top: 1px solid var(--cart-line);
  color: var(--cart-muted);
  text-align: center;
}

.esh-cart-status {
  margin: 0;
  color: #ae362d;
  font-size: .9rem;
}

.esh-cart-summary {
  flex: 0 0 320px;
  padding: 1.25rem;
}

.esh-cart-summary > div {
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  color: var(--cart-muted);
}

.esh-cart-summary .esh-cart-total {
  margin-bottom: .75rem;
  border-top: 1px solid var(--cart-line);
  color: var(--cart-ink);
  font-size: 1.05rem;
}

.esh-cart-summary p {
  margin: .5rem 0 1rem;
  color: var(--cart-muted);
  font-size: .85rem;
}

.esh-cart-summary > a {
  display: block;
  text-align: center;
}

.esh-checkout-alert {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid #f1b7b5;
  border-radius: 10px;
  background: #fff4f3;
  color: #8e2924;
}

.esh-checkout-alert.is-success {
  border-color: #a7d8b5;
  background: #effaf2;
  color: #176b36;
}

.esh-checkout-form {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.esh-checkout-form > label,
.esh-checkout-form legend {
  color: var(--cart-ink);
  font-size: .88rem;
  font-weight: 700;
}

.esh-checkout-form input[type="text"],
.esh-checkout-form textarea {
  width: 100%;
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid var(--cart-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cart-ink);
  font: inherit;
}

.esh-checkout-form fieldset {
  display: grid;
  gap: .5rem;
  margin: .4rem 0;
  padding: .75rem;
  border: 1px solid var(--cart-line);
  border-radius: 8px;
}

.esh-checkout-form fieldset label {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--cart-muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.esh-checkout-checkbox { display: flex; align-items: center; gap: 8px; color: var(--cart-muted); font-size: .85rem; }
.esh-checkout-checkbox input { flex: 0 0 auto; }
.esh-checkout-setup-link {
  display: block;
  padding: .75rem 1rem;
  border-radius: 9px;
  background: #dd851d;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.esh-checkout-form small { color: var(--cart-muted); }

.esh-checkout-form button {
  width: 100%;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 9px;
  background: #dd851d;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.esh-checkout-form button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (max-width: 760px) {
  .esh-cart-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .esh-cart-summary {
    flex-basis: auto;
  }
}

@media (max-width: 520px) {
  .esh-cart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .esh-cart-item {
    align-items: flex-start;
  }

  .esh-cart-item-image {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .esh-cart-item-details {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }
}
