/* ========================================
   BIVA CHECKOUT PAGE
======================================== */

.checkout-page {
  width: 100%;
}

.checkout-page__header {
  margin-bottom: 34px;
}

.checkout-page__header > .btn {
  margin-bottom: 32px;
}

.checkout-page__intro {
  max-width: 720px;
}

.checkout-page__kicker {
  display: block;
  margin-bottom: 9px;

  color: #08795e;

  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.checkout-page__intro h1 {
  margin: 0;

  font-size:
    clamp(2rem, 4vw, 3rem);

  line-height: 1.05;

  color: #102f28;
}

.checkout-page__intro p {
  max-width: 650px;
  margin: 15px 0 0;

  color: #60756f;

  font-size: 1rem;
  line-height: 1.7;
}

.checkout-page__layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(380px, 1.1fr);

  gap: 24px;

  align-items: start;
}

.checkout-page__summary,
.checkout-page__form-card {
  padding: 28px;
}

.checkout-page__summary {
  position: sticky;
  top: 24px;
}

.checkout-page__metrics {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.checkout-page__metric {
  min-width: 0;
  padding: 17px;

  border-radius: 16px;

  background: #eef7f3;
}

.checkout-page__metric span,
.checkout-page__coverage span,
.checkout-page__total span {
  display: block;

  margin-bottom: 6px;

  color: #72837e;

  font-size: 0.8rem;
}

.checkout-page__metric strong,
.checkout-page__coverage strong {
  display: block;

  overflow-wrap: anywhere;

  color: #15352d;

  font-size: 0.98rem;
  line-height: 1.4;
}

.checkout-page__coverage {
  margin-top: 14px;
  padding: 18px;

  border:
    1px solid rgba(15, 47, 39, 0.08);

  border-radius: 16px;

  background: #ffffff;
}

.checkout-page__total {
  margin-top: 22px;
  padding-top: 22px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  border-top:
    1px solid rgba(15, 47, 39, 0.1);
}

.checkout-page__total span {
  margin-bottom: 0;
}

.checkout-page__total strong {
  color: #071f1a;

  font-size: 2rem;
  line-height: 1;

  letter-spacing: -0.04em;
}

.checkout-page__form {
  margin-top: 4px;
}

.checkout-page__submit {
  margin-top: 10px;
}

.checkout-page__empty {
  width: min(100%, 620px);

  margin: 60px auto;
  padding: 38px;

  text-align: center;
}

.checkout-page__empty h1 {
  margin: 0;

  color: #102f28;
}

.checkout-page__empty p {
  max-width: 470px;

  margin: 14px auto 26px;

  color: #687b76;

  line-height: 1.65;
}

@media (max-width: 900px) {
  .checkout-page__layout {
    grid-template-columns: 1fr;
  }

  .checkout-page__summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .checkout-page__header {
    margin-bottom: 24px;
  }

  .checkout-page__header > .btn {
    margin-bottom: 26px;
  }

  .checkout-page__intro h1 {
    font-size: 2rem;
  }

  .checkout-page__summary,
  .checkout-page__form-card {
    padding: 21px;
    border-radius: 19px;
  }

  .checkout-page__metrics {
    grid-template-columns: 1fr;
  }

  .checkout-page__total {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .checkout-page__total strong {
    font-size: 1.8rem;
  }
}