/* =====================================================
   PNBIOTICS — CHECKOUT PAGE
===================================================== */

.checkout-page {
  background: #f7faf9;
}

.checkout-hero {
  padding: clamp(62px, 7vw, 95px) 0 clamp(48px, 5vw, 68px);
  background:
    radial-gradient(circle at 84% 20%, rgba(111, 199, 232, 0.12), transparent 28%),
    linear-gradient(135deg, #f7fbfa, #ffffff);
}

.checkout-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  color: #81918e;
  font-size: 0.75rem;
}

.checkout-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.checkout-breadcrumb strong {
  color: #153237;
}

.checkout-hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: clamp(3.5rem, 6vw, 6.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.checkout-hero h1 em {
  color: #3bb6a6;
  font-style: normal;
}

.checkout-hero p {
  max-width: 680px;
  margin: 0;
  color: #667a7d;
  line-height: 1.75;
}

.checkout-main-section {
  padding-top: clamp(45px, 6vw, 75px);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: start;
  gap: 30px;
}

.checkout-form {
  display: grid;
  gap: 20px;
}

.checkout-form-card,
.checkout-summary-card {
  border: 1px solid rgba(21, 50, 55, 0.08);
  border-radius: 27px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(21, 50, 55, 0.045);
}

.checkout-form-card {
  padding: clamp(25px, 4vw, 36px);
}

.checkout-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 25px;
}

.checkout-card-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #edf8f5;
  color: #197f74;
  font-size: 0.68rem;
  font-weight: 800;
}

.checkout-card-heading h2 {
  margin: 0 0 4px;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: 1.55rem;
  font-weight: 780;
}

.checkout-card-heading p {
  margin: 0;
  color: #81918e;
  font-size: 0.8rem;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.checkout-field-full {
  grid-column: 1 / -1;
}

.checkout-field label {
  display: block;
  margin-bottom: 7px;
  color: #344e4d;
  font-size: 0.77rem;
  font-weight: 750;
}

.checkout-field label span {
  color: #ca3a83;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(21, 50, 55, 0.13);
  border-radius: 14px;
  outline: 0;
  background: #f8fbfa;
  color: #153237;
  font: inherit;
  font-size: 0.88rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.checkout-field input:focus,
.checkout-field select:focus {
  border-color: #3bb6a6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 182, 166, 0.10);
}

.checkout-field.is-invalid input,
.checkout-field.is-invalid select {
  border-color: #b84e5a;
}

.checkout-field-error,
.checkout-agreement-error {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: #b84e5a;
  font-size: 0.68rem;
}

.checkout-confirm-card {
  padding-top: 24px;
  padding-bottom: 24px;
}

.checkout-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #516866;
  font-size: 0.82rem;
  line-height: 1.55;
}

.checkout-checkbox input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: #3bb6a6;
}

/* Summary */

.checkout-summary {
  position: sticky;
  top: 110px;
}

.checkout-summary-card {
  padding: 27px;
}

.checkout-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(21, 50, 55, 0.08);
}

.checkout-summary-heading span {
  color: #3bb6a6;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.checkout-summary-heading h2 {
  margin: 6px 0 0;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: 1.8rem;
}

.checkout-summary-heading a {
  color: #667a7d;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.checkout-order-items {
  max-height: 390px;
  overflow-y: auto;
}

.checkout-order-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(21, 50, 55, 0.07);
}

.checkout-order-image {
  display: grid;
  height: 88px;
  place-items: center;
  border-radius: 15px;
  background: #f4f9f7;
}

.checkout-order-image img {
  width: 88%;
  max-height: 80px;
  object-fit: contain;
}

.checkout-order-copy strong,
.checkout-order-copy > span {
  display: block;
}

.checkout-order-copy strong {
  color: #153237;
  font-size: 0.86rem;
  line-height: 1.3;
}

.checkout-order-copy > span {
  margin-top: 4px;
  color: #81918e;
  font-size: 0.67rem;
}

.checkout-order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.checkout-order-bottom small {
  color: #153237;
  font-size: 0.72rem;
  font-weight: 750;
}

.checkout-order-quantity {
  display: flex;
  align-items: center;
  gap: 7px;
}

.checkout-order-quantity button {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(21, 50, 55, 0.10);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.checkout-order-quantity span {
  min-width: 18px;
  color: #153237;
  font-size: 0.75rem;
  text-align: center;
}

.checkout-totals {
  display: grid;
  gap: 11px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(21, 50, 55, 0.08);
}

.checkout-totals[hidden] {
  display: none;
}

.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #667a7d;
  font-size: 0.8rem;
}

.checkout-totals strong {
  color: #153237;
}

.checkout-total-row {
  padding-top: 10px;
  border-top: 1px dashed rgba(21, 50, 55, 0.10);
  font-size: 0.92rem !important;
}

.checkout-total-row strong {
  font-family: Manrope, sans-serif;
  font-size: 1.2rem;
}

.checkout-payment {
  padding-top: 19px;
}

.checkout-paypal-label {
  display: block;
  color: #173b7a;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.checkout-payment > p {
  margin: 7px 0 14px;
  color: #81918e;
  font-size: 0.7rem;
  line-height: 1.5;
}

.checkout-paypal-setup {
  padding: 15px;
  border-radius: 14px;
  background: #f5f7fb;
}

.checkout-paypal-setup strong {
  color: #153237;
}

.checkout-paypal-setup p {
  margin: 5px 0 0;
  color: #667a7d;
  font-size: 0.72rem;
  line-height: 1.5;
}

.checkout-payment-message {
  margin-top: 9px;
  color: #667a7d;
  font-size: 0.72rem;
  line-height: 1.5;
}

.checkout-payment-message.is-error {
  color: #b84e5a;
}

.checkout-payment-message.is-success {
  color: #197f74;
}

.checkout-empty-cart {
  padding: 38px 15px;
  text-align: center;
}

.checkout-empty-cart[hidden] {
  display: none;
}

.checkout-empty-cart strong {
  color: #153237;
}

.checkout-empty-cart p {
  margin: 6px 0 18px;
  color: #81918e;
  font-size: 0.78rem;
}

/* Success */

.checkout-success {
  padding: 80px 0 110px;
}

.checkout-success[hidden] {
  display: none;
}

.checkout-success-card {
  max-width: 760px;
  padding: 55px;
  border: 1px solid rgba(21, 50, 55, 0.08);
  border-radius: 30px;
  background: #ffffff;
  text-align: center;
}

.checkout-success-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 19px;
  place-items: center;
  border-radius: 50%;
  background: #edf8f5;
  color: #197f74;
  font-size: 1.4rem;
  font-weight: 850;
}

.checkout-success-card h2 {
  margin: 13px 0 13px;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.checkout-success-card p {
  max-width: 590px;
  margin: 0 auto;
  color: #667a7d;
  line-height: 1.7;
}

.checkout-success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

@media (max-width: 1050px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 650px) {
  .checkout-hero h1 {
    font-size: 3.3rem;
  }

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

  .checkout-field-full {
    grid-column: auto;
  }

  .checkout-summary-card,
  .checkout-form-card {
    border-radius: 22px;
  }

  .checkout-success-card {
    padding: 38px 24px;
  }
}
