/* ==========================================================================
   LGT - LAITH GLOBAL GENERAL TRADING (UAE)
   Dedicated Checkout Page Stylesheet (Moglix Reference Design Replica)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Checkout Page Base & Reset
   -------------------------------------------------------------------------- */
html {
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body.checkout-body {
  background-color: #f1f4f8;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
  color: #1e293b;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* --------------------------------------------------------------------------
   Top Minimal Checkout Header (Matching Moglix Screenshots)
   -------------------------------------------------------------------------- */
.checkout-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.checkout-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.checkout-logo-wrap img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.checkout-years-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1.5px solid #cbd5e1;
  padding-left: 14px;
}

.years-number {
  font-size: 20px;
  font-weight: 900;
  color: #ea580c;
  line-height: 1;
}

.years-text {
  font-size: 9.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

/* Trust Badges Strip (Top Right) */
.checkout-trust-badges {
  display: flex;
  align-items: center;
  gap: 22px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: capitalize;
}

.trust-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0847aa;
}

.trust-badge-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Mobile Top Bar (Matching Moglix Mobile Screenshots)
   -------------------------------------------------------------------------- */
.checkout-mobile-header {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.mobile-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.btn-mobile-back {
  background: transparent;
  border: none;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.btn-mobile-back:hover {
  background: #f1f5f9;
}

.mobile-page-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-saved-label {
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 600;
}

.mobile-saved-value {
  font-size: 13px;
  color: #16a34a;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Main Checkout Layout Container
   -------------------------------------------------------------------------- */
.checkout-main-wrap {
  max-width: 1320px;
  margin: 20px auto 40px;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Left Column: Delivery Address & Cart Content
   -------------------------------------------------------------------------- */
.checkout-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

/* Delivery Address Header Card (State 1 & 2) */
.delivery-address-header-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.btn-add-address-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #005BB7;
  border: 1px solid #005BB7;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-address-outline:hover {
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(0, 91, 183, 0.15);
}

/* Delivery Address Saved State (State 4 - Screenshot 4) */
.delivery-address-saved-card {
  padding: 16px 20px;
}

.saved-address-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.saved-address-deliver-to {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.saved-address-deliver-to strong {
  color: #0847aa;
}

.btn-change-address {
  background: #eff6ff;
  color: #005BB7;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-address:hover {
  background: #dbeafe;
}

.saved-address-lines {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

.saved-address-mobile {
  font-size: 12.5px;
  color: #1e293b;
  margin-top: 4px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Change Delivery Address View (Moglix media_1794859882925_4b84b167.png)
   -------------------------------------------------------------------------- */
.delivery-address-manage-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-manage-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.btn-address-back {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.btn-address-back:hover {
  background: #e2e8f0;
}

.btn-address-back svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.address-manage-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.address-manage-card {
  padding: 24px;
  background: #ffffff;
}

.saved-addresses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.address-select-item {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.address-select-item.selected {
  border-color: #005BB7;
}

.address-select-radio-col {
  padding-top: 2px;
}

.custom-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #005BB7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.custom-radio-circle .radio-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #005BB7;
}

.address-select-details-col {
  flex: 1;
  min-width: 0;
}

.address-select-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.address-select-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 4px;
  word-break: break-word;
}

.address-select-mobile {
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 14px;
}

.address-select-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-deliver-here {
  background: #005BB7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 91, 183, 0.25);
  transition: all 0.15s ease;
}

.btn-deliver-here:hover {
  background: #004b99;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 91, 183, 0.35);
}

.btn-edit-address {
  background: #eff6ff;
  color: #005BB7;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-edit-address:hover {
  background: #dbeafe;
}

.btn-add-new-address-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #005BB7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 18px 0 0;
  transition: color 0.15s ease;
}

.btn-add-new-address-link:hover {
  color: #004b99;
  text-decoration: underline;
}

/* Delivery Address Form Card (State 3 - Screenshot 3) */
.delivery-address-form-card {
  padding: 22px 24px;
}

.address-form-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 18px;
}

.address-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-input {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #0847aa;
  box-shadow: 0 0 0 3px rgba(8, 71, 170, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.form-label-floating {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

/* Phone input with Verified Badge (Screenshot 3) */
.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-input-wrap .form-input {
  width: 100%;
  padding-right: 90px;
}

.badge-phone-verified {
  position: absolute;
  right: 8px;
  background: #15803d;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Blue "USE MY LOCATION" Button */
.btn-use-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #005BB7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  height: 44px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-use-location:hover {
  background: #004b99;
  box-shadow: 0 2px 8px rgba(0, 91, 183, 0.25);
}

.btn-use-location svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Form Action Buttons (Cancel & Save Address) */
.address-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.btn-form-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-form-cancel:hover {
  background: #e2e8f0;
}

.btn-form-save {
  background: #cbd5e1;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 30px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.btn-form-save.active {
  background: #005BB7;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 91, 183, 0.25);
}

.btn-form-save.active:hover {
  background: #004b99;
  box-shadow: 0 4px 14px rgba(0, 91, 183, 0.35);
}


/* --------------------------------------------------------------------------
   Get VAT Invoice Card (Moglix Screenshot 1 & 3)
   -------------------------------------------------------------------------- */
.vat-invoice-card {
  padding: 14px 18px;
  background: #ffffff;
}

.vat-invoice-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.vat-invoice-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #005BB7;
  cursor: pointer;
  flex-shrink: 0;
}

.vat-invoice-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vat-invoice-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.vat-invoice-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.vat-invoice-sub strong {
  color: #15803d;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   View Coupons & Offers Row Card (Moglix Screenshot 1 & 3)
   -------------------------------------------------------------------------- */
.view-coupons-card {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.view-coupons-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.view-coupons-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coupon-ticket-svg {
  flex-shrink: 0;
}

.view-coupons-title {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.4px;
}

.chevron-right-svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Cart Items Box (Matching Screenshot 1 & 2)
   -------------------------------------------------------------------------- */
.cart-items-card {
  padding: 0;
}

/* Express Delivery Strip inside Cart Card (Moglix Screenshot 1) */
.item-express-delivery-strip {
  background: #2b2d30;
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.bolt-symbol {
  color: #eab308;
  font-size: 13px;
}

.cart-items-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbfcfe;
}

.cart-item-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #005BB7;
  cursor: pointer;
}

.cart-count-heading {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

/* Product Item Row */
.cart-item-row {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-thumb {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin: 0 0 6px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-title:hover {
  color: #0847aa;
}

.cart-item-pricing-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.cart-item-mrp {
  text-decoration: line-through;
  color: #94a3b8;
}

.cart-item-price-current {
  font-weight: 700;
  color: #0f172a;
}

/* Quantity Selector & Right Pricing Block */
.cart-item-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.qty-control-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.btn-qty-trash,
.btn-qty-minus,
.btn-qty-plus {
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.btn-qty-trash:hover {
  background: #fee2e2;
  color: #dc2626;
}

.btn-qty-minus:hover,
.btn-qty-plus:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-qty-trash svg,
.btn-qty-minus svg,
.btn-qty-plus svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.qty-input-field {
  width: 36px;
  height: 32px;
  border: none;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  background: #ffffff;
}

.cart-item-right-price {
  text-align: right;
}

.cart-item-final-price {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

.price-details-link {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 2px;
}

.cart-item-shipping-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 4px;
}

.cart-item-shipping-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Green Promo Banner Strip */
.cart-promo-strip {
  background: #dcfce7;
  border-top: 1px solid #bbf7d0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.promo-strip-text {
  color: #15803d;
  font-weight: 700;
}

.btn-add-products-link {
  color: #0284c7;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11.5px;
}

.btn-add-products-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Proceed CTA Actions Area (Screenshots 1, 2, 4)
   -------------------------------------------------------------------------- */
.cart-checkout-actions-row {
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  background: #ffffff;
}

/* State 1: SIGN IN TO PROCEED Button (Moglix Screenshot 1) */
.btn-sign-proceed {
  background: #005BB7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 13px 30px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 91, 183, 0.25);
  transition: all 0.2s ease;
}

.btn-sign-proceed:hover {
  background: #004b99;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 91, 183, 0.35);
}

/* State 2 & 4: PROCEED TO PAY Button (Moglix Screenshot 2 & 4) */
.btn-proceed-to-pay {
  background: #005BB7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 91, 183, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 195px;
  gap: 22px;
  text-decoration: none;
}

.btn-proceed-to-pay:hover {
  background: #004b99;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 91, 183, 0.35);
}

/* State 4: Blue Proceed to Pay (Moglix Screenshot 4) */
.btn-proceed-to-pay.state-saved-blue {
  background: #005BB7;
  box-shadow: 0 2px 8px rgba(0, 91, 183, 0.25);
}

.btn-proceed-to-pay.state-saved-blue:hover {
  background: #004b99;
  box-shadow: 0 4px 14px rgba(0, 91, 183, 0.35);
}

.btn-pay-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.pay-btn-label {
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.25;
}

.pay-btn-amount {
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-top: 3px;
  letter-spacing: 0.2px;
}

.btn-proceed-to-pay svg.chevron-right {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.btn-proceed-to-pay:hover svg.chevron-right {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Recommendations Carousel Sections ("You May Be Interested In")
   -------------------------------------------------------------------------- */
.checkout-recommendations-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.recom-header-row {
  margin-bottom: 14px;
}

.recom-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.recom-tabs {
  display: flex;
  gap: 8px;
}

.recom-tab {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #005BB7;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.recom-products-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.recom-prod-card {
  flex: 0 0 148px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recom-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.recom-badge-lowest {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dcfce7;
  color: #15803d;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}

.recom-thumb-box {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.recom-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.recom-rating {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}

.recom-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  height: 31px;
  overflow: hidden;
  margin: 0 0 6px;
}

.recom-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.recom-price-current {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.recom-price-disc {
  font-size: 10px;
  font-weight: 700;
  color: #16a34a;
}

/* --------------------------------------------------------------------------
   Right Column: Payment Summary & Apply Coupon
   -------------------------------------------------------------------------- */
.checkout-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 76px;
}

.summary-card {
  padding: 20px;
}

.summary-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}

.summary-rows-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.summary-line-row.discount-row {
  color: #15803d;
  font-weight: 700;
}

.summary-line-subtext {
  font-size: 10.5px;
  color: #94a3b8;
  display: block;
}

.summary-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 14px 0 12px;
}

.summary-payable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.summary-payable-amount {
  font-size: 18px;
  color: #0f172a;
}

.savings-banner-strip {
  background: #f0fdf4;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Apply Coupon Box */
.coupon-card {
  padding: 20px;
}

.coupon-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  outline: none;
}

.coupon-input:focus {
  border-color: #0847aa;
}

.btn-apply-coupon {
  background: #005BB7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-apply-coupon:hover {
  background: #004b99;
}

.coupon-empty-state {
  text-align: center;
  padding: 20px 0 10px;
  color: #94a3b8;
  font-size: 12px;
}

.coupon-empty-state svg {
  width: 44px;
  height: 44px;
  fill: #cbd5e1;
  margin-bottom: 6px;
}

/* Interactive Coupon Available Pills */
.available-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.coupon-pill-item {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfcfe;
  cursor: pointer;
  transition: all 0.15s ease;
}

.coupon-pill-item:hover {
  border-color: #0847aa;
  background: #eff6ff;
}

.coupon-pill-code {
  font-size: 12px;
  font-weight: 800;
  color: #0847aa;
}

.coupon-pill-desc {
  font-size: 11px;
  color: #475569;
}

.coupon-pill-apply {
  font-size: 11px;
  font-weight: 800;
  color: #005BB7;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Payment Gateway Modal (Triggered by PROCEED TO PAY)
   -------------------------------------------------------------------------- */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.payment-modal-overlay.active {
  display: flex;
}

.payment-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.payment-modal-header {
  background: #005BB7;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-modal-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-payment-modal {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.payment-modal-body {
  padding: 20px;
}

.payment-amount-summary-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.payment-methods-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
  gap: 4px;
}

.pay-tab-btn {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pay-tab-btn.active {
  color: #005BB7;
  border-bottom-color: #005BB7;
  background: #f0f7ff;
}

.pay-tab-panel {
  display: none;
}

.pay-tab-panel.active {
  display: block;
}

.btn-confirm-payment {
  width: 100%;
  height: 48px;
  background: #005BB7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 91, 183, 0.28);
  margin-top: 18px;
  transition: all 0.2s ease;
}

.btn-confirm-payment:hover {
  background: #004b99;
}

/* Order Success State Modal */
.order-success-box {
  text-align: center;
  padding: 30px 20px;
}

.success-check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-check-circle svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Full-Width / Bottom Recommendations Column
   -------------------------------------------------------------------------- */
.checkout-bottom-recom-col {
  grid-column: 1 / -1;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Fixed Sticky Bottom Action Bar (Screenshots 1, 3, 4)
   -------------------------------------------------------------------------- */
.checkout-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  z-index: 99;
  width: 100%;
  box-sizing: border-box;
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.sticky-bar-amount-wrap {
  display: flex;
  flex-direction: column;
}

.sticky-amount-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.info-svg {
  color: #005BB7;
}

.sticky-amount-value {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.sticky-bar-cta-wrap {
  display: flex;
  align-items: center;
}

.btn-sticky-cta {
  background: #005BB7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 91, 183, 0.25);
  white-space: nowrap;
}

.btn-sticky-cta:hover {
  background: #004b99;
  box-shadow: 0 4px 12px rgba(0, 91, 183, 0.35);
}

/* --------------------------------------------------------------------------
   Responsive Adaptations (100% Mobile & Tablet Optimized, Zero Horizontal Scroll)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body.checkout-body {
    padding-bottom: 74px;
  }
  .checkout-main-wrap {
    padding: 0 16px;
    margin: 16px auto 30px;
  }
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .checkout-left-col,
  .checkout-right-col,
  .checkout-bottom-recom-col {
    width: 100%;
    min-width: 0;
  }
  .checkout-right-col {
    position: static;
  }
  .checkout-sticky-bar {
    display: block;
  }
  .cart-checkout-actions-row {
    display: none;
  }
}

@media (max-width: 768px) {
  .checkout-header {
    display: none;
  }
  .checkout-mobile-header {
    display: block;
  }
  body.checkout-body {
    padding-bottom: 76px;
    background-color: #f8fafc;
  }
  .checkout-main-wrap {
    padding: 0 10px;
    margin: 10px auto 20px;
  }
  .checkout-grid {
    gap: 12px;
  }
  .checkout-left-col {
    gap: 12px;
  }

  /* Address Card in initial state (Screenshot 1) */
  .delivery-address-header-card {
    padding: 14px 16px;
    display: flex;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
  }
  .delivery-header-title {
    display: none;
  }
  .btn-add-address-outline {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 6px;
  }

  /* Delivery Address Saved State (Screenshot 4) */
  .delivery-address-saved-card {
    padding: 14px 16px;
  }
  .saved-address-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .saved-address-deliver-to {
    font-size: 13.5px;
    line-height: 1.4;
  }
  .btn-change-address {
    padding: 5px 12px;
    font-size: 11px;
    align-self: flex-start;
  }

  /* Address Management View (Mobile) */
  .address-manage-card {
    padding: 14px;
  }
  .address-select-item {
    padding: 12px;
  }
  .address-select-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-deliver-here,
  .btn-edit-address {
    padding: 7px 16px;
    font-size: 11px;
  }
  .btn-add-new-address-link {
    font-size: 12px;
    padding-top: 12px;
  }

  /* Form */
  .delivery-address-form-card {
    padding: 16px 14px;
  }
  .address-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .btn-use-location {
    height: 42px;
    font-size: 12px;
  }
  .address-form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn-form-cancel,
  .btn-form-save {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    padding: 0;
  }

  /* Cart Items */
  .cart-item-row {
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
  }
  .cart-item-thumb {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
  }
  .cart-item-info {
    min-width: 0;
    flex: 1;
  }
  .cart-item-title {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cart-item-pricing-sub {
    margin-bottom: 8px;
    font-size: 11.5px;
  }
  .cart-item-actions-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .cart-item-right-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .cart-item-final-price {
    font-size: 14.5px;
  }
  .cart-item-shipping-badge {
    font-size: 10.5px;
    margin-top: 2px;
  }
  .qty-control-box {
    height: 30px;
    flex-shrink: 0;
  }
  .btn-qty-trash,
  .btn-qty-minus,
  .btn-qty-plus {
    width: 28px;
    height: 28px;
  }
  .qty-input-field {
    width: 28px;
    font-size: 12px;
  }

  /* Promo Strip */
  .cart-promo-strip {
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
  }
  .btn-add-products-link {
    font-size: 11px;
    white-space: nowrap;
  }

  /* Hide Desktop Cart Action Row on Mobile since sticky bar is used */
  .cart-checkout-actions-row {
    display: none;
  }

  /* Payment Summary Card on Mobile */
  .summary-card {
    padding: 16px 14px;
  }
  .summary-card-title {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .summary-line-row {
    font-size: 12.5px;
  }
  .summary-payable-row {
    font-size: 15px;
  }
  .summary-payable-amount {
    font-size: 17px;
  }
  .savings-banner-strip {
    font-size: 11.5px;
    padding: 8px 12px;
  }

  /* Apply Coupon */
  .coupon-card {
    padding: 16px 14px;
  }

  /* Recommendations */
  .checkout-recommendations-section {
    padding: 14px 12px;
  }
  .recom-section-title {
    font-size: 14px;
  }
  .recom-prod-card {
    flex: 0 0 135px;
    padding: 8px;
  }
  .recom-thumb-box {
    height: 95px;
  }
  .recom-title {
    font-size: 11px;
    height: 30px;
  }
  .recom-price-current {
    font-size: 13px;
  }

  /* Payment Modal */
  .payment-modal {
    max-width: 95vw;
    margin: 10px;
  }
  .payment-modal-body {
    padding: 16px 14px;
  }
  .payment-methods-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .payment-methods-tabs::-webkit-scrollbar {
    display: none;
  }
  .pay-tab-btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 11.5px;
  }
}
