.checkout-header {
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.checkout-container {
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}

.checkout-header h1 {
  margin-bottom: 0.75rem;
}

.checkout-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.checkout-progress li {
  flex: 1 1 10rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--olea-line);
  border-radius: 999px;
  color: var(--olea-muted);
  text-align: center;
}

.checkout-progress li[aria-current="step"] {
  border-color: var(--olea-green-dark);
  background: #f2f5ec;
  color: var(--olea-green-dark);
  font-weight: 700;
}

.checkout-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.checkout-section {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  scroll-margin-top: 6rem;
}

.checkout-section h2 {
  margin-bottom: 1rem;
}

.checkout-hint {
  color: var(--olea-muted);
  margin: 0 0 1rem;
}

.checkout-cart {
  border-top: 1px solid var(--olea-line);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.checkout-cart h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.commerce-product > div {
  min-width: 0;
}

.commerce-product .btn,
.commerce-cart-list button,
.verification-controls .btn,
.checkout-primary-action {
  min-height: 44px;
}

.commerce-cart-list li {
  flex-wrap: wrap;
}

.commerce-cart-list li > span {
  flex: 1 1 12rem;
  overflow-wrap: anywhere;
}

.commerce-cart-list input {
  min-height: 44px;
}

.verification-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

.verification-choice legend {
  width: 100%;
  margin-bottom: 0.25rem;
}

.verification-choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--olea-line);
  border-radius: 999px;
}

.verification-choice input,
.checkout-required-consent input,
.notification-choice input {
  width: 1.15rem;
  height: 1.15rem;
}

.verification-input-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.verification-input-row .form-control {
  min-width: 0;
}

.verification-state {
  min-height: 1.5rem;
  margin: 0.6rem 0 0;
  color: var(--olea-green-dark);
  font-weight: 650;
}

.commerce-legal {
  border: 1px solid var(--olea-line);
  border-radius: 8px;
  padding: 1rem;
}

.checkout-legal-unavailable {
  margin: 0;
  color: #7a3c12;
}

.checkout-legal-document + .checkout-legal-document {
  margin-top: 0.5rem;
}

.checkout-legal-document summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 650;
}

.checkout-legal-document summary span {
  color: var(--olea-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.checkout-legal-copy {
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0.75rem;
  border-top: 1px solid var(--olea-line);
}

.checkout-required-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
}

.checkout-required-consent .form-check-input {
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
}

.notification-choice {
  border: 0;
  padding: 0;
  margin: 1.5rem 0 0;
}

.notification-choice legend {
  margin-bottom: 0.75rem;
}

.notification-choice .form-check {
  display: flex;
  gap: 0.6rem;
}

.notification-choice .form-check-input {
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
}

.checkout-actions {
  display: flex;
}

.checkout-primary-action {
  width: 100%;
  max-width: 24rem;
}

.checkout-primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.checkout-order-review[hidden],
.checkout-actions[hidden] {
  display: none !important;
}

.order-lines {
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.order-lines li,
.order-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--olea-line);
}

.order-lines li span,
.order-total-row dt {
  overflow-wrap: anywhere;
}

.order-total-list {
  margin: 0;
}

.order-total-row dt,
.order-total-row dd {
  margin: 0;
}

.order-grand-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--olea-green-dark);
  border-bottom: 0;
}

.order-reference {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
  color: var(--olea-muted);
}

.checkout-status {
  min-height: 1.5rem;
  overflow-wrap: anywhere;
}

.checkout-page :focus-visible {
  outline: 3px solid #8a9c4b;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .checkout-container {
    width: min(100% - 1.25rem, 900px);
  }

  .checkout-header {
    padding-top: 7rem;
  }

  .checkout-progress {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checkout-progress li {
    text-align: left;
  }

  .commerce-product {
    align-items: stretch;
    flex-direction: column;
  }

  .commerce-product .btn,
  .checkout-primary-action {
    width: 100%;
    max-width: none;
  }

  .verification-input-row {
    flex-direction: column;
  }

  .order-lines li,
  .order-total-row {
    gap: 0.5rem;
  }
}
.checkout-paytr-panel { margin-top: 1.5rem; }
.checkout-paytr-panel iframe { display: block; width: 100%; min-height: 680px; border: 0; background: #fff; }
.checkout-paytr-panel iframe[hidden] { display: none; }
@media (max-width: 575.98px) { .checkout-paytr-panel iframe { min-height: 760px; } }
