/* =========================================================
   WC Easy Order — Popup CSS v4.0 (clean rewrite)
   ========================================================= */

/* ── Overlay ── */
.wceo-popup-overlay {
  position: fixed; inset: 0; z-index: 100000;
  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 ── */
.wceo-popup-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -36px 0;
  z-index: 10; width: 32px; height: 32px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer; color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.wceo-popup-close:hover { background: #e2e8f0; color: #0f172a; }

/* ── 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;
}
.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 (checkboxes) ── */
.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;
}

/* ── MESSAGE CARD (textarea) ── */
.wceo-message-card {
  background: #fffbf0; border: 2px dashed #fcd34d;
  border-radius: 11px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.wceo-msg-price-note {
  font-size: .78rem; color: #92400e;
  background: #fef3c7; border-radius: 6px;
  padding: 5px 10px; margin: 0;
}
.wceo-msg-textarea {
  width: 100%; min-height: 88px; resize: vertical;
  padding: 10px 12px;
  background: #fff; border: 1.5px solid #fde68a; border-radius: 8px;
  font-family: inherit; font-size: .92rem; color: #0f172a;
  outline: none; transition: border-color .2s;
  box-sizing: border-box; display: block;
}
.wceo-msg-textarea:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.wceo-msg-textarea::placeholder { color: #94a3b8; font-style: italic; }

/* ── Addon chips (single select) ── */
.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; }

/* ── Text input addon ── */
.wceo-addon-text-input { display: block; }

/* ── Qty row ── */
.wceo-popup-qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wceo-popup-qty-row .wceo-label { margin: 0; }
.wceo-qty-control {
  display: flex; align-items: center;
  border: 1.5px solid #e2e8f0; border-radius: 9px; overflow: hidden;
}
.wceo-qty-btn {
  background: #f1f5f9; border: none; width: 34px; height: 34px;
  font-size: 1.05rem; cursor: pointer; color: #475569;
  transition: background .15s; font-family: inherit;
}
.wceo-qty-btn:hover { background: #e2e8f0; }
.wceo-qty-input {
  width: 50px; height: 34px; border: none;
  border-left: 1.5px solid #e2e8f0; border-right: 1.5px solid #e2e8f0;
  text-align: center; font-size: .95rem; font-weight: 700; color: #0f172a;
  appearance: textfield; -moz-appearance: textfield;
}
.wceo-qty-input::-webkit-outer-spin-button,
.wceo-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wceo-popup-line-total { margin-left: auto; font-size: 1rem; font-weight: 800; color: #2563eb; }

/* ─────────────────────────────────────────
   FULFILLMENT SELECTOR (Pickup / Delivery)
───────────────────────────────────────── */
.wceo-fulfillment-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.wceo-fulfill-btn {
  /* Reset all browser button styles */
  -webkit-appearance: none;
  -moz-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%;
  /* Layout */
  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 (injected by JS) ── */
.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; }

/* ── Account options ── */
.wceo-account-options { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 11px; overflow: hidden; }
.wceo-account-options-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; padding: 10px 14px 6px; }
.wceo-account-tabs { display: flex; border-bottom: 1px solid #e2e8f0; }
.wceo-acct-tab {
  flex: 1; padding: 9px 8px; border: none; background: transparent;
  font-family: inherit; font-size: .8rem; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all .15s; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.wceo-acct-tab:hover { color: #2563eb; }
.wceo-acct-tab.wceo-acct-tab-active { color: #2563eb; border-bottom-color: #2563eb; background: #fff; }
.wceo-acct-panel { padding: 13px 14px; }
.wceo-guest-note { font-size: .82rem; color: #64748b; line-height: 1.5; }
.wceo-login-error { font-size: .82rem; color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 7px; padding: 8px 12px; margin-top: 8px; }
.wceo-logged-in-bar {
  display: flex; align-items: center; gap: 10px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: 10px; padding: 11px 14px; font-size: .86rem; color: #166534;
}
.wceo-logged-in-icon { font-size: 1.1rem; }

/* ── Password field ── */
.wceo-password-field { position: relative; }
.wceo-password-field .wceo-input { padding-right: 44px; }
.wceo-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8; padding: 0;
  display: flex; align-items: center; transition: color .15s;
}
.wceo-pw-toggle:hover { color: #2563eb; }

/* ── Pay amount bar ── */
.wceo-pay-amount-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 11px;
  padding: 13px 16px; font-size: .9rem; color: #334155;
}
.wceo-pay-amount { color: #2563eb; font-size: 1.25rem; font-weight: 800; }

/* ── Gateway tabs ── */
.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; }

/* ── Stripe card wrap ── */
.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-stripe-loading { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: .88rem; }
.wceo-spinner {
  width: 16px; height: 16px; border: 2px solid #e2e8f0;
  border-top-color: #2563eb; border-radius: 50%;
  animation: wcSpin .7s linear infinite; display: inline-block;
}
@keyframes wcSpin { to { transform:rotate(360deg); } }
.wceo-secure-note { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: #94a3b8; margin: 6px 0 0; }
.wceo-paypal-note { font-size: .88rem; color: #475569; margin: 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-btn-stripe {
  background: #6772e5; color: #fff; width: 100%; justify-content: center;
  font-size: 1rem; padding: 13px; box-shadow: 0 3px 14px rgba(103,114,229,.35);
}
.wceo-btn-stripe:hover:not(:disabled) { background: #5469d4; transform: translateY(-1px); }
.wceo-btn-stripe:disabled { opacity: .65; cursor: not-allowed; }

/* Buy Now on card */
.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} }

/* ── Responsive ── */
@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; }
}

/* ═══════════════════════════════════════
   IMAGE ADDON PICKER (extra products from categories)
   ═══════════════════════════════════════ */
.wceo-img-addons-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}

.wceo-img-addons-cat { margin-bottom: 14px; }
.wceo-img-addons-cat-name {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #94a3b8; margin-bottom: 8px;
}

.wceo-img-addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.wceo-img-addon-item {
    position: relative; border: 2px solid #e2e8f0;
    border-radius: 10px; overflow: hidden;
    cursor: pointer; background: #f8fafc;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    user-select: none;
}
.wceo-img-addon-item:hover {
    border-color: #93c5fd; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,.12);
}
.wceo-img-addon-item.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Tick badge */
.wceo-img-addon-item.selected::before {
    content: '✓';
    position: absolute; top: 4px; right: 4px; z-index: 3;
    width: 18px; height: 18px; border-radius: 50%;
    background: #2563eb; color: #fff;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

.wceo-img-addon-img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    display: block; background: #f1f5f9;
}
.wceo-img-addon-img.placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; background: #f1f5f9;
}

.wceo-img-addon-info {
    padding: 5px 6px 6px;
    background: #fff; border-top: 1px solid #f1f5f9;
}
.wceo-img-addon-name {
    font-size: .72rem; font-weight: 600; color: #0f172a;
    line-height: 1.3; margin-bottom: 2px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.wceo-img-addon-price {
    font-size: .76rem; font-weight: 800; color: #2563eb;
}

/* Qty control inside image addon */
.wceo-img-addon-qty {
    display: none; align-items: center; justify-content: center; gap: 0;
    padding: 4px 6px; background: #eff6ff;
    border-top: 1px solid #bfdbfe;
}
.wceo-img-addon-item.selected .wceo-img-addon-qty { display: flex; }
.wceo-img-qty-btn {
    width: 22px; height: 22px; border-radius: 5px;
    border: none; background: #2563eb; color: #fff;
    font-size: .9rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .12s;
}
.wceo-img-qty-btn:hover { background: #1d4ed8; }
.wceo-img-qty-val {
    width: 28px; text-align: center; font-size: .82rem;
    font-weight: 700; color: #1d4ed8;
}

/* Loading spinner */
.wceo-img-addon-loading {
    display: flex; align-items: center; gap: 8px;
    font-size: .84rem; color: #94a3b8; padding: 8px 0;
}
