/* ============================================
   checkout-modal.css
   Styles for the checkout modal & its sub-components.
   Extracted from inline <style> in checkout-modal.html
   ============================================ */

body.modal-open,
html.modal-open {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

#checkout-modal {
  backdrop-filter: blur(4px);
}

.checkout-sticky-area {
  position: sticky;
  top: 0;
  z-index: 30;
  background: white;
  padding-top: 24px;
}

.checkout-sticky-area::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
  pointer-events: none;
}

#checkoutHeader {
  font-weight: bold;
}

.step-line.active {
  border-top-color: #3b82f6;
}

.login-description {
  font-size: 12px;
  color: #707070;
  margin-bottom: 10px;
  line-height: 1.5;
  padding-top: 5px;
}

.login-secure.hidden {
  display: none !important;
}

form h2 {
  font-size: 16px;
  font-weight: bold;
  padding: 3px 0px 0px;
}

.checkout-modal-login {
  padding: 0 24px;
}

.login-terms {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  text-align: center;
  line-height: 1.5;
}

.add-on-txt {
  margin: unset;
}

/* Scoped to modal only — avoids overriding Tailwind's .font-semibold globally */
#checkout-modal .font-semibold {
  font-weight: 600;
  font-size: 20px;
}

.login-terms a {
  color: #FF7000;
  text-decoration: none;
}

.footer-price-btn {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
}

.addon-item .price-font {
  font-size: 16px;
}

/* ── Stepper grid: circles + lines on row 1, labels on row 2 ── */
.stepper-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  row-gap: 6px;
  color: #9ca3af;
  position: relative;
}
.stepper-grid:before {
    content: "";
    width: calc(100% - 60px);
    height: 0;
    border-top: 2px dashed #d1d5db;
    position: absolute;
    top: 26%;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: white;
  color: #9ca3af;
  font-weight: 600;
  z-index: 1;
}

.step-circle.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.step-line {
  /* width: 100%; */
  height: 0;
  border-top: 2px dashed #d1d5db;
}

.step-label {
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.checkout-step .chd-text {
  font-size: 16px;
  font-weight: 600;
}

.checkout-step .chd-sub-txt {
  font-size: 17px;
  font-weight: 600;
}

.checkout-step.hidden {
  display: none !important;
}

#checkoutNextBtn {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  padding: 1rem 0;
}

.checkout-modal-login .addon-add-btn {
  margin-top: unset;
  position: relative;
  bottom: 13px;
  font-size: 16px;
  padding: 0.35rem 2rem;
}

.chadhawa-counter {
  padding-left: 1.40rem;
  padding-right: 1.40rem;
}

.addon-counter {
  position: relative;
  bottom: 10px;
  background: #fff;
  padding: 0 1.55rem;
  width: 110px;
}

.addon-counter .addon-qty {
  font-size: 16px;
  width: 11px;
}

.addon-counter .addon-plus {
  width: 12px;
}

#apply-coupon-btn {
  margin: 0;
  font-size: 15px!important;
}

.section-headee .gotra {
  display: none;
}
.form-group.memb{
  border: 1px solid #CACACA;
  padding: 16px;
  border-radius: 0 0 12px 12px;
  border-top: none;
}
.form-group .memb-name {
  display: none;
}

.checkout-step {
  max-height: 600px;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* ── Step 1 WhatsApp card ── */
.step1-whatsapp-card {
    border: 1px solid #45C65533;
    border-radius: 12px 12px 0 0;
    padding: 16px;
    background: #45C65533;
}

.wts-heading-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

.step1-whatsapp-card .wts-text {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.step1-whatsapp-card .login-description {
  padding-top: 0;
  margin-bottom: 14px;
}

#orderSuccessPopup {
  backdrop-filter: blur(4px);
}

#step2-footer {
  padding-bottom: unset;
}

#checkout-body {
  padding-bottom: 0;
}

.addon-item {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 0.5px solid #f0f0f0;
}

.addon-item:last-child {
  border-bottom: none;
}

#paybtn {
  font-size: 18px;
  border-radius: 25px;
  padding: 12px 32px;
}

#summaryWrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

#summaryContent {
  padding-top: 10px;
  font-weight: 400;
  font-family: 'Poppins';
}

#summaryWrapper.open {
  max-height: 500px;
}

.pip-disabled {
  opacity: 0.15;
  pointer-events: none;
  z-index: 0 !important;
}

#addon-summary-box {
  padding: 12px;
  font-weight: 400;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
}

.coupon-row {
  padding: 10px 0;
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid #f1f1f1;
  background: #efefef;
  margin-left: -24px;
  margin-right: -24px;
}

.coupon-row span {
  font-size: 14px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  input#dont_know_gotra_step1:focus {
    -webkit-appearance: auto !important;
  }
  .checkout-step {
    max-height: 600px;
  }

  .checkout-step .chd-text {
    font-size: 17px;
  }

  .checkout-step .chd-sub-txt {
    font-size: 14px;
  }

  .checkout-step .wts-text {
    font-size: 13px;
  }

  .memb input {
    width: 115%;
  }

  .form-group label{
    font-size: 14px;
  }
  .form-group input, .form-group select{
    padding: 8px 12px;
    font-size: 14px;
  }
  #checkout-modal {
    align-items: flex-end !important;
    justify-content: center;
    margin-left: -18px;
    margin-right: -18px;
    z-index: 999;
  }

  #checkout-modal > div {
    border-radius: 16px 16px 0 0;
    animation: bottomSheetOpen 0.35s ease forwards;
    overflow-x: hidden;
  }

  @keyframes bottomSheetOpen {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .checkout-modal-login {
    border-radius: 16px 16px 0 0;
  }

  /* Scoped to modal context to avoid conflict with checkout.css */
  #checkout-modal .summary-item {
    padding: 7px;
    margin-bottom: unset;
    margin-top: 10px;
    background: unset !important;
    border-radius: unset;
  }
}
