.checkout-hero {
  padding-top: var(--space-16);
}

.checkout-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

.checkout-hero__content p {
  max-width: 36rem;
}

.checkout-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.checkout-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.checkout-hero__image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-8);
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.checkout-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.checkout-steps {
  margin-bottom: var(--space-4);
}

.checkout-steps__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding-left: 0;
}

.checkout-steps__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.35);
  color: var(--color-text-soft);
  font-size: var(--font-size-sm);
}

.checkout-steps__item--active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  color: #fff;
}

.checkout-steps__item--current {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.checkout-steps__index {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.45);
  font-size: var(--font-size-xs);
}

.checkout-steps__item--active .checkout-steps__index {
  background-color: rgba(0, 0, 0, 0.2);
}

.checkout-section__header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: flex-start;
}

.checkout-cart {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.checkout-cart__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout-cart__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.checkout-cart__item-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

.checkout-cart__item-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.checkout-cart__controls {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.checkout-cart__qty {
  min-width: 1.5rem;
  text-align: center;
}

.checkout-cart__item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.checkout-cart__price {
  font-weight: 600;
}

.checkout-cart__remove {
  background: none;
  border: none;
  color: var(--color-text-soft);
  font-size: var(--font-size-xs);
  text-decoration: underline;
  cursor: pointer;
}

.checkout-cart__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.checkout-form__grid {
  gap: var(--space-4);
}

.checkout-form__row--inline {
  max-width: 320px;
}

.checkout-payment__methods {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checkout-payment__option {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.checkout-payment__option input[type="radio"] {
  margin-top: 0.3rem;
}

.checkout-payment__option-body {
  flex: 1;
}

.checkout-payment__option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.checkout-payment__option-title {
  font-weight: 600;
}

.checkout-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.checkout-review__title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-3);
}

.checkout-review__list {
  margin: 0;
}

.checkout-review__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.checkout-review__row + .checkout-review__row {
  margin-top: var(--space-2);
}

.checkout-review__row dt {
  color: var(--color-text-soft);
}

.checkout-review__row--total dt,
.checkout-review__row--total dd {
  font-weight: 600;
}

.checkout-final__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.checkout-final__note {
  font-size: var(--font-size-sm);
}

.checkout-security__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checkout-security__image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.checkout-security__list {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.checkout-security__link {
  font-size: var(--font-size-sm);
}

.checkout-tracking__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checkout-tracking__list {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.checkout-help {
  font-size: var(--font-size-sm);
}

.checkout-tracking__cta {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .checkout-cart {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .checkout-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-cart__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-review {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-final__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .checkout-hero {
    padding-top: var(--space-12);
  }

  .checkout-steps__list {
    gap: var(--space-2);
  }

  .checkout-steps__item {
    padding-right: var(--space-3);
  }
}
