:root {
  --bpq-primary:   var(--brand-primary,   #1d71b8);
  --bpq-secondary: var(--brand-secondary, #85bb25);
  --bpq-bg-soft:   var(--bg-primary-soft, #e8edf4);
  --bpq-radius:    12px;
  --bpq-shadow:    0 20px 60px rgba(0,0,0,.18);
  --bpq-border:    #e5e7eb;
  --bpq-text:      #111827;
  --bpq-muted:     #6b7280;
  --bpq-error-bg:  #fef2f2;
  --bpq-error:     #991b1b;
  --bpq-success-bg:#f0fdf4;
  --bpq-success:   #166534;
}

/* ── Voeg toe aan offerte knop ─────────────────────────────────────────────── */
.bpq-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 18px;
  border: 2px solid var(--bpq-primary);
  border-radius: 8px;
  background: #fff;
  color: var(--bpq-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.bpq-add-btn:hover,
.bpq-add-btn.is-active {
  background: var(--bpq-primary);
  color: #fff;
}
.bpq-add-btn__icon { font-size: 1.2rem; line-height: 1; }

/* ── FAB (floating action button) ─────────────────────────────────────────── */
.bpq-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--bpq-primary);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s;
}

button.bpq-fab {
  display: none !important;
}

.bpq-fab:hover { transform: scale(1.08); }
.bpq-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bpq-secondary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Panel overlay ─────────────────────────────────────────────────────────── */
.bpq-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
}
.bpq-panel[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}
.bpq-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.55);
  cursor: pointer;
}
.bpq-panel__inner {
  position: relative;
  z-index: 1;
  width: min(520px, 100vw);
  height: 100%;
  background: #fff;
  overflow-y: auto;
  box-shadow: var(--bpq-shadow);
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.bpq-panel[aria-hidden="false"] .bpq-panel__inner {
  transform: translateX(0);
}

/* ── Panel header ──────────────────────────────────────────────────────────── */
.bpq-panel-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bpq-primary);
  color: #fff;
}
.bpq-panel-header__title { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.bpq-panel-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Panel body ────────────────────────────────────────────────────────────── */
.bpq-panel-body { padding: 20px; }

/* ── Wishlist items ────────────────────────────────────────────────────────── */
.bpq-items { display: grid; gap: 14px; }
.bpq-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--bpq-border);
  border-radius: var(--bpq-radius);
  background: #fff;
}
.bpq-item__img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}
.bpq-item__img-placeholder {
  width: 80px; height: 80px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  color: var(--bpq-muted); font-size: .8rem;
}
.bpq-item__name { margin: 0 0 4px; font-size: .95rem; font-weight: 600; }
.bpq-item__sku  { margin: 0 0 10px; font-size: .8rem; color: var(--bpq-muted); }
.bpq-item__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bpq-qty-label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.bpq-qty-input {
  width: 72px;
  border: 1px solid var(--bpq-border);
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
}
.bpq-remove-btn {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  cursor: pointer;
  font-size: .85rem;
}

/* ── Panel footer ──────────────────────────────────────────────────────────── */
.bpq-panel-footer {
  position: sticky;
  bottom: 0;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid var(--bpq-border);
}
.bpq-btn-primary {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: var(--bpq-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .18s;
}
.bpq-btn-primary:hover { opacity: .9; }
.bpq-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.bpq-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--bpq-border);
  border-radius: 8px;
  background: #fff;
  color: var(--bpq-text);
  font: inherit;
  cursor: pointer;
  margin-bottom: 14px;
}

/* ── Quote form ────────────────────────────────────────────────────────────── */
.bpq-form { display: grid; gap: 14px; }
.bpq-field { display: grid; gap: 6px; }
.bpq-field label { font-size: .9rem; font-weight: 600; }
.bpq-field input,
.bpq-field textarea {
  border: 1px solid var(--bpq-border);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
  color: var(--bpq-text);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.bpq-field textarea { resize: vertical; min-height: 90px; }

/* ── Summary ───────────────────────────────────────────────────────────────── */
.bpq-summary { margin-bottom: 20px; }
.bpq-summary__title { font-size: .95rem; font-weight: 700; margin: 0 0 10px; color: var(--bpq-primary); }
.bpq-summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bpq-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--bpq-border);
  border-radius: 8px;
  font-size: .9rem;
}

/* ── States ────────────────────────────────────────────────────────────────── */
.bpq-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--bpq-muted);
}
.bpq-empty__icon { font-size: 2.5rem; margin-bottom: 12px; }
.bpq-state-error {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bpq-error-bg);
  color: var(--bpq-error);
  margin-bottom: 14px;
  font-size: .9rem;
}
.bpq-state-success {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bpq-success-bg);
  color: var(--bpq-success);
  margin-bottom: 14px;
  font-size: .9rem;
}

/* ── Admin status badges ───────────────────────────────────────────────────── */
.bpq-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.bpq-status--new      { background: #dbeafe; color: #1e40af; }
.bpq-status--read     { background: #fef9c3; color: #854d0e; }
.bpq-status--handled  { background: #dcfce7; color: #166534; }
.bpq-status--archived { background: #f3f4f6; color: #6b7280; }
