.cart-page {
  width: min(100% - 2rem, 960px);
}

.cart-table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 0.9rem 0.45rem;
  border-bottom: 1px solid var(--line, rgba(14, 14, 14, 0.1));
  text-align: left;
  vertical-align: middle;
}

.cart-table th {
  color: var(--muted, #6f6f6f);
  font-weight: 700;
}

.cart-item-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--paper-deep, #e4e0d8);
}

.link-button {
  background: none;
  border: none;
  color: var(--err, #b42318);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.cart-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cart-checkout-form {
  display: grid;
  gap: 0.85rem;
  min-width: min(100%, 320px);
}

.cart-checkout-lead {
  margin: 0;
  color: var(--muted, #6f6f6f);
  font-size: 0.95rem;
  max-width: 36ch;
}

.cart-checkout-fields {
  display: grid;
  gap: 0.65rem;
}

.cart-checkout-fields label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
}

.cart-checkout-fields input,
.cart-checkout-fields select {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line, rgba(14, 14, 14, 0.12));
  border-radius: 10px;
  font: inherit;
}

.cart-delivery-type {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.cart-delivery-type label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.cart-total {
  font-family: var(--font-display, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-page .empty-state {
  color: var(--muted, #6f6f6f);
}

@media (max-width: 720px) {
  .cart-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.cart-qty-form {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-qty-btn {
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--line, rgba(14, 14, 14, 0.14));
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.cart-qty-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.cart-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}
