/* Hover CTA styles */
.hover-cta {
  /* reserve space to avoid layout shift */
  border-left: 5px solid transparent;
}
.hover-cta {
  background-color: #eee;
  border-left-color: #7f0000;
  cursor: pointer;
}

.text-bold {
  font-weight:700 !important;
}

/* Address dropdown stacking */
#addressDropdown {
  z-index: 1051; /* ensure dropdown appears above surrounding content */
}

/* Dropdown backdrop to catch outside clicks */
#dropdownBackdrop {
  position: fixed;
  inset: 0; /* cover entire viewport */
  width: 100vw;
  height: 100vh;
  z-index: 1050; /* below dropdown but above page */
  background-color: transparent; /* invisible click-catcher */
}

/* ── Plan horizontal scroller ── */
.plans-scroll-track {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
  /* Gradient fade — updated by has-prev / has-next classes via JS */
  -webkit-mask-image: none;
  mask-image: none;
  transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
}
.plans-scroll-track.has-next {
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 56px), transparent 100%);
  mask-image:         linear-gradient(to right, black calc(100% - 56px), transparent 100%);
}
.plans-scroll-track.has-prev {
  -webkit-mask-image: linear-gradient(to left,  black calc(100% - 56px), transparent 100%);
  mask-image:         linear-gradient(to left,  black calc(100% - 56px), transparent 100%);
}
.plans-scroll-track.has-prev.has-next {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 56px, black calc(100% - 56px), transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 56px, black calc(100% - 56px), transparent 100%);
}
/* Snap to centre — applies to all devices.
   Mouse drag disables this temporarily via JS (scrollSnapType = 'none')
   and restores it on mouseup so the release snaps cleanly. */
.plans-scroll-track {
  scroll-snap-type: x mandatory;
}
.plan-item {
  scroll-snap-align: center;
}
.plans-scroll-track::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}
.plans-scroll-track.grabbing {
  cursor: grabbing;
  user-select: none;
}
.plan-item {
  /* On mobile: show ~85% of a card so the next one peeks through.
     On desktop: fixed 280px. */
  width: min(280px, 82vw);
  min-width: min(280px, 82vw);
}
/* ── Scroll arrow buttons ── */
/* Hide arrows on touch screens — users swipe naturally */
@media (hover: none) and (pointer: coarse) {
  .plans-arrow { display: none !important; }
}
.plans-arrow {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: opacity 0.2s ease, background 0.15s ease;
  color: #495057;
}
.plans-arrow:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}
@media (min-width: 576px) {
.style1 {
    font-size: 18px;
  }
}
.style1 {
  font-weight: bold;
}

/* ── Checkout Progress Steps ── */
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
}
.checkout-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.checkout-step.active .checkout-step-circle {
  background: #7f0000;
  color: #fff;
}
.checkout-step.completed .checkout-step-circle {
  background: #198754;
  color: #fff;
}
.checkout-step-label {
  font-size: 0.72rem;
  color: #6c757d;
  text-align: center;
}
.checkout-step.active .checkout-step-label {
  color: #7f0000;
  font-weight: 600;
}
.checkout-step-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin-bottom: 22px;
  min-width: 20px;
  max-width: 80px;
}
/* Small numbered circle for card headers */
.checkout-step-circle-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Checkout Layout ── */
.checkout-header {
  background: #7f0000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.checkout-stepper-bar {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.checkout-content {
  background: #f8f9fa;
  min-height: calc(100vh - 220px);
}
.checkout-footer {
  background: #fff;
  border-top: 1px solid #dee2e6;
}
.checkout-step-line.completed {
  background: #198754;
}

/* ── Payment Method Selector ── */
.payment-method-option {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.payment-method-option:has(.form-check-input:checked) {
  border-color: #7f0000;
  background: #fff5f5;
}

/* ── Stripe Card Element ── */
.stripe-card-element {
  padding: 12px 14px;
  height: auto;
  min-height: 46px;
}
.stripe-card-element.StripeElement--focus {
  border-color: #7f0000;
  box-shadow: 0 0 0 0.25rem rgba(127,0,0,0.15);
}
.stripe-card-element.StripeElement--invalid {
  border-color: #dc3545;
}

/* ── Responsive: mobile stepper (≤575px) ── */
@media (max-width: 575.98px) {
  .checkout-step-label {
    display: none;
  }
  .checkout-step {
    min-width: 28px;
    gap: 0;
  }
  .checkout-step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .checkout-step-line {
    min-width: 6px;
    max-width: 48px;
  }
}

/* ── Responsive: sidebar ── */
/* Remove sticky behaviour below lg breakpoint (sidebar stacks below form on mobile) */
@media (max-width: 991.98px) {
  .checkout-sidebar-sticky {
    position: relative !important;
    top: auto !important;
  }
}
