
.commerce-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 38px;
}

.commerce-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-size: 0.73rem;
  font-weight: 750;
}

.commerce-step::after {
  width: 40px;
  height: 1px;
  margin: 0 8px;
  background: #cdd9e7;
  content: '';
}

.commerce-step:last-child::after {
  display: none;
}

.commerce-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cdd9e7;
  border-radius: 50%;
}

.commerce-step.is-active {
  color: var(--blue-dark);
}

.commerce-step.is-active span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.cart-layout,
.checkout-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 65px);
}

.cart-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.cart-table__head,
.cart-row {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(270px, 1.7fr) 90px 132px 90px 34px;
  gap: 18px;
  padding: 17px 20px;
}

.cart-table__head {
  background: var(--ice);
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cart-row {
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.8rem;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-product__vial {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 62px;
  place-items: center;
  border: 1px solid #d9e6f3;
  border-radius: 8px;
  background: var(--ice);
  color: var(--blue);
  font-size: 1.2rem;
}

.cart-product a {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-weight: 750;
}

.cart-product span,
.cart-unit-price {
  color: var(--ink-muted);
  font-size: 0.7rem;
}

.cart-quantity {
  display: grid;
  overflow: hidden;
  border: 1px solid #cdd9e7;
  border-radius: 7px;
  grid-template-columns: 34px 1fr 34px;
}

.cart-quantity button,
.cart-quantity input {
  width: 100%;
  height: 38px;
  border: 0;
  background: var(--white);
  color: var(--navy);
  text-align: center;
}

.cart-quantity button {
  cursor: pointer;
  font-weight: 800;
}

.cart-quantity input {
  border-right: 1px solid #e4ebf3;
  border-left: 1px solid #e4ebf3;
  appearance: textfield;
}

.cart-remove {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #8493a4;
  cursor: pointer;
}

.cart-remove:hover {
  color: #b22d34;
}

.cart-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.coupon-form {
  display: flex;
  gap: 9px;
}

.coupon-form input {
  width: 190px;
}

.coupon-help,
.checkout-coupon p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.66rem;
  line-height: 1.55;
}

.discount-value {
  color: #087a4b;
}

.applied-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #bce0ce;
  border-radius: 8px;
  background: #effaf4;
  color: #09643f;
  font-size: 0.72rem;
}

.applied-coupon[hidden] {
  display: none;
}

.applied-coupon button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.free-delivery-meter {
  margin-top: 18px;
  padding: 14px;
  border-radius: 9px;
  background: var(--blue-light);
}

.free-delivery-meter__track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(21, 99, 205, 0.15);
}

.free-delivery-meter__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 240ms ease;
}

.free-delivery-meter strong {
  display: block;
  margin-top: 9px;
  color: var(--navy);
  font-size: 0.68rem;
  line-height: 1.45;
}

.summary-line,
.order-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.summary-line--total {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
}

.cart-summary .button {
  width: 100%;
  margin-top: 22px;
}

.summary-note {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.6;
}

.empty-state {
  padding: 70px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
}

.empty-state > i {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 1.5rem;
}

.empty-state h2 {
  color: var(--navy);
}

.empty-state p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.75fr);
}

.checkout-main {
  display: grid;
  gap: 24px;
}

.checkout-panel h2 {
  margin-bottom: 24px;
}

.checkout-sidebar {
  position: sticky;
  top: 124px;
}

.shipping-options,
.payment-options {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d6e0ec;
  border-radius: 9px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: #f3f8ff;
}

.choice-card input {
  margin-top: 4px;
  accent-color: var(--blue);
}

.choice-card strong,
.choice-card span {
  color: var(--navy);
  font-size: 0.78rem;
}

.choice-card small {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 0.67rem;
  font-weight: 500;
}

.payment-panel {
  margin: -2px 0 7px;
  padding: 15px;
  border-radius: 8px;
  background: var(--ice);
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.65;
}
