/* =========================================================
   WC Easy Order — Popup CSS v4.0 (clean rewrite)
   ========================================================= */

/* ── Overlay ── */
.wceo-popup-overlay {
  position: fixed; inset: 0; z-index: 1000000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.wceo-popup-overlay.wceo-popup-open { opacity: 1; pointer-events: all; }

/* ── Modal ── */
.wceo-popup {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 520px; max-height: 92vh;
  overflow-y: auto; overflow-x: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  transform: translateY(24px) scale(.97);
  transition: transform .3s cubic-bezier(.34,1.4,.64,1), opacity .25s;
  font-family: 'DM Sans', system-ui, sans-serif;
  scrollbar-width: thin;
}
.wceo-popup-overlay.wceo-popup-open .wceo-popup {
  transform: translateY(0) scale(1);
}

/* ── Close Button ── */
#wceo-popup .wceo-popup-close,
.wceo-popup-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 1000 !important;
  float: none !important;
  font-size: 18px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}
#wceo-popup .wceo-popup-close:hover,
.wceo-popup-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
#wceo-popup .wceo-popup-close svg,
.wceo-popup-close svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.2 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ── Step bar ── */
.wceo-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 20px 24px 0; clear: both;
}
.wceo-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wceo-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e2e8f0; color: #94a3b8;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.wceo-step-label { font-size: .7rem; color: #94a3b8; font-weight: 600; white-space: nowrap; }
.wceo-step.wceo-step-active .wceo-step-num   { background: #2563eb; color: #fff; }
.wceo-step.wceo-step-active .wceo-step-label { color: #2563eb; font-weight: 700; }
.wceo-step.wceo-step-done   .wceo-step-num   { background: #22c55e; color: #fff; }
.wceo-step.wceo-step-done   .wceo-step-label { color: #16a34a; }
.wceo-step-line {
  flex: 1; height: 2px; background: #e2e8f0; min-width: 28px;
  margin-bottom: 16px; transition: background .3s;
}
.wceo-step-line.wceo-line-done { background: #22c55e; }

/* ── Product header ── */
.wceo-popup-product-header {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px 0;
}
.wceo-popup-product-img {
  width: 76px; height: 76px; border-radius: 10px;
  object-fit: cover; background: #f1f5f9; flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
.wceo-popup-product-meta { flex: 1; }
.wceo-popup-product-name { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.wceo-popup-product-price { margin: 0; font-size: 1.2rem; font-weight: 800; color: #2563eb; }

.wceo-popup-section-title {
  font-size: 1.05rem; font-weight: 700; color: #0f172a;
  margin: 0; padding: 20px 22px 0;
}

/* ── Body ── */
.wceo-popup-body { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }

/* ── Labels ── */
.wceo-label {
  display: block; font-size: .76rem; font-weight: 700;
  color: #475569; text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 6px;
}
.wceo-required { color: #ef4444; margin-left: 2px; }
.wceo-optional-tag {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: #94a3b8; background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: 1px 7px; border-radius: 20px; margin-left: 6px;
  vertical-align: middle;
}
.wceo-addon-price-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe;
  padding: 1px 8px; border-radius: 20px; margin-left: 4px;
  vertical-align: middle;
}

/* ── Inputs ── */
.wceo-input {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: .92rem; color: #0f172a; background: #f8fafc;
  font-family: inherit; transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.wceo-input:focus {
  outline: none; border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff;
}
.wceo-input.wceo-field-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.wceo-textarea { resize: vertical; min-height: 72px; }

/* ── Form grid ── */
.wceo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wceo-form-group { display: flex; flex-direction: column; }
.wceo-form-group-full { grid-column: 1 / -1; }

/* ── Variant chips ── */
.wceo-variant-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.wceo-variant-chip {
  padding: 6px 14px; border: 1.5px solid #e2e8f0; border-radius: 20px;
  font-size: .83rem; font-weight: 600; color: #475569;
  cursor: pointer; background: #f8fafc; font-family: inherit;
  transition: all .15s;
}
.wceo-variant-chip:hover { border-color: #2563eb; color: #2563eb; }
.wceo-variant-chip.wceo-chip-selected { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ── Addon group ── */
.wceo-addon-group { display: flex; flex-direction: column; gap: 8px; }
.wceo-addon-label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.wceo-addon-label-row .wceo-label { margin: 0; }

/* ── CHECKLIST ── */
.wceo-checklist { display: flex; flex-direction: column; gap: 7px; }
.wceo-check-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  background: #f8fafc; cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.wceo-check-row:hover { border-color: #93c5fd; background: #eff6ff; }
.wceo-check-row.is-checked { border-color: #2563eb; background: #eff6ff; }
.wceo-check-row input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.wceo-check-custom {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid #cbd5e0; border-radius: 5px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.wceo-check-row.is-checked .wceo-check-custom {
  background: #2563eb; border-color: #2563eb;
}
.wceo-check-custom::after {
  content: ''; display: none;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}
.wceo-check-row.is-checked .wceo-check-custom::after { display: block; }
.wceo-check-label { flex: 1; font-size: .9rem; font-weight: 500; color: #334155; }
.wceo-check-row.is-checked .wceo-check-label { font-weight: 700; color: #0f172a; }
.wceo-check-price {
  font-size: .78rem; font-weight: 700; color: #2563eb;
  background: #eff6ff; padding: 2px 9px; border-radius: 20px;
}

/* ── ISSUE 3 FIX: LIVE MESSAGE CARD ── */
.wceo-message-card {
  background: #fffdf5 !important;
  border: 1.5px dashed #f59e0b !important;
  border-radius: 12px !important;
  padding: 14px !important;
  margin-top: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}
.wceo-msg-price-note {
  font-size: 12px !important;
  color: #92400e !important;
  background: #fef3c7 !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  margin: 0 !important;
}
.wceo-msg-textarea {
  width: 100% !important;
  min-height: 80px !important;
  resize: vertical !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: 1px solid #fcd34d !important;
  border-radius: 8px !important;
  font-family: inherit;
  font-size: 13.5px !important;
  color: #1e293b !important;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box !important;
  display: block;
}
.wceo-msg-textarea:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,.15) !important;
}
.wceo-msg-textarea::placeholder { color: #94a3b8; font-style: italic; }

.wceo-live-card-preview {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 12px !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.wceo-card-floral {
  color: #f59e0b !important;
  font-size: 14px !important;
  letter-spacing: 4px !important;
  margin-bottom: 6px !important;
}
.wceo-card-message {
  font-size: 13px !important;
  font-style: italic !important;
  color: #334155 !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
}
.wceo-card-sign {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  margin-top: 8px !important;
  letter-spacing: 0.05em !important;
}

/* ── Addon chips ── */
.wceo-addon-options { display: flex; flex-wrap: wrap; gap: 7px; }
.wceo-addon-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: .84rem; font-weight: 600; color: #475569;
  cursor: pointer; background: #f8fafc; font-family: inherit;
  transition: all .15s;
}
.wceo-addon-chip:hover:not(.wceo-chip-none) { border-color: #2563eb; color: #2563eb; }
.wceo-addon-chip.wceo-chip-selected:not(.wceo-chip-none) {
  background: #2563eb; border-color: #2563eb; color: #fff;
}
.wceo-chip-none.wceo-chip-selected { background: #f1f5f9; border-color: #cbd5e0; color: #64748b; }
.wceo-chip-price {
  font-size: .74rem; font-weight: 700;
  background: rgba(255,255,255,.25); padding: 1px 7px; border-radius: 12px;
}
.wceo-addon-chip:not(.wceo-chip-selected) .wceo-chip-price {
  background: #eff6ff; color: #2563eb;
}

/* ── Addon select ── */
.wceo-addon-select {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  font-size: .92rem; color: #0f172a; background: #f8fafc;
  font-family: inherit; cursor: pointer; outline: none;
  transition: border-color .2s;
}
.wceo-addon-select:focus { border-color: #2563eb; background: #fff; }
.wceo-addon-text-input { display: block; }

/* ── Step 1 Qty Controls ── */
.wceo-popup-qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wceo-popup-qty-row .wceo-label { margin: 0; }
.wceo-popup-qty-row .wceo-qty-control {
  display: inline-flex !important;
  align-items: stretch !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  height: 40px !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}
.wceo-popup-qty-row .wceo-qty-btn {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 100% !important;
  background: #f8fafc !important;
  border: none !important;
  border-radius: 0 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: background 0.15s ease !important;
}
.wceo-popup-qty-row .wceo-qty-btn:hover {
  background: #e2e8f0 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
.wceo-popup-qty-row .wceo-qty-input {
  width: 48px !important;
  min-width: 48px !important;
  height: 100% !important;
  border: none !important;
  border-left: 1.5px solid #e2e8f0 !important;
  border-right: 1.5px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.wceo-popup-line-total { margin-left: auto; font-size: 1rem; font-weight: 800; color: #2563eb; }

/* ── FULFILLMENT SELECTOR ── */
.wceo-fulfillment-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.wceo-fulfill-btn {
  -webkit-appearance: none;
  appearance: none;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 14px 12px;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.wceo-fulfill-btn:hover {
  border-color: #93c5fd;
  background: #fff;
}
.wceo-fulfill-btn.wceo-fulfill-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.wceo-fulfill-icon { font-size: 1.8rem; line-height: 1; display: block; }
.wceo-fulfill-text {
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
}
.wceo-fulfill-text strong {
  font-size: .88rem; font-weight: 700; color: #0f172a; display: block; line-height: 1.2;
}
.wceo-fulfill-btn.wceo-fulfill-active .wceo-fulfill-text strong { color: #1d4ed8; }
.wceo-fulfill-text small { font-size: .72rem; color: #64748b; display: block; }

/* ── Store cards ── */
.wceo-store-cards { display: flex; flex-direction: column; gap: 8px; }
.wceo-store-card { display: block; cursor: pointer; }
.wceo-store-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.wceo-store-card-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 2px solid #e2e8f0;
  border-radius: 10px; background: #f8fafc; transition: all .15s;
}
.wceo-store-card:hover .wceo-store-card-inner { border-color: #93c5fd; background: #fff; }
.wceo-store-card.wceo-store-selected .wceo-store-card-inner,
.wceo-store-card input:checked ~ .wceo-store-card-inner {
  border-color: #2563eb; background: #eff6ff;
}
.wceo-store-icon { font-size: 1.3rem; flex-shrink: 0; }
.wceo-store-info { flex: 1; }
.wceo-store-info strong { display: block; font-size: .92rem; color: #0f172a; margin-bottom: 3px; }
.wceo-store-info small { font-size: .76rem; color: #64748b; line-height: 1.4; }
.wceo-store-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #cbd5e0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: transparent; flex-shrink: 0; transition: all .15s;
}
.wceo-store-card.wceo-store-selected .wceo-store-check,
.wceo-store-card input:checked ~ .wceo-store-card-inner .wceo-store-check {
  background: #2563eb; border-color: #2563eb; color: #fff;
}

/* ── Delivery type box ── */
.wceo-delivery-type-box {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 9px; border: 2px solid;
  margin-top: 6px;
  animation: wcSlideIn .2s ease;
}
@keyframes wcSlideIn {
  from { opacity:0; transform:translateY(-5px); }
  to   { opacity:1; transform:translateY(0); }
}
.wceo-delivery-type-box.wc-sameday { background:#fffbeb; border-color:#fcd34d; }
.wceo-delivery-type-box.wc-normal  { background:#f0fdf4; border-color:#86efac; }
.wceo-dt-left { display:flex; flex-direction:column; gap:2px; flex:1; }
.wceo-dt-title { font-size:.86rem; font-weight:700; color:#0f172a; }
.wceo-dt-note  { font-size:.72rem; color:#64748b; }
.wc-normal .wceo-dt-note { color:#16a34a; font-weight:600; }
.wceo-dt-amt {
  font-size:1rem; font-weight:800; white-space:nowrap;
  padding:3px 12px; border-radius:20px;
}
.wc-sameday .wceo-dt-amt { color:#92400e; background:#fef3c7; }
.wc-normal  .wceo-dt-amt { color:#15803d; background:#dcfce7; }
.wceo-dt-amt.is-paid { color:#1d4ed8; background:#dbeafe; }

/* ── Mini order summary ── */
.wceo-order-summary-mini {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 11px; padding: 12px 15px;
  display: flex; flex-direction: column; gap: 7px;
}
.wceo-summary-mini-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #94a3b8; margin: 0;
}
.wceo-summary-mini-item { display: flex; justify-content: space-between; font-size: .86rem; color: #475569; }
.wceo-summary-mini-total {
  display: flex; justify-content: space-between;
  font-size: .94rem; font-weight: 700; color: #0f172a;
  border-top: 1px solid #e2e8f0; padding-top: 8px; margin-top: 4px;
}
.wceo-summary-mini-total strong { color: #2563eb; font-size: 1.05rem; }

/* ── ISSUE 4 FIX: ACCOUNT OPTIONS & TABS ── */
.wceo-account-options {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin-top: 14px !important;
  box-sizing: border-box !important;
}
.wceo-account-options-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
  margin-bottom: 10px !important;
  display: block !important;
}
.wceo-account-tabs {
  display: flex !important;
  background: #e2e8f0 !important;
  padding: 3px !important;
  border-radius: 8px !important;
  gap: 4px !important;
  margin-bottom: 12px !important;
  border: none !important;
}
.wceo-acct-tab {
  flex: 1 !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: all 0.15s ease !important;
}
.wceo-acct-tab.wceo-acct-tab-active {
  background: #ffffff !important;
  color: #2563eb !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}
.wceo-acct-panel { padding: 4px 0 0 !important; }
.wceo-guest-note {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
.wceo-password-field {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}
.wceo-password-field .wceo-input {
  padding-right: 40px !important;
  box-sizing: border-box !important;
}
.wceo-pw-toggle {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 16px !important;
  color: #64748b !important;
  padding: 4px !important;
  line-height: 1 !important;
}

/* ── Gateway tabs & Payment ── */
.wceo-gateway-tabs { display: flex; gap: 10px; }
.wceo-gateway-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border: 2px solid #e2e8f0; border-radius: 11px;
  background: #f8fafc; font-size: .88rem; font-weight: 700; color: #475569;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.wceo-gateway-tab:hover { border-color: #94a3b8; color: #0f172a; }
.wceo-gateway-tab.wceo-tab-active { border-color: #2563eb; background: #eff6ff; color: #2563eb; }

.wceo-stripe-card-wrap {
  border: 1.5px solid #e2e8f0; border-radius: 9px;
  padding: 12px 14px; background: #f8fafc; min-height: 46px;
  transition: border-color .2s;
}
.wceo-secure-note { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: #94a3b8; margin: 6px 0 0; }
.wceo-pay-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 8px; padding: 9px 13px; font-size: .86rem; }

/* ── Buttons ── */
.wceo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 9px; border: none;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  font-family: inherit; text-decoration: none; white-space: nowrap;
  transition: all .18s;
}
.wceo-btn-primary { background: #2563eb; color: #fff; margin-left: auto; box-shadow: 0 3px 12px rgba(37,99,235,.28); }
.wceo-btn-primary:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); }
.wceo-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.wceo-btn-ghost { background: #f1f5f9; color: #475569; }
.wceo-btn-ghost:hover { background: #e2e8f0; }

.wceo-buy-now-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 8px; padding: 10px 16px; background: #2563eb; color: #fff;
  border: none; border-radius: 9px; font-size: .88rem; font-weight: 700;
  cursor: pointer; font-family: inherit; width: 100%; transition: all .18s;
}
.wceo-buy-now-btn:hover { background: #1d4ed8; transform: translateY(-1px); }

/* ── Footer ── */
.wceo-popup-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 22px; border-top: 1px solid #f1f5f9; flex-wrap: wrap;
}
.wceo-popup-total-row { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: .8rem; color: #64748b; }
.wceo-popup-total-row strong { font-size: 1.1rem; color: #0f172a; }

/* ── Success ── */
.wceo-success-screen { text-align: center; padding: 44px 28px 38px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wceo-success-icon { width: 80px; height: 80px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #16a34a; animation: wcPopIn .4s cubic-bezier(.34,1.56,.64,1); }
.wceo-success-screen h2 { margin: 0; font-size: 1.4rem; color: #0f172a; }
.wceo-success-screen p  { margin: 0; color: #475569; }
@keyframes wcPopIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }

/* ── Address Grid ── */
.wceo-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.wceo-full { grid-column: 1 / -1; }

@media (max-width: 768px) {
  .wceo-address-grid { grid-template-columns: 1fr; }
  .wceo-full { grid-column: auto; }
}

/* ── Phone Country Picker Strict Styles ── */
.wceo-phone-field-wrap {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
}
.wceo-phone-picker {
  position: relative !important;
  flex: 0 0 125px !important;
  width: 125px !important;
  z-index: 50 !important;
}
.wceo-phone-picker-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  padding: 0 9px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-right: none !important;
  border-radius: 9px 0 0 9px !important;
  background: #f8fafc !important;
  cursor: pointer !important;
}
.wceo-phone-picker-btn,
.wceo-phone-picker-btn span,
.wceo-phone-current-code,
.wceo-phone-picker-arrow {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 600 !important;
}
.wceo-phone-menu,
.wceo-phone-picker .wceo-phone-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  width: 280px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: 230px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #ffffff !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2) !important;
  padding: 5px !important;
  z-index: 999999 !important;
}
.wceo-phone-picker.is-open .wceo-phone-menu {
  display: block !important;
}
.wceo-phone-country-option {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 6px 8px !important;
  border: none !important;
  background: #ffffff !important;
  color: #172033 !important;
  text-align: left !important;
  cursor: pointer !important;
  border-radius: 7px !important;
}
.wceo-phone-country-option:hover { background: #f1f5f9 !important; }
.wceo-country-code { font-weight: 700 !important; margin-right: 4px !important; }

/* ── Cart Quantity Buttons Color Fix ── */
.wceo-easy-cart-qty button,
.wceo-easy-cart-qty button[type="button"] {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: #f1f5f9 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.wceo-easy-cart-qty button:hover {
  background: #e2e8f0 !important;
  color: #000000 !important;
}
.wceo-easy-cart-qty span {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* ── ISSUE 2 FIX: HEADER CART DROPDOWN HOVER BRIDGE ── */
.wceo-header-cart-wrap {
  position: relative !important;
}
.wceo-header-cart-dropdown::before {
  content: '' !important;
  position: absolute !important;
  top: -16px !important;
  left: 0 !important;
  right: 0 !important;
  height: 18px !important;
  background: transparent !important;
  display: block !important;
}
.wceo-header-cart-wrap:hover .wceo-header-cart-dropdown,
.wceo-header-cart-wrap.is-active .wceo-header-cart-dropdown {
  display: flex !important;
}

/* ── Floating Mini Cart ── */
#wceo-mini-cart:not(.wceo-in-header) {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 999998 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: calc(100vw - 40px) !important;
  padding: 10px 14px 10px 16px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 35px rgba(15,23,42,.16) !important;
}

@media (max-width: 540px) {
  .wceo-popup { border-radius: 18px 18px 0 0; max-height: 96vh; }
  .wceo-popup-overlay { align-items: flex-end; padding: 0; }
  .wceo-form-grid { grid-template-columns: 1fr; }
  .wceo-gateway-tabs { flex-direction: column; }
}

/* 1. Page se floating mini-cart hide */
#wceo-mini-cart:not(.wceo-in-header) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. Header Cart Dropdown UI & Hover Fix */
.wceo-header-cart-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.wceo-header-cart-dropdown {
    display: none;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: 260px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12) !important;
    padding: 16px !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 100005 !important;
    box-sizing: border-box !important;
}

.wceo-header-cart-dropdown::before {
    content: '' !important;
    position: absolute !important;
    top: -14px !important;
    left: 0 !important;
    right: 0 !important;
    height: 16px !important;
    background: transparent !important;
}

.wceo-header-cart-wrap:hover .wceo-header-cart-dropdown,
.wceo-header-cart-wrap.is-active .wceo-header-cart-dropdown {
    display: flex !important;
}

.wceo-dropdown-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.wceo-dropdown-row strong {
    color: #0f172a !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
}

.wceo-dropdown-actions {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
}

.wceo-dropdown-actions button,
.wceo-btn-view,
.wceo-btn-checkout {
    flex: 1 !important;
    padding: 9px 10px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
}

.wceo-btn-view {
    background: #f1f5f9 !important;
    color: #334155 !important;
}
.wceo-btn-view:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.wceo-btn-checkout {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}
.wceo-btn-checkout:hover {
    background: #1d4ed8 !important;
}

/* ================================================================
   EASY CART SCREEN (VIEW CART MODAL) CLEAN UI FIX
   ================================================================ */

/* ── Step Cart Container & Spacing ── */
#wceo-step-cart {
    padding: 16px 20px 24px !important;
    box-sizing: border-box !important;
}

#wceo-step-cart h3,
#wceo-step-cart .wceo-cart-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 10px 0 2px !important;
}

#wceo-step-cart p {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 0 16px !important;
}

/* ── "Add More Items" Button ── */
#wceo-cart-continue-shopping {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    margin-bottom: 14px !important;
    box-shadow: none !important;
}
#wceo-cart-continue-shopping:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ── Items List Container ── */
#wceo-easy-cart-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

/* ── Single Cart Item (Horizontal Row) ── */
.wceo-easy-cart-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

/* ── Thumbnail ── */
.wceo-easy-cart-item > img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* ── Mid Content (Name, Meta, Qty, Remove) ── */
.wceo-easy-cart-item > div:not(.wceo-easy-cart-item-price) {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0 !important;
}

.wceo-easy-cart-item-name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    word-break: break-word !important;
}

.wceo-easy-cart-item-meta {
    font-size: 0.78rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

/* ── Actions Row (Qty + Remove) ── */
.wceo-easy-cart-item-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 2px !important;
}

/* ── Qty Counter Box ── */
.wceo-easy-cart-qty {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    height: 30px !important;
}

.wceo-easy-cart-qty button {
    width: 28px !important;
    min-width: 28px !important;
    height: 100% !important;
    border: none !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.wceo-easy-cart-qty button:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.wceo-easy-cart-qty span {
    width: 32px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* ── Remove Button Reset (No Green Block) ── */
button.wceo-easy-cart-remove,
.wceo-easy-cart-remove {
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    text-decoration: underline !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    min-width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    text-transform: none !important;
}
button.wceo-easy-cart-remove:hover,
.wceo-easy-cart-remove:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    text-decoration: none !important;
}

/* ── Right Column: Line Price ── */
.wceo-easy-cart-item-price {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    padding-left: 6px !important;
}

/* ── Cart Bottom Summary Bar ── */
.wceo-cart-footer,
.wceo-popup-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 14px !important;
    margin-top: 8px !important;
}

#wceo-easy-cart-checkout {
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    padding: 11px 22px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
}
#wceo-easy-cart-checkout:hover {
    background: #1d4ed8 !important;
}

/* ================================================================
   1. GLOBAL CATALOGUE SEARCH BOX & DROPDOWN FIX
   ================================================================ */

/* Search Wrap Container */
.wceo-search-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto 24px !important;
    z-index: 99999 !important; /* Cards ke upar aane ke liye */
}

/* Search Input Field */
#wceo-product-search,
.wceo-search-wrap input[type="text"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 20px 0 46px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 24px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 16px center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

#wceo-product-search:focus {
    border-color: #2563eb !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15) !important;
}

/* Floating Search Results Dropdown Window */
#wceo-search-dropdown,
.wceo-search-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16) !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    z-index: 1000000 !important; /* Top layer ensure karein */
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* Single Search Item */
.wceo-search-result {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: none !important;
    background: #ffffff !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: background 0.15s ease !important;
    box-sizing: border-box !important;
}

.wceo-search-result:hover {
    background: #f8fafc !important;
}

/* Result Thumbnail */
.wceo-search-thumb {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wceo-search-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Result Texts */
.wceo-search-result-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.wceo-search-result-info strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.wceo-search-result-info small {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
}

.wceo-search-result-info em {
    font-size: 12px !important;
    color: #64748b !important;
    font-style: normal !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 320px !important;
}

/* Empty / Loading State */
.wceo-search-empty-result {
    padding: 16px !important;
    text-align: center !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* ================================================================
   2. PRODUCT CARD OVERLAP FIX (Green Border Box Fix)
   ================================================================ */

.wceo-product-card {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Card Image Area */
.wceo-product-img {
    width: 100% !important;
    position: relative !important;
}

.wceo-product-img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Card Meta Content Spacing (Separate lines instead of clashing) */
.wceo-product-card .wceo-product-name,
.wceo-product-card h3,
.wceo-product-card h4 {
    display: block !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 12px 14px 4px !important;
    line-height: 1.3 !important;
}

.wceo-product-card .wceo-product-price {
    display: block !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    margin: 0 14px 6px !important;
}

.wceo-product-card .wceo-product-desc,
.wceo-product-card p {
    font-size: 12.5px !important;
    color: #475569 !important;
    margin: 0 14px 12px !important;
    line-height: 1.4 !important;
}

/* ── Browser Default Search Clear Button Reset ── */
.wceo-search-wrap input[type="search"]::-webkit-search-cancel-button,
.wceo-search-wrap input[type="search"]::-webkit-search-decoration,
#wceo-product-search::-webkit-search-cancel-button,
#wceo-product-search::-webkit-search-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
}

/* ── Custom Cross / Clear Button Proper Alignment ── */
.wceo-search-wrap .wceo-search-clear,
.wceo-search-wrap button[type="reset"],
#wceo-search-clear,
.wceo-search-wrap .clear-icon {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border-radius: 50% !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

.wceo-search-wrap .wceo-search-clear:hover,
.wceo-search-wrap button[type="reset"]:hover,
#wceo-search-clear:hover,
.wceo-search-wrap .clear-icon:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}