/* ============================================================
   safety.css — Avertissement de sécurité jouet (Dir. 2009/48/CE)
   Bloc affiché sur la fiche produit (avant achat) et le panier
   (rappel avant paiement). Centralisé via brickency_safety_warning().
   ============================================================ */

.bc-safety {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line, #d9d9d6);
  border-left: 4px solid #d11;
  border-radius: 8px;
  background: #fff8f3;
}

.bc-safety-sym {
  position: relative;
  flex: 0 0 auto;
  line-height: 0;
}

.bc-age-sym { display: block; }

/* Badge « 6+ » accolé au pictogramme (version fiche produit) */
.bc-age-badge {
  position: absolute;
  right: -8px;
  bottom: -6px;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, sans-serif);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--orange, #E8790A);
  border: 2px solid #fff;
  border-radius: 50%;
}
.bc-age-badge sup { font-size: .7em; }

.bc-safety-txt {
  margin: 0;
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink, #1a1a1a);
}

.bc-safety-warn { margin: 0; }
.bc-safety-warn b { color: #b00; letter-spacing: .02em; }

.bc-safety-age {
  margin: 6px 0 0;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute, #666);
}
.bc-safety-age b { color: var(--ink, #1a1a1a); }

/* ---- Version condensée (panier) ---- */
.bc-safety--compact {
  margin-top: 14px;
  padding: 12px 14px;
  gap: 12px;
  align-items: center;
}
.bc-safety--compact .bc-age-sym { width: 40px; height: 40px; }
.bc-safety--compact .bc-safety-txt { font-size: 12px; line-height: 1.4; }
.bc-safety--compact .bc-age-rec {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute, #666);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .bc-safety { gap: 12px; padding: 12px 13px; }
  .bc-safety-txt { font-size: 12.5px; }
}
