/* ================================================================
   mobile-checkout.css  — FULLY CORRECTED VERSION
   public/css/mobile-checkout.css
   ================================================================ */

/* ══════════════════════════════════════════════════════════════
   MOBILE ONLY  (< 992px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

    /* ── CORE FIX: override Bootstrap flex row ── */
.checkout-container > .row {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.col-lg-8.order-2 {
  display: none !important;
}

  /* ── FIX: prevent Bootstrap row negative margins from causing
     horizontal overflow that breaks the fixed bar ── */
  .checkout-container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ── FIX: prevent any horizontal scroll ── */
  body.checkout-page {
    overflow-x: hidden;
  }

  /* ── Hide the left column — shown as bottom sheets instead ── */
  .col-lg-8.order-2 {
    display: none !important;
  }

  /* ── Right column takes full width ── */
  .col-lg-4.order-1 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 120px;
  }

  /* ── Sticky progress bar at bottom ── */
  #mobileCheckoutBar {
    position: fixed;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    width: 70% !important;
    z-index: 9000;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 12px 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }

  .mcb-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
  }

  .mcb-dot {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #e8e8e8;
    transition: background 0.3s;
  }

  .mcb-dot.done    { background: #bd252a; }
  .mcb-dot.current { background: #bd252a; opacity: 0.5; }

  .mcb-cta {
    width: 100%;
    background: #bd252a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    box-sizing: border-box;
  }

  .mcb-cta:active   { transform: scale(0.98); }
  .mcb-cta:disabled { background: #e08080; cursor: wait; }

  .mcb-user-info {
    font-size: 12px;
    color: #555;
    text-align: center;
    margin-top: 6px;
  }

  /* ── Address chip in bottom bar ── */
  .mcb-addr-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    box-sizing: border-box;
  }

  .mcb-addr-chip svg { flex-shrink: 0; color: #bd252a; }

  .mcb-addr-text { flex: 1; min-width: 0; }

  .mcb-addr-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mcb-addr-text span {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .mcb-addr-change {
    font-size: 12px;
    color: #bd252a;
    font-weight: 700;
    flex-shrink: 0;
  }

  /* ── Bottom Sheet Overlay ── */
  .mcs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9500;
    display: none;
    align-items: flex-end;
  }

  .mcs-overlay.open {
    display: flex;
    animation: mcsOverlayIn 0.2s ease;
  }

  @keyframes mcsOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ── Sheet card ── */
  .mcs-sheet {
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mcsSheetIn 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 16px);
    box-sizing: border-box;
  }

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

  .mcs-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 0;
  }

  .mcs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
  }

  .mcs-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0;
  }

  .mcs-close {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: inherit;
  }

  .mcs-body {
    padding: 16px 20px 24px;
    box-sizing: border-box;
  }

  /* ── Login sheet ── */
  .mcs-phone-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color 0.2s;
  }

  .mcs-phone-input:focus-within { border-color: #bd252a; }

  .mcs-phone-prefix {
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #e0e0e0;
    height: 52px;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    flex-shrink: 0;
  }

  .mcs-phone-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 16px;
    font-family: inherit;
    height: 52px;
    background: transparent;
  }

  .mcs-otp-field {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    font-family: inherit;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
  }

  .mcs-otp-field:focus { border-color: #bd252a; }

  .mcs-btn-primary {
    width: 100%;
    background: #bd252a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
  }

  .mcs-btn-primary:disabled { background: #e08080; cursor: not-allowed; }

  .mcs-terms {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
  }

  .mcs-terms a { color: #bd252a; text-decoration: none; }

  .mcs-resend {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 10px;
  }

  .mcs-resend button {
    background: none;
    border: none;
    color: #bd252a;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
  }

  /* ── Delivery type cards ── */
  .mcs-delivery-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mcs-delivery-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
  }

  .mcs-delivery-card.selected {
    border-color: #bd252a;
    background: #fff5f5;
  }

  .mcs-dc-icon { font-size: 26px; }
  .mcs-dc-info { flex: 1; }
  .mcs-dc-title { font-size: 15px; font-weight: 700; color: #111; }
  .mcs-dc-sub   { font-size: 12px; color: #888; margin-top: 2px; }

  .mcs-dc-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
  }

  .mcs-delivery-card.selected .mcs-dc-radio {
    border-color: #bd252a;
    background: #bd252a;
  }

  .mcs-delivery-card.selected .mcs-dc-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
  }

  /* ── Address form ── */
  .mcs-field-group { margin-bottom: 14px; }

  .mcs-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 6px;
  }

  .mcs-input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    box-sizing: border-box;
  }

  .mcs-input:focus     { border-color: #bd252a; }
  .mcs-input.is-valid  { border-color: #198754; }
  .mcs-input.is-invalid{ border-color: #dc3545; }

  .mcs-field-row { display: flex; gap: 10px; }
  .mcs-field-row .mcs-field-group { flex: 1; }

  .mcs-pincode-msg { font-size: 12px; margin-top: 4px; }
  .mcs-pincode-msg.success { color: #198754; }
  .mcs-pincode-msg.error   { color: #dc3545; }

  /* ── Payment options ── */
  .mcs-payment-opts { display: flex; flex-direction: column; gap: 10px; }

  .mcs-pay-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
  }

  .mcs-pay-opt.selected { border-color: #bd252a; background: #fff5f5; }
  .mcs-pay-opt img  { width: 32px; height: 32px; object-fit: contain; }
  .mcs-pay-opt span { font-size: 15px; font-weight: 600; color: #111; flex: 1; }

  /* ── Schedule UI ── */
  .mcs-schedule-ui { margin-top: 14px; }

  .mcs-date-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    margin-bottom: 14px;
  }

  .mcs-date-scroll::-webkit-scrollbar { display: none; }

  /* ── Store info ── */
  .mcs-store-info {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  .mcs-store-info h6 { font-weight: 700; color: #111; margin-bottom: 4px; }
  .mcs-store-info p  { font-size: 13px; color: #555; margin: 0; line-height: 1.5; }

} /* end @media (max-width: 991.98px) */


/* ══════════════════════════════════════════════════════════════
   DESKTOP ONLY  (≥ 992px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
  #mobileCheckoutBar { display: none !important; }
  .mcs-overlay       { display: none !important; }
}
@media (max-width: 767px) {
  .checkout-logoimg{
  height: 45px;
}
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL (applies to all screen sizes)
   Prevent horizontal overflow from Bootstrap containers
   ══════════════════════════════════════════════════════════════ */
