/* CureNatural · MasterStudy Checkout — stable CSS only (no :where, no accent-color) */

/* ===== SCOPE EVERYTHING TO THE CHECKOUT WRAPPER ===== */
.masterstudy-checkout-container .masterstudy-checkout-payment {
  background: #fff !important;
  border: 1px solid #DBE0E9 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.06) !important;
  overflow: hidden !important;
  position: relative !important;
  transition: transform .25s ease !important;
}
.masterstudy-checkout-container .masterstudy-checkout-payment:hover {
  transform: translateY(-2px);
}

/* Header look */
.masterstudy-checkout-container .masterstudy-checkout-payment__head {
  background: #F2F5FA !important;
  border-bottom: 1px solid #DBE0E9 !important;
  font-weight: 600 !important;
  padding: 14px 18px !important;
}

/* Inner sections simple */
.masterstudy-checkout-container .masterstudy-checkout-payment__body,
.masterstudy-checkout-container .masterstudy-checkout-payment__methods,
.masterstudy-checkout-container .masterstudy-checkout-payment__footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Separator lines only for payment methods */
.masterstudy-checkout-container .masterstudy-checkout-payment__methods li {
  border-bottom: 1px solid #E8ECF3 !important;
}
.masterstudy-checkout-container .masterstudy-checkout-payment__methods li:last-child {
  border-bottom: 0 !important;
}

/* STRIPE + INPUT FIELDS */
.masterstudy-checkout-container .masterstudy-checkout-payment .StripeElement,
.masterstudy-checkout-container .masterstudy-checkout-payment input[type="text"],
.masterstudy-checkout-container .masterstudy-checkout-payment input[type="tel"],
.masterstudy-checkout-container .masterstudy-checkout-payment input[type="email"],
.masterstudy-checkout-container .masterstudy-checkout-payment input[type="password"] {
  background: #fff !important;
  border: 1.5px solid rgba(0,0,0,.14) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04) !important;
}

/* Focus states (covers native and Stripe) */
.masterstudy-checkout-container .masterstudy-checkout-payment .StripeElement--focus,
.masterstudy-checkout-container .masterstudy-checkout-payment input:focus,
.masterstudy-checkout-container .masterstudy-checkout-payment .StripeElement:focus {
  border-color: #18b39e !important;
  box-shadow: 0 0 0 3px rgba(24,179,158,.18) !important;
  outline: none !important;
}

/* CHECKBOX line (don’t rely on accent-color) */
.masterstudy-checkout-container .wc-privacy-policy-text,
.masterstudy-checkout-container .privacy-policy,
.masterstudy-checkout-container .stm-lms-privacy {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 14px !important;
}
.masterstudy-checkout-container .masterstudy-checkout-payment input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 8px 0 0 !important;
}

/* PAY BUTTON */
.masterstudy-checkout-container .stm_lms_pay_button {
  width: 100% !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-weight: 800 !important;
  background: #18b39e !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(24,179,158,.25) !important;
  transition: transform .06s ease, background .15s ease !important;
}
.masterstudy-checkout-container .stm_lms_pay_button:hover {
  background: #129b88 !important;
  transform: translateY(-1px);
}

/* ===== ERRORS / MESSAGES — keep flat, readable ===== */
.masterstudy-checkout-container .stm-lms-message,
.masterstudy-checkout-container .stm-lms-message_error,
.masterstudy-checkout-container .woocommerce-error {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 10px 0 0 0 !important;
  color: #B3261E !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.masterstudy-checkout-container .woocommerce-error {
  list-style: none !important;
  padding-left: 0 !important;
}
.masterstudy-checkout-container .woocommerce-error li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep spacing before Elementor/Kits promo blocks below checkout */
.masterstudy-checkout-container + .ekit-template-content-markup {
  margin-top: 48px !important;
}

/* ===== LEFT SIDE: Order items card ===== */
.masterstudy-checkout-container .masterstudy-checkout-table {
  background: #fff !important;
  border: 1px solid #DBE0E9 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.06) !important;
  overflow: hidden !important;
  position: relative !important;
  transition: transform .25s ease !important;
}
.masterstudy-checkout-container .masterstudy-checkout-table:hover {
  transform: translateY(-2px);
}

/* Table header/body/footer */
.masterstudy-checkout-container .masterstudy-checkout-table__header {
  background: #F2F5FA !important;
  border-bottom: 1px solid #DBE0E9 !important;
  padding: 14px 18px !important;
  font-weight: 600 !important;
}
.masterstudy-checkout-container .masterstudy-checkout-table__body,
.masterstudy-checkout-container .masterstudy-checkout-table__footer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Rows + thumbs */
.masterstudy-checkout-container .masterstudy-checkout-table__row {
  border-bottom: 1px solid #E8ECF3 !important;
}
.masterstudy-checkout-container .masterstudy-checkout-table__row:last-child {
  border-bottom: 0 !important;
}
.masterstudy-checkout-container .masterstudy-checkout-table__thumb img {
  border-radius: 12px !important;
}

/* ===== RIGHT COLUMN: neutralize inner/top table so it doesn’t look like a 2nd card ===== */
.masterstudy-checkout-container .masterstudy-checkout-container__right-col > .masterstudy-checkout-table,
.masterstudy-checkout-container .masterstudy-checkout-container__right-column > .masterstudy-checkout-table {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Hide the "Become Instructor" avatar/person image on the user account page */
.stm_lms_become_instructor__image {
  display: none !important;
}
/* Add bottom space so the LMS settings buttons aren't overlapped */
.stm_lms_wrapper,
.stm_lms_account,
.stm_lms_user_edit {
  padding-bottom: 240px !important;
  position: relative;
  z-index: 2;
}

/* Ensure the promo/footer block sits below, not on top */
.ekit-template-content-markup,
.ekit-template-content-theme-support {
  clear: both;
  margin-top: 48px !important;
  position: relative;
  z-index: 1;
}

/* Footer should not overlay content */
.site-footer { position: relative !important; z-index: 1; }
