/* ============================================================
   CHECKOUT PAGE STYLES (with Locked Read-Only Mode)
============================================================ */
.sf-checkout-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0px 0px 60px;
  box-sizing: border-box;
}

.sf-checkout-inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 25px;
}

.sf-section {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 20px 18px;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
}

/* Locked (Read-only) state */
.sf-locked {
  opacity: 0.6;
  filter: grayscale(40%);
}

.sf-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1e891d;
  font-size: 0.9rem;
  gap: 6px;
  border-radius: 12px;
  z-index: 5;
  text-align: center;
}
.sf-lock-overlay i {
  color: var(--color-primary);
  width: 22px;
  height: 22px;
}

/* Section title */
.sf-section-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

/* Payment & Summary */
.sf-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-summary-row,
.sf-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.sf-summary-total strong {
  font-size: 1.1rem;
  color: #111;
}

.w-full { width: 100%; }

/* ============================================================
   LOGIN / AUTH SECTION (Fluid Inline Slider)
============================================================ */
.sf-auth-section {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto 20px;
  transition: height 0.3s ease;
}

/* LOGIN HEADER */
.sf-auth-section .auth-icon {
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

.sf-auth-section h2 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.sf-auth-section p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 14px;
}

/* LOGIN CONTAINER */
.sf-login-container {
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

/* Slide login left when signup active */
.sf-auth-section.signup-active .sf-login-container {
  transform: translateX(-100%);
}

/* SIGNUP SLIDER */
.sf-signup-slider {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-sizing: border-box;
  transition: left 0.35s ease;
  z-index: 2;
}

.sf-auth-section.signup-active .sf-signup-slider {
  left: 0;
}

/* Signup Steps */
.sf-step {
  transition: opacity 0.3s ease, transform 0.35s ease;
  width: 100%;
}

.sf-step.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Signup Header */
.sf-signup-header h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Text links */
.sf-alt-text {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
}

.sf-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.sf-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .sf-auth-section {
    padding: 16px;
    margin-bottom: 16px;
  }
}

/* ============================================================
   Input Field â€” Final Style (Icons stay visible)
============================================================ */
.sf-input {
  display: flex;
  align-items: center;
  border: 1px solid #e1e5e1;
  border-radius: 8px;
  padding: 12px 16px;
  background: #f7f9f7;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* Lucide icons (SVG) */
.sf-input svg {
  width: 20px;
  height: 20px;
  color: #bbb;
  stroke: #bbb;
  margin-right: 14px;
  flex-shrink: 0;
  transition: stroke 0.25s ease;
}

.sf-input input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  color: #222;
  line-height: 1.4;
  padding: 2px 0;
}

/* Placeholder tone + fade-out on type */
.sf-input input::placeholder {
  color: #bbb;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.sf-input.has-text input::placeholder {
  opacity: 0;
}

/* Focus feedback */
.sf-input:focus-within {
  border-color: var(--color-primary);
  background: #fff;
}

.sf-input:focus-within svg {
  stroke: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   Footer Text + Link under Login
============================================================ */
.sf-divider {
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.sf-alt-text {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 10px;
}

.sf-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.sf-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Payment Method â€” Icon-Only Grid Layout (v2.1 Clean Border)
============================================================ */
.sf-mop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 12px;
  justify-items: center;
}

.sf-mop-icon-only {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent; /* only this border will show green */
  border-radius: 10px;
  padding: 2px 5px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sf-mop-icon-lg {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;        /* remove internal box shadow */
  padding: 0px;
  transition: transform 0.2s ease;
  border: none;            /* âœ… remove image border */
}

/* Hide the actual radio input */
.sf-mop-icon-only input[type="radio"] {
  display: none;
}

/* Hover state */
.sf-mop-icon-only:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

/* Selected state â€” highlight label border */
.sf-mop-icon-only input[type="radio"]:checked ~ .sf-mop-icon-lg,
.sf-mop-icon-only input[type="radio"]:checked + .sf-mop-icon-lg {
  transform: scale(1.05);
}

.sf-mop-icon-only:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.25);
}

/* Scroll wrapper */
.sf-mop-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar in Firefox */
}
.sf-mop-scroll::-webkit-scrollbar {
  display: none; /* Hide scrollbar in WebKit browsers */
}

/* Make grid wide enough to scroll smoothly */
.sf-mop-scroll .sf-mop-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(80px, 1fr);
  gap: 12px;
  justify-items: center;
  padding: 4px 2px;
}

/* Only apply scroll on smaller devices */
@media (min-width: 601px) {
  .sf-mop-scroll {
    overflow-x: visible; /* Disable scrolling on desktop */
  }
  .sf-mop-scroll .sf-mop-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-auto-flow: row;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .sf-mop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Responsive */
@media (max-width: 600px) {
  .sf-checkout-wrapper {
    padding: 0px 0px 60px;
  }
}
.sf-lock-overlay[hidden] {
  display: none !important;
}

/* ============================================================
   ðŸ§¾ Checkout Cart Section Override â€” Hide Remove Column
   (Keeps slider layout intact)
============================================================ */
.sf-cart-section .sf-cart-row {
  grid-template-columns: 52px 1fr 60px !important; /* remove the 30px column */
}

.sf-cart-section .sf-cart-remove {
  display: none !important; /* fully hide remove button */
}

.sf-cart-section .sf-cart-subtotal {
  text-align: right;
  padding-right: 4px; /* keeps subtotal aligned cleanly */
}
.sf-cart-instruction {
  font-style: italic;
  font-size: 13px;
  color: #555;
  line-height: 1.3;
  margin-top: 1px;
}

/* ============================================================
   🚚 DELIVERY & CUSTOMER DETAILS — v6 Full Responsive Override
   (Replaces all previous delivery section styles)
============================================================ */
.sf-delivery-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 20px 18px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.sf-delivery-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   🔹 FORM ROWS — label + field always in one line
============================================================ */
.sf-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

/* Label sizing */
.sf-form-row label {
  flex: 0 0 auto;
  min-width: 100px;
  max-width: 140px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
}

/* Inputs & Selects — flexible width */
.sf-form-row input[type="text"],
.sf-form-row input[type="date"],
.sf-form-row select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0; /* prevent overflow */
  border: 1px solid #e1e5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #222;
  background: #f7f9f7;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

/* Uppercase formatting for customer + address fields */
.sf-uppercase {
  text-transform: uppercase;
}

/* Focused field feedback */
.sf-form-row input:focus,
.sf-form-row select:focus {
  border-color: var(--color-primary);
  background: #fff;
  outline: none;
}

/* Read-only appearance */
.sf-form-row input[readonly] {
  background: #f2f5f2;
  border: 1px solid #e0e0e0;
  color: #444;
  cursor: not-allowed;
}

/* ============================================================
   🔹 ADD NEW ADDRESS BUTTON — full width, aligned
============================================================ */
.sf-btn-row {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

#btn-add-address {
  width: 100%; /* ✅ matches field width */
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  box-sizing: border-box;
}

#btn-add-address:hover {
  background: var(--color-primary-dark);
  transform: scale(1.02);
}

#btn-add-address i {
  width: 16px;
  height: 16px;
}

/* ============================================================
   🔹 RESPONSIVE BEHAVIOR — maintain single-line form rows
============================================================ */
@media (max-width: 900px) {
  .sf-form-row label {
    max-width: 120px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .sf-delivery-section {
    padding: 18px 14px;
  }

  .sf-form-row label {
    max-width: 100px;
    font-size: 0.9rem;
  }

  .sf-form-row input,
  .sf-form-row select {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  #btn-add-address {
    width: 100%;
    font-size: 0.85rem;
    padding: 9px 14px;
  }
}

@media (max-width: 480px) {
  .sf-delivery-section {
    padding: 16px 12px;
  }
  .sf-form-row {
    gap: 8px;
  }
  .sf-form-row label {
    max-width: 90px;
    font-size: 0.85rem;
  }
  .sf-form-row input,
  .sf-form-row select {
    font-size: 0.85rem;
    padding: 8px 9px;
  }
}

/* ============================================================
   📝 ORDER NOTE STYLES
   ------------------------------------------------------------
   Compact, minimal textarea with soft rounded box and subtle shadow
============================================================ */
.sf-note-section {
  margin-top: 20px;
}

.sf-note-box {
  position: relative;
  margin-top: 10px;
}

.sf-note-textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-note-textarea:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
  outline: none;
}

.sf-note-textarea[disabled] {
  background-color: #f9f9f9;
  color: #777;
  cursor: not-allowed;
}
/* ============================================================
   🛒 FRESHMARKET CHECKOUT — FLAT MOBILE LAYOUT (FINAL)
   ------------------------------------------------------------
   Unified flat-card system for checkout view
============================================================ */

/* ========== BASE CARD LAYOUT ========== */
.sf-flat-card {
  position: relative;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ========== CARD HEADER (Unified Green Title System) ========== */
.sf-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.sf-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Generic icon styling — reusable for all cards */
.sf-card-header i,
.sf-header-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Edit button remains consistent */
.sf-card-edit-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.sf-card-edit-btn:hover {
  color: var(--color-primary-dark);
}


/* ========== STANDARD ROWS (used in customer & cart cards) ========== */
.sf-flat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-flat-icon {
  color: var(--color-primary, #28a745);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sf-flat-name strong {
  font-weight: 600;
  color: #111;
}

.sf-flat-address {
  flex: 1;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.sf-flat-row label {
  font-size: 13px;
  color: #222;
  flex-shrink: 0;
}

.sf-flat-date {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

/* ========== DELIVERY OPTION ========== */
.sf-delivery-option-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fafafa;
}

.sf-option-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-option-icon {
  color: var(--color-primary, #28a745);
  width: 20px;
  height: 20px;
}

.sf-option-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.sf-option-sub {
  font-size: 12px;
  color: #666;
}

.sf-option-fee {
  font-weight: 600;
  color: #111;
  font-size: 14px;
}

/* ========== SUMMARY SECTION ========== */
.sf-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
}

.sf-summary-row strong {
  font-weight: 600;
}

/* ========== FLOATING PLACE-ORDER BAR (LEFT TEXT + RIGHT TOTAL) ========== */
.sf-floating-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary, #28a745);
  border-radius: 10px;
  color: #fff;
  padding: 14px 24px;
  min-width: 280px;
  max-width: 90%;
  width: 380px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.sf-floating-bar:hover {
  background: #23923d;
  transform: translateX(-50%) scale(1.02);
}

/* Left content: icon + label */
.sf-floating-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.sf-floating-left i {
  width: 18px;
  height: 18px;
}

/* Right content: amount */
.sf-floating-amount {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

/* Optional button element styling */
.sf-floating-bar .sf-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  display: contents; /* inherit layout from parent flex */
  cursor: pointer;
}

/* ========== LOCK OVERLAY (GUEST MODE) ========== */
.sf-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #444;
  z-index: 5;
}

.sf-lock-overlay i {
  width: 22px;
  height: 22px;
  color: var(--color-primary, #28a745);
  margin-bottom: 6px;
}

/* ============================================================
   Slide-in Address Panel (Checkout)
============================================================ */
.sf-slide-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
  transition: right 0.35s ease-in-out;
  display: flex;
  flex-direction: column;
}
.sf-slide-panel.active { right: 0; }

.sf-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}
.sf-panel-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #155724;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-panel-close {
  background: none;
  border: none;
  cursor: pointer;
}

.sf-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.sf-address-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
}
.sf-address-item.active {
  border-color: #28a745;
  background: #e8f9ee;
}
.sf-address-item strong {
  display: block;
  font-size: 15px;
  color: #155724;
}
.sf-address-item span {
  display: block;
  color: #555;
  font-size: 14px;
  margin-top: 2px;
}

.sf-panel-footer {
  padding: 14px;
  border-top: 1px solid #eee;
  background: #fff;
  margin-bottom: 60px;
}
.sf-btn-primary {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.sf-btn-primary:hover { background: #218838; }

.sf-back-icon {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

/* ============================================================
   Add Address Form Styles  (Responsive Hybrid Alignment)
============================================================ */
.sf-add-address {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease-in-out;
  transform: translateX(100%);
}
.sf-add-address.active { transform: translateX(0); }
.sf-add-address.hidden { display: none; }

.sf-form-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}
/* ============================================================
   Add Address Form Styles — Mobile Only + Fixed Footer
============================================================ */
.sf-add-address {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s ease-in-out;
  transform: translateX(100%);
}

/* Slide in when active */
.sf-add-address.active {
  transform: translateX(0);
}
.sf-add-address.hidden {
  display: none;
}

/* ✅ Visible only on mobile */
@media (min-width: 769px) {
  .sf-add-address {
    display: none !important;
  }
}

/* Prevent background scroll when panel open */
body.sf-lock-scroll {
  overflow: hidden;
}

/* Scrollable content area */
.sf-form-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 120px; /* leave room for fixed footer */
  box-sizing: border-box;
}

/* Form rows — horizontal on desktop, stacked on mobile */
.sf-form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sf-form-row label {
  width: 120px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  flex-shrink: 0;
}

.sf-form-row input,
.sf-form-row select {
  flex: 1;
  min-width: 200px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.sf-form-row input:focus,
.sf-form-row select:focus {
  border-color: #28a745;
}

/* Checkbox alignment */
.sf-form-row.checkbox {
  align-items: center;
}
.sf-form-row.checkbox label {
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* Stack vertically on small screens */
@media (max-width: 640px) {
  .sf-form-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .sf-form-row label {
    width: 100%;
    margin-bottom: 4px;
  }
  .sf-form-row input,
  .sf-form-row select {
    min-width: 100%;
  }
}

/* ✅ Fixed footer button */
.sf-form-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 14px 18px;
  z-index: 10100;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 60px;
}
/* ============================================================
   Default Shipping Address — Force 3 Columns in One Row
============================================================ */
.sf-form-row.sf-default-grid {
  display: flex !important;            /* override the column layout */
  flex-direction: row !important;      /* force horizontal */
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
}

.sf-default-grid .sf-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sf-default-grid .label-col {
  flex: 0 0 60%;                       /* label = 60% width */
  font-size: 14px;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
}

.sf-default-grid .radio-col {
  flex: 0 0 20%;                       /* each radio = 20% */
  justify-content: flex-start;
}

.sf-default-grid .radio-col label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  cursor: pointer;
}

/* Clean round radio appearance */
.sf-default-grid input[type="radio"] {
  all: unset;
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-radius: 50%;
  background-color: #fff;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.sf-default-grid input[type="radio"]:checked {
  border-color: #28a745;
}

.sf-default-grid input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
}

/* Optional: wrap neatly on tiny screens */
@media (max-width: 420px) {
  .sf-form-row.sf-default-grid {
    flex-wrap: wrap;
  }
  .sf-default-grid .label-col {
    flex: 0 0 100%;
    margin-bottom: 4px;
  }
  .sf-default-grid .radio-col {
    flex: 0 0 50%;
  }
}

/* ============================================================
   Default Shipping Address (Independent Row Layout)
============================================================ */
.sf-address-default-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  gap: 8px;
}

.sf-address-default-row .col-label {
  flex: 0 0 60%; /* label takes 60% */
  font-size: 14px;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
}

.sf-address-default-row .col-radio {
  flex: 0 0 20%; /* each radio = 20% */
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
}

.sf-address-default-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #333;
  font-weight: 400;
  cursor: pointer;
}

/* Pure circular radios */
.sf-address-default-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #999;
  border-radius: 50%;
  background-color: #fff;
  position: relative;
  cursor: pointer;
}

.sf-address-default-row input[type="radio"]:checked {
  border-color: #28a745;
}

.sf-address-default-row input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
}

/* Wrap on very small screens */
@media (max-width: 420px) {
  .sf-address-default-row {
    flex-wrap: wrap;
  }
  .sf-address-default-row .col-label {
    flex: 0 0 100%;
    margin-bottom: 4px;
  }
  .sf-address-default-row .col-radio {
    flex: 0 0 50%;
  }
}

/* =========================================================
   📱 DELIVERY DATES SLIDEUP PANEL (Mobile only)
========================================================= */
#sf-delivery-panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 66vh;
  background: var(--color-light);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  transition: bottom 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

#sf-delivery-panel.active {
  bottom: 0;
}

.sf-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
}

.sf-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 1.5rem;
}

.sf-delivery-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sf-delivery-item {
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.sf-delivery-item.active {
  border-color: var(--color-primary);
  background: var(--color-accent);
}

.sf-btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
}

.sf-terms-box {
  display: flex;
  justify-content: center;  /* horizontally center */
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 0px;
  background: #fff;  
}


.sf-terms-label {
  font-size: 13px;
  line-height: 1.4;
  color: #444;
}

.sf-terms-label a {
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
}

.sf-terms-label a:hover {
  text-decoration: underline;
}


@media (min-width: 768px) {
  #sf-delivery-panel {
    display: none; /* mobile only */
  }
}

/* ============================================================
   âœ… CHECKOUT HEADER STYLING â€” SIMPLE GREEN BAR
============================================================ */
.sf-checkout-header {
  background: var(--color-primary, #28a745);
  color: #fff;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding-bottom: 15px;
}

.sf-checkout-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.sf-btn-back {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sf-btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sf-btn-back i {
  width: 22px;
  height: 22px;
}

.sf-checkout-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  flex: 1;
  text-align: left;
  letter-spacing: 0.3px;
}

/* ============================================================
   🟠 UPDATE PROFILE BUTTON (Checkout - Incomplete Profile)
============================================================ */
.sf-card-update-btn {
  background: #FF0000;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sf-card-update-btn:hover {
  background: #cf711f;
}

/* Blinking effect for visibility */
.blink {
  animation: sf-blink 1s infinite;
}

@keyframes sf-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#sf-delivery-date {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
}

/* ================================
   CLEAN 2-COLUMN LOGIN LAYOUT
================================ */
.sf-auth-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    padding: 60px 0;
}

/* LEFT PANEL */
.sf-login-info-panel {
    width: 340px;
    background: #ffffff;
    padding: 26px 28px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    text-align: center;
}

.sf-login-info-panel h3 {
    font-size: 24px;
    color: #2e7d34;
    margin-bottom: 12px;
    font-weight: 700;
}

.sf-login-info-panel p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* RIGHT PANEL */
.sf-login-container {
    width: 380px;
    background: #ffffff;
    padding: 34px 32px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

/* Remove duplicate note on desktop */
.sf-login-mobile-note {
    display: none;
}

.sf-divider {
    margin: 18px 0;
}

/* FOOTER */
.sf-login-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.sf-login-footer span {
    color: #2e7d34;
    font-weight: 600;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    .sf-auth-shell {
        display: block;
        padding: 20px 14px;
    }

    .sf-login-info-panel {
        display: none;
    }

    .sf-login-container {
        width: 100%;
        padding: 28px 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .sf-login-mobile-note {
        display: block;
        margin-bottom: 12px;
        text-align: center;
        color: #666;
        font-size: 14px;
    }

    .sf-login-footer {
        margin-top: 30px;
        font-size: 12px;
    }
}

/* ============================================================
   FIX UNNECESSARY SCROLL + ADD AUTH FOOTER SECTION
============================================================ */
.sf-auth-page-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.sf-login-footer-bar {
    width: 100%;
    background: #f2f7f3;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 40px;
    border-top: 1px solid #e6eee7;
}

.sf-login-footer-bar b {
    color: #2e7d34;
    font-weight: 600;
}
/* ======================================================
   CHECKOUT — HEADER OFFSET + COLUMN SCROLL (FINAL FIX)
   ====================================================== */

/* ------------------------------------------------------
   1) REMOVE STOREFRONT HEADER OFFSET
------------------------------------------------------ */

/* Desktop */
@media (min-width: 1025px) {
  body.sf-body-checkout .sf-main-content {
    margin-top: 0 !important;
  }
}

/* Mobile */
body.sf-body-checkout .sf-home-grid {
  margin-top: 0px !important;
}


/* ------------------------------------------------------
   2) DESKTOP — STICKY COLUMNS WITH OWN SCROLL
   (BODY MUST STILL SCROLL)
------------------------------------------------------ */

@media (min-width: 1025px) {

  /* Sticky side columns */
  body.sf-body-checkout .sf-left-col,
  body.sf-body-checkout .sf-right-col {
    position: sticky;
    top: 56px; /* checkout header height */
    height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Main column stays in normal flow */
  body.sf-body-checkout .sf-main-col {
    overflow: visible;
  }

}

/* ================================
   DESKTOP: LOGIN AS MODAL POPUP
================================ */
@media (min-width: 768px) {

  .sf-auth-modal-desktop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.45);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 9999;
  }

  .sf-auth-modal-desktop .sf-auth-section {
      background: #fff;
      border-radius: 16px;
      max-width: 480px !important;
      width: 100%;
      padding: 32px 28px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      animation: sfAuthPop 0.25s ease;
  }

  @keyframes sfAuthPop {
      from { transform: translateY(10px); opacity: 0; }
      to   { transform: translateY(0); opacity: 1; }
  }

/* ===========================================
   MOBILE — Center login/activation vertically
=========================================== */
@media (max-width: 767px) {
  .sf-auth-main {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;   /* full-screen vertical centering */
      padding: 20px 0;
  }

  .sf-auth-container {
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
  }
}
.no-break {
    white-space: nowrap;
}
/* ======================================================
   DESKTOP DELIVERY PANEL (CHECKOUT ONLY)
   Proper OPEN + CLOSE transition
====================================================== */
@media (min-width: 1025px) {
  body.sf-body-checkout .sf-delivery-panel-desktop {
    position: fixed;
    top: 56px;              /* checkout header height */
    right: 0;
    width: 420px;
    height: calc(100vh - 56px);

    background: #fff;
    border-left: 1px solid #e5e5e5;
    z-index: 1200;
    overflow-y: auto;

    /* 🔥 INITIAL OFF-SCREEN STATE */
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;

    transition:
      transform 0.28s ease-in-out,
      opacity 0.2s ease-in-out;
    will-change: transform, opacity;
  }

  /* 🔓 OPEN STATE */
  body.sf-body-checkout .sf-delivery-panel-desktop.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* ❌ REMOVE display:none (THIS WAS THE BUG) */
  body.sf-body-checkout .sf-delivery-panel-desktop[hidden] {
    display: block;
  }
}
