/* start checkout page */
.checkout__section {
  color: var(--white-color);
}

/* empty state (not logged in / empty cart) */
.checkout__empty {
  min-height: 40vh;
  flex-direction: column;
  text-align: center;
}
.checkout__empty__text {
  font-size: 2.2rem;
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

/* customer info / shipping form */
.checkout__form {
  color: var(--white-color);
}
.checkout__form__title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white-color);
  border-bottom: 1px solid var(--white-color);
  padding-bottom: 1rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.checkout__form .row {
  margin-bottom: 1.5rem;
}
/* Bootstrap's .invalid-feedback is sized in em relative to the inherited
   font-size, which on this site's 10px root would render at ~9px. Give it
   an explicit rem size like every other text element in the codebase. */
.checkout__form .invalid-feedback {
  font-size: 1.4rem;
}
.checkout__form textarea.form-control {
  background-color: transparent !important;
  border: 1px solid lightgray !important;
  color: var(--white-color) !important;
  font-size: 1.6rem !important;
  border-radius: 4px;
}
/* res.css forces `border: none !important` on every <input>, which would
   otherwise swallow Bootstrap's validation border color. Re-apply it on
   just the underline with higher specificity so invalid/valid state is
   still visible, keeping the existing underline-input look. */
.checkout__form .was-validated .form-control:invalid {
  border-bottom: 2px solid #dc3545 !important;
}
.checkout__form .was-validated .form-control:valid {
  border-bottom: 2px solid #2e7d32 !important;
}

/* payment method */
.payment__method {
  padding: 2rem;
  align-items: flex-start;
  text-align: left;
}
.payment__method__option {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.payment__method__option input[type="radio"] {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: var(--main-color);
}
.payment__method__label {
  color: var(--white-color) !important;
  font-family: var(--primary-font) !important;
  font-size: 1.8rem !important;
}
.payment__method__note {
  font-size: 1.4rem;
  color: var(--body-color);
  margin-top: 1rem;
}

.place__order__btn {
  /* width: 100%; */
  letter-spacing: 1px;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .checkout__form__title {
    font-size: 1.8rem;
  }
  .payment__method__label {
    font-size: 1.6rem !important;
  }
}

@media screen and (max-width: 576px) {
  .checkout__section .summary {
    font-size: 2.4rem;
  }
  .checkout__form__title {
    font-size: 1.6rem;
    text-align: center;
  }
  .payment__method {
    align-items: center;
    text-align: center;
  }
  .payment__method__option {
    flex-direction: column;
  }
  .place__order__btn {
 font-size: 1.6rem;
}
}
/* end checkout page */
