/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --navy:   #043268;
  --yellow: #f2ff2a;
  --blue:   #1b94ce;
  --dark:   #424242;
  --light:  #f4f7fb;
  --border: #dee2e6;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(4,50,104,.08);
  --shadow-hover: 0 6px 24px rgba(4,50,104,.16);
  --transition: .2s ease;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
}

a { color: var(--blue); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.site-nav .nav-link {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .4rem .7rem;
  white-space: nowrap;
  opacity: .85;
  transition: opacity var(--transition);
}

.site-nav .nav-link:hover,
.site-nav .nav-link-active { opacity: 1; }

.site-nav .dropdown-menu { font-size: .85rem; }

.search-form .form-control {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  width: 220px;
}
.search-form .form-control::placeholder { color: rgba(255,255,255,.55); }
.search-form .form-control:focus {
  background: rgba(255,255,255,.2);
  border-color: var(--yellow);
  color: #fff;
  box-shadow: none;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
}

/* ── Hero (index) ────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
}

.hero p {
  opacity: .8;
  max-width: 600px;
  margin: .8rem auto 0;
}

/* ── Choice cards (index) ────────────────────────────────────────────────── */
.choice-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
  display: block;
  height: 100%;
}

.choice-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--dark);
  text-decoration: none;
}

.choice-card .choice-icon {
  font-size: 2.8rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.choice-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.choice-card p {
  font-size: .88rem;
  color: #666;
  margin-bottom: 1.2rem;
}

.btn-choice {
  background: var(--navy);
  color: var(--yellow);
  border: none;
  border-radius: 6px;
  padding: .5rem 1.4rem;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background var(--transition), color var(--transition);
}

.choice-card:hover .btn-choice {
  background: var(--yellow);
  color: var(--navy);
}

/* ── Form section ────────────────────────────────────────────────────────── */
.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.form-section-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.form-section-title i {
  font-size: .85rem;
}

.section-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* ── Equipment cards (checkboxes/radios styled as cards) ─────────────────── */
.equip-check {
  display: none;
}

.equip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px 6px 8px;
  cursor: pointer;
  min-height: 90px;
  width: 100%;
  font-size: .72rem;
  font-weight: 500;
  color: #555;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.equip-card:hover {
  border-color: #aac7e8;
  background: var(--light);
}

.equip-card .equip-icon {
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1;
}

.equip-card .equip-name {
  line-height: 1.25;
}

.equip-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  align-items: center;
  justify-content: center;
}

/* Checked state */
.equip-check:checked + .equip-card {
  border-color: var(--blue);
  background: rgba(27,148,206,.06);
  color: var(--navy);
}

.equip-check:checked + .equip-card .equip-icon {
  color: var(--navy);
}

.equip-check:checked + .equip-card .equip-badge {
  display: flex;
}

/* Slider shown when checkbox checked */
.equip-slider {
  display: none;
  margin-top: 6px;
}

.equip-check:checked ~ .equip-slider {
  display: block;
}

/* ── Range slider ────────────────────────────────────────────────────────── */
.range-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-range {
  flex: 1;
  height: 4px;
  accent-color: var(--blue);
}

.range-val {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  min-width: 28px;
  text-align: right;
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: .6rem;
  color: #999;
  margin-top: 2px;
}

/* ── Gamme (star level selection) ────────────────────────────────────────── */
.gamme-card {
  min-height: 80px;
  font-size: .78rem;
}

.gamme-card .equip-icon {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ── Contact fields ──────────────────────────────────────────────────────── */
.contact-fields .form-control {
  border-radius: 6px;
  border-color: var(--border);
  font-size: .9rem;
}

.contact-fields .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,148,206,.15);
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.btn-submit {
  background: var(--navy);
  color: var(--yellow);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border: none;
  border-radius: 8px;
  padding: .75rem 2.5rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-1px);
}

/* ── Breadcrumb / back button ────────────────────────────────────────────── */
.back-link {
  color: var(--blue);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--navy); }

/* ── Result cards ────────────────────────────────────────────────────────── */
.result-summary {
  background: var(--light);
  border: 1px solid #c9ddee;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.result-summary .ah-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
  background: #fff;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-card .product-img-wrap {
  background: var(--light);
  padding: 1rem;
  text-align: center;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-img-wrap img {
  max-height: 130px;
  max-width: 100%;
  object-fit: contain;
}

.product-card .product-body {
  padding: 1rem;
}

.product-recommendation {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(27,148,206,.08);
  border-left: 3px solid var(--blue);
  padding: .5rem .75rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: .75rem;
}

.product-name {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--navy);
}

.product-spec {
  font-size: .8rem;
  color: #555;
  margin-bottom: .25rem;
}

.product-spec span {
  font-weight: 600;
  color: var(--dark);
}

.gamme-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  margin-bottom: .5rem;
}

.btn-product {
  display: inline-block;
  background: var(--navy);
  color: var(--yellow);
  border: none;
  border-radius: 6px;
  padding: .45rem 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-product:hover {
  background: var(--yellow);
  color: var(--navy);
}

/* ── Detail table (expandable) ───────────────────────────────────────────── */
.detail-toggle {
  font-size: .85rem;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}

.detail-table th {
  font-size: .8rem;
  font-weight: 600;
}
.detail-table td {
  font-size: .8rem;
}

/* ── No result state ─────────────────────────────────────────────────────── */
.no-result {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}
.no-result i { font-size: 3rem; margin-bottom: 1rem; color: #ccc; }

/* ── Modify button ───────────────────────────────────────────────────────── */
.btn-modify {
  background: rgba(27,148,206,.1);
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background var(--transition), color var(--transition);
}
.btn-modify:hover {
  background: var(--blue);
  color: #fff;
}

/* ── Help CTA ────────────────────────────────────────────────────────────── */
.help-cta {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

/* ── Electric form specifics ─────────────────────────────────────────────── */
.unit-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
@media (max-width: 576px) {
  .unit-inputs { grid-template-columns: 1fr; }
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .equip-card { font-size: .68rem; min-height: 80px; }
  .form-section { padding: 1rem; }
  .hero { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  .equip-card .equip-icon { font-size: 1.3rem; }
}

/* ── Wizard ──────────────────────────────────────────────────────────────── */
.wizard-header {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.wizard-step-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.wizard-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}

.wizard-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--light);
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width .35s ease;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-wizard-prev {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: .5rem 1.3rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  visibility: hidden;
}
.btn-wizard-prev.visible {
  visibility: visible;
}
.btn-wizard-prev:hover {
  background: var(--blue);
  color: #fff;
}

.btn-wizard-next {
  background: var(--navy);
  color: var(--yellow);
  border: none;
  border-radius: 6px;
  padding: .5rem 1.5rem;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-wizard-next:hover {
  background: var(--yellow);
  color: var(--navy);
  transform: translateY(-1px);
}

/* Wizard step hidden state */
.form-section[data-wizard-step] {
  transition: opacity .25s ease;
}
.form-section.wizard-hidden {
  display: none;
}

/* ── Print / PDF ─────────────────────────────────────────────────────────── */
.btn-print {
  background: rgba(40,167,69,.1);
  color: #28a745;
  border: 1px solid #28a745;
  border-radius: 6px;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-print:hover {
  background: #28a745;
  color: #fff;
}

.no-print { /* utility — hidden in print */ }

@media print {
  .site-header,
  .site-footer,
  .back-link,
  .btn-modify,
  .btn-print,
  .help-cta,
  .wizard-header,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  #results {
    display: block !important;
  }

  .product-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .row.g-4 {
    display: flex;
    flex-wrap: wrap;
  }

  .result-summary {
    border: 1px solid #ccc;
    background: #f9f9f9;
  }

  a[href]::after {
    content: none !important;
  }

  .btn-product,
  .btn-cart {
    display: none !important;
  }

  .collapse:not(.show) {
    display: none !important;
  }

  /* Hide comparison table toggle, only show cards */
  #view-table,
  .view-toggle-bar {
    display: none !important;
  }
  #view-cards {
    display: flex !important;
  }
}

/* ── Cart button ─────────────────────────────────────────────────────────── */
.btn-cart {
  display: inline-block;
  background: #28a745;
  color: #fff;
  border-radius: 6px;
  padding: .45rem 1.1rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: .5rem;
  transition: background .2s;
}
.btn-cart:hover {
  background: #218838;
  color: #fff;
}

/* ── Comparison table ────────────────────────────────────────────────────── */
.view-toggle-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.btn-view-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-view-toggle.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-view-toggle:not(.active):hover {
  border-color: var(--blue);
  color: var(--blue);
}

.comparison-table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.comparison-table .table {
  margin-bottom: 0;
}

.comparison-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  padding: .75rem .5rem;
  border-color: rgba(255,255,255,.15);
}

.comparison-table thead th:first-child {
  background: var(--light);
  color: var(--navy);
  font-weight: 700;
  font-size: .8rem;
  text-align: left;
  border-color: var(--border);
}

.comparison-table tbody td {
  font-size: .82rem;
  vertical-align: middle;
  text-align: center;
  padding: .6rem .5rem;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  background: var(--light);
  font-size: .8rem;
}

.comparison-table tbody tr:hover td {
  background: rgba(27,148,206,.04);
}
.comparison-table tbody tr:hover td:first-child {
  background: #e8f0f8;
}

.comparison-table .comp-reco {
  font-weight: 700;
  color: var(--navy);
  font-size: .88rem;
}

.comparison-table .comp-cart {
  display: inline-block;
  background: #28a745;
  color: #fff;
  border-radius: 5px;
  padding: .3rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.comparison-table .comp-cart:hover {
  background: #218838;
  color: #fff;
}

/* ── Chat Widget ─────────────────────────────────────────────────────────── */
#bmd-chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Toggle button */
.bmd-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fc5b1f;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(252,91,31,.40);
  transition: transform .2s ease, background .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bmd-chat-toggle:hover {
  background: var(--navy);
  transform: scale(1.08);
}
/* Pulse — stops once user opens the widget (.bmd-no-pulse added by JS) */
.bmd-chat-toggle:not(.bmd-no-pulse) {
  animation: bmd-pulse 2.5s 4s infinite;
}
@keyframes bmd-pulse {
  0%, 60%, 100% { box-shadow: 0 4px 16px rgba(252,91,31,.40); }
  30%           { box-shadow: 0 4px 16px rgba(252,91,31,.40),
                              0 0 0 8px  rgba(252,91,31,.18),
                              0 0 0 18px rgba(252,91,31,.06); }
}

/* Chat panel */
.bmd-chat-panel {
  display: none;
  flex-direction: column;
  width: 340px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(4,50,104,.22);
  margin-bottom: .75rem;
  overflow: hidden;
}
.bmd-chat-panel.bmd-chat-open {
  display: flex;
}

/* Header */
.bmd-chat-header {
  background: var(--navy);
  color: #fff;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.bmd-chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: .9rem;
}
.bmd-chat-header-info {
  flex: 1;
}
.bmd-chat-header-name {
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.2;
}
.bmd-chat-header-status {
  font-size: .73rem;
  opacity: .75;
}
.bmd-chat-restart,
.bmd-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  padding: .2rem .3rem;
  line-height: 1;
  transition: color .15s;
}
.bmd-chat-restart { font-size: .82rem; }
.bmd-chat-close   { font-size: 1.3rem; }
.bmd-chat-restart:hover { color: var(--yellow); }
.bmd-chat-close:hover   { color: #fff; }

/* Messages area */
.bmd-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: #f8fafd;
}

/* Bubbles */
.bmd-msg {
  max-width: 82%;
  padding: .55rem .8rem;
  border-radius: 14px;
  font-size: .84rem;
  line-height: 1.45;
  word-wrap: break-word;
}
.bmd-msg a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}
.bmd-msg-assistant {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.bmd-msg-user {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Typing indicator (inline, inside a message bubble) */
.bmd-typing-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .15rem 0;
}
.bmd-typing-inline span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aab;
  display: block;
  animation: bmd-bounce .9s infinite ease-in-out;
}
.bmd-typing-inline span:nth-child(2) { animation-delay: .15s; }
.bmd-typing-inline span:nth-child(3) { animation-delay: .3s; }
@keyframes bmd-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

/* Input area */
.bmd-chat-footer {
  padding: .65rem .75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
  background: #fff;
  flex-shrink: 0;
}
.bmd-chat-footer input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .45rem .9rem;
  font-size: .84rem;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}
.bmd-chat-footer input:focus {
  border-color: var(--blue);
}
.bmd-chat-footer input:disabled {
  background: #f4f7fb;
}
.bmd-chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: background .15s;
  flex-shrink: 0;
}
.bmd-chat-send:hover   { background: var(--blue); }
.bmd-chat-send:disabled { background: #aab; cursor: default; }

/* Product cards */
.bmd-product-cards {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .25rem 0;
  align-self: stretch;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bmd-product-cards::-webkit-scrollbar { display: none; }

.bmd-product-card {
  flex: 0 0 128px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.bmd-product-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}
.bmd-product-card img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  background: #f4f7fb;
  padding: .4rem;
}
.bmd-product-no-img {
  width: 100%;
  height: 76px;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aab;
  font-size: 1.6rem;
}
.bmd-product-card-info {
  padding: .4rem .5rem .5rem;
  flex: 1;
}
.bmd-product-card-name {
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bmd-product-card-price {
  font-size: .72rem;
  color: var(--navy);
  font-weight: 700;
  margin-top: .25rem;
}

/* Email recap form */
.bmd-email-form {
  background: #eef6ff;
  border: 1.5px solid #b8d9f8;
  border-radius: 10px;
  padding: .65rem .85rem;
  align-self: stretch;
}
.bmd-email-prompt {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 .5rem;
}
.bmd-email-row {
  display: flex;
  gap: .4rem;
}
.bmd-email-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .8rem;
  font-size: .8rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.bmd-email-row input:focus { border-color: var(--blue); }
.bmd-email-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.bmd-email-btn:hover     { background: var(--blue); }
.bmd-email-btn:disabled  { background: #aab; cursor: default; }
#bmd-email-result        { font-size: .78rem; margin-top: .4rem; }
.bmd-email-ok  { color: #28a745; }
.bmd-email-err { color: #dc3545; }

/* Suggestions rapides */
.bmd-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .25rem 0 .1rem;
  align-self: flex-start;
}
.bmd-suggestion {
  background: #fff;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 20px;
  padding: .35rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.bmd-suggestion:hover {
  background: var(--blue);
  color: #fff;
}
/* Feedback 👍 👎 */
.bmd-feedback {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  font-size: .76rem;
  color: #9aabb8;
  align-self: flex-start;
  flex-wrap: wrap;
}
.bmd-feedback-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .2rem .55rem;
  font-size: .9rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bmd-feedback-btn:hover { border-color: var(--blue); background: #f0f7ff; }
.bmd-feedback-result    { font-size: .76rem; color: #9aabb8; }

.bmd-suggestions-hint {
  width: 100%;
  font-size: .72rem;
  color: #9aabb8;
  margin-top: .2rem;
  font-style: italic;
}

@media (max-width: 400px) {
  .bmd-chat-panel { width: calc(100vw - 2rem); }
  #bmd-chat-widget { right: 1rem; bottom: 1rem; }
}
