/* ============================================
   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 {
  background: #22c55e;
}

.login-description {
  font-size: 14px;
  color: #666;
  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;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: white;
}

.step-circle.active {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.step-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
  margin: 0 -17px 20px -6px;
}

.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 {
  padding: 0.5rem 10rem;
  border-radius: 8px;
}

.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  color: #10B981;
  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-name {
  display: none;
}

.checkout-step {
  max-height: 600px;
}

#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) {

  .checkout-step {
    max-height: 600px;
  }

  #checkoutNextBtn {
    padding: 0.5rem 8rem;
  }

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

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

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

  .memb input {
    width: 115%;
  }

  #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;
  }
}

@media (min-width: 395px) and (max-width: 490px) {
  #checkoutNextBtn {
    padding: 0.5rem 9rem 0.5rem 9.8rem;
  }
}
