/* DBB Perso — page « Crée ton t-shirt ». Tout est préfixé .dbbc pour ne pas toucher au thème. */
.dbbc {
  --dbbc-red: #d8312c;
  --dbbc-red-dark: #b4231f;
  --dbbc-ink: #111;
  --dbbc-muted: #6b6b6b;
  --dbbc-line: #e3e3e3;
  --dbbc-soft: #f4f4f4;
  --dbbc-green: #1f8a4c;
  --dbbc-bg: #fff;
  --dbbc-top: 0px;
  color: var(--dbbc-ink);
  font: inherit;
  max-width: 1200px;
  margin: 0 auto 40px;
  -webkit-text-size-adjust: 100%;
}
.dbbc *, .dbbc *::before, .dbbc *::after { box-sizing: border-box; }
.dbbc [hidden] { display: none !important; }
.dbbc button, .dbbc select, .dbbc input { font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; }

/* ---------- Bandeau de l'offre (sous la barre, défile avec la page) */
.dbbc-offer {
  margin: 12px 0 2px; padding: 10px 12px 11px; border: 2px solid var(--dbbc-red); border-radius: 12px;
  background: linear-gradient(180deg, #fff3f2 0%, #fff 100%); box-shadow: 0 3px 0 var(--dbbc-red);
}
.dbbc-offertitle { display: flex; align-items: center; gap: 8px; margin: 0; line-height: 1.2; }
.dbbc-offertitle strong { font-size: 14px; font-weight: 900; color: var(--dbbc-ink); text-transform: uppercase; letter-spacing: .01em; }
.dbbc-gift { flex: 0 0 auto; font-size: 22px; line-height: 1; }
.dbbc-offer .dbbc-progress { margin-top: 8px; flex-wrap: wrap; row-gap: 6px; }
.dbbc-offer .dbbc-track { flex: 0 0 72px; height: 8px; background: #fff; }
.dbbc-offer.ok { border-color: var(--dbbc-green); background: linear-gradient(180deg, #eefaf2 0%, #fff 100%); box-shadow: 0 3px 0 var(--dbbc-green); }
.dbbc-offercta { margin-left: auto; padding: 7px 14px; border-radius: 999px; background: var(--dbbc-green); color: #fff !important; font-size: 13.5px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
@media (min-width: 720px) {
  .dbbc-offer { display: flex; align-items: center; gap: 18px; padding: 14px 18px; }
  .dbbc-offertitle strong { font-size: 19px; }
  .dbbc-gift { font-size: 28px; }
  .dbbc-offer .dbbc-progress { margin: 0 0 0 auto; flex: 0 1 430px; }
  .dbbc-offer .dbbc-track { flex-basis: 90px; }
}

/* ---------- Barre collante */
.dbbc-bar {
  position: sticky; top: var(--dbbc-top); z-index: 30;
  background: var(--dbbc-bg);
  padding: 10px 12px 10px;
  margin: 0 -4px;
  border-bottom: 1px solid var(--dbbc-line);
  box-shadow: 0 6px 14px -10px rgba(0,0,0,.35);
}
.dbbc-inputs { display: flex; gap: 8px; }
.dbbc-in { display: grid; gap: 2px; margin: 0; }
.dbbc-in > span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dbbc-muted); }
.dbbc-in-text { flex: 1 1 auto; min-width: 0; }
.dbbc-in-num { flex: 0 0 92px; }
.dbbc-in input {
  width: 100%; height: 46px; padding: 0 12px; border: 2px solid var(--dbbc-ink); border-radius: 8px;
  font-size: 19px; font-weight: 800; background: #fff; color: var(--dbbc-ink); outline: none; box-shadow: none;
}
.dbbc-in-num input { text-align: center; }
.dbbc-in input:focus { border-color: var(--dbbc-red); }
.dbbc-in input[aria-invalid=true] { border-color: var(--dbbc-red); background: #fff5f5; }
.dbbc-in input::placeholder { color: #b8b8b8; font-weight: 600; }
.dbbc-msg { margin: 6px 0 0; font-size: 13px; color: var(--dbbc-red); font-weight: 600; }
.dbbc-numhint { display: none; margin: 5px 0 0; font-size: 12px; line-height: 1.3; color: var(--dbbc-muted); text-align: right; }
.dbbc-numfocus .dbbc-numhint { display: block; }
@media (min-width: 720px) { .dbbc-numhint { display: block; } }
.dbbc-in-num input::placeholder { font-size: 14px; }
.dbbc-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.dbbc-facebtn {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1.5px dashed var(--dbbc-ink); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dbbc-facebtn > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dbbc-facebtn.on { border-style: solid; border-color: var(--dbbc-green); color: var(--dbbc-green); }
.dbbc-facewrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; }
.dbbc-facex { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.dbbc .dbbc-facex { background: var(--dbbc-soft) !important; color: var(--dbbc-ink) !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; min-width: 0 !important; padding: 0 !important; }
.dbbc .dbbc-facex[hidden] { display: none !important; }
.dbbc-toastundo { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.dbbc .dbbc-toastundo { background: #fff !important; color: var(--dbbc-green) !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; }
.dbbc .dbbc-toastundo[hidden] { display: none !important; }
.dbbc-faceicon { font-size: 18px; line-height: 1; }
.dbbc-facebtn.on .dbbc-faceicon { display: none; }
.dbbc-facethumb { width: 28px; height: 28px; margin-left: -6px; border-radius: 50%; object-fit: cover; object-position: top; background: #222; }
.dbbc-cart {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--dbbc-ink); color: #fff !important; text-decoration: none !important; font-size: 13.5px; font-weight: 700;
}
.dbbc-cart b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: var(--dbbc-ink); font-size: 12px; display: inline-grid; place-items: center; }
.dbbc-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; font-weight: 700; }
.dbbc-track { flex: 0 0 64px; height: 7px; border-radius: 4px; background: var(--dbbc-soft); overflow: hidden; box-shadow: inset 0 0 0 1px var(--dbbc-line); }
.dbbc-track i { display: block; height: 100%; width: 0; background: var(--dbbc-red); border-radius: 4px; transition: width .4s ease; }
.dbbc-progress.ok .dbbc-track i { background: var(--dbbc-green); }
.dbbc-progress.ok { color: var(--dbbc-green); }
.dbbc-progtext { min-width: 0; line-height: 1.25; }

/* ---------- Filtres */
.dbbc-filters { padding: 12px 0 6px; scroll-margin-top: calc(var(--dbbc-top) + 150px); }
.dbbc-chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.dbbc-chips::-webkit-scrollbar { display: none; }
.dbbc-chip {
  flex: 0 0 auto; height: 36px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--dbbc-line);
  background: #fff; color: var(--dbbc-ink); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.dbbc-chip[aria-pressed=true] { background: var(--dbbc-ink); border-color: var(--dbbc-ink); color: #fff; }
.dbbc-filters2 { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.dbbc-team-select {
  flex: 0 1 260px; min-width: 0; height: 38px; padding: 0 30px 0 12px; border: 1.5px solid var(--dbbc-line); border-radius: 8px;
  background: #fff; color: var(--dbbc-ink); font-size: 14px; font-weight: 600;
}
.dbbc-count { margin-left: auto; font-size: 13px; color: var(--dbbc-muted); white-space: nowrap; }
.dbbc-notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 4px 0 12px; padding: 12px 14px; border-radius: 10px; background: #fff4e5; font-size: 14px; }
.dbbc-notice p { margin: 0; flex: 1 1 220px; }
.dbbc-empty { text-align: center; padding: 30px 0; color: var(--dbbc-muted); }

/* ---------- Grille */
.dbbc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
@media (min-width: 720px) { .dbbc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; } }
@media (min-width: 1024px) { .dbbc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dbbc-card { display: flex; flex-direction: column; min-width: 0; border-radius: 10px; background: #fff; border: 1px solid var(--dbbc-line); overflow: hidden; }
.dbbc-card.dbbc-added { border-color: var(--dbbc-green); }
.dbbc-media { position: relative; aspect-ratio: 1 / 1; background: #ececec; }
.dbbc-media canvas { display: block; width: 100%; height: 100%; }
.dbbc-media.loading::after, .dbbc-media.busy::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) #e8e8e8;
  background-size: 200% 100%; animation: dbbc-shine 1.2s linear infinite;
}
.dbbc-media.busy::after { background-color: transparent; }
.dbbc-media.err::after { content: "Aperçu indisponible"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--dbbc-muted); background: #eee; animation: none; }
@keyframes dbbc-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.dbbc-media { cursor: zoom-in; }
.dbbc-zoombadge {
  position: absolute; left: 6px; top: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px;
  border: 0; border-radius: 999px; background: rgba(17,17,17,.82); color: #fff; font-size: 11.5px; font-weight: 800; cursor: zoom-in; line-height: 1;
}
.dbbc-zoombadge span { font-size: 11px; }
.dbbc-body { display: flex; flex-direction: column; gap: 3px; padding: 8px 9px 10px; flex: 1; }
.dbbc-name { font-size: 13.5px; font-weight: 800; line-height: 1.2; color: var(--dbbc-ink) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dbbc-team { font-size: 11.5px; color: var(--dbbc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbbc-price { font-size: 14px; font-weight: 800; margin-top: 2px; }
.dbbc-toggle { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1.25; }
.dbbc-toggle input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--dbbc-red); }
.dbbc-err { margin: 4px 0 0; font-size: 12px; line-height: 1.3; color: var(--dbbc-red); font-weight: 600; }
.dbbc-buy { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 8px; }
.dbbc-size {
  width: 100%; height: 40px; padding: 0 8px; border: 1.5px solid var(--dbbc-line); border-radius: 8px; background: #fff; color: var(--dbbc-ink);
  font-size: 15px; font-weight: 700;
}
.dbbc-size.dbbc-need { border-color: var(--dbbc-red); }
.dbbc-add, .dbbc-btn {
  height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--dbbc-red); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  touch-action: manipulation;
}
.dbbc-add:hover, .dbbc-btn:hover { background: var(--dbbc-red-dark); }
.dbbc-add:disabled, .dbbc-btn:disabled { opacity: .6; cursor: wait; }
.dbbc-card.dbbc-toolong .dbbc-add { background: #999; }
.dbbc-link { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font-weight: 700; cursor: pointer; font-size: inherit; }
@media (min-width: 480px) { .dbbc-buy { flex-direction: row; } .dbbc-size { flex: 0 0 84px; width: auto; } .dbbc-add { flex: 1; } }

/* ---------- Toast */
.dbbc-toast {
  position: fixed; left: 50%; bottom: 16px; z-index: 2147483000; transform: translate(-50%, 20px); opacity: 0; transition: opacity .2s, transform .2s;
  display: flex; gap: 12px; align-items: center; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 10px;
  background: var(--dbbc-green); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.dbbc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.dbbc-toastmsg { display: grid; gap: 2px; min-width: 0; }
.dbbc-toastmsg small { font-size: 12.5px; font-weight: 600; opacity: .92; }
.dbbc-toast.err { background: var(--dbbc-red); }
.dbbc-toast a { color: #fff !important; text-decoration: underline; white-space: nowrap; }

/* ---------- Fenêtre visage */
html.dbbc-lock, html.dbbc-lock body { overflow: hidden; }
.dbbc-modal { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); }
@media (min-width: 640px) { .dbbc-modal { align-items: center; } }
.dbbc-sheet {
  position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; padding: 22px 18px 20px;
  border-radius: 16px 16px 0 0; background: #fff; color: var(--dbbc-ink); display: grid; gap: 12px;
}
@media (min-width: 640px) { .dbbc-sheet { border-radius: 16px; } }
.dbbc-sheet h2 { margin: 0; padding-right: 30px; font-size: 21px; font-weight: 900; color: var(--dbbc-ink); }
.dbbc-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--dbbc-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.dbbc-small { margin: 0; font-size: 13.5px; line-height: 1.4; color: #444; }
.dbbc-pickrow { display: flex; gap: 12px; align-items: center; }
.dbbc-pick { position: relative; flex: 1; display: grid; place-items: center; height: 48px; border: 2px dashed var(--dbbc-ink); border-radius: 10px; font-weight: 800; cursor: pointer; overflow: hidden; }
.dbbc-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dbbc-photo { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.dbbc-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: #333; cursor: pointer; }
.dbbc-consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--dbbc-red); }
.dbbc-go { height: 50px; font-size: 16px; }
.dbbc-wait { display: grid; gap: 6px; }
.dbbc-track.big { flex: none; width: 100%; height: 10px; }
.dbbc-waitrow { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.dbbc-waitrow small { color: var(--dbbc-muted); font-weight: 600; white-space: nowrap; }
.dbbc-status { margin: 0; font-size: 13px; min-height: 1em; }
.dbbc-status:empty { display: none; }
.dbbc-status.err { color: var(--dbbc-red); font-weight: 700; }
.dbbc-done { display: grid; gap: 10px; }
.dbbc-ok { margin: 0; color: var(--dbbc-green); font-weight: 800; }
.dbbc-current { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dbbc-muted); }
.dbbc-current img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #222; }
.dbbc-sheet .dbbc-link { justify-self: start; font-size: 13px; color: var(--dbbc-muted); }

/* ---------- Fenêtre zoom */
.dbbc-zoom { background: rgba(0,0,0,.72); }
.dbbc-zsheet {
  position: relative; width: 100%; max-width: 560px; max-height: 96vh; max-height: 96dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 12px 14px; border-radius: 16px 16px 0 0; background: #fff; color: var(--dbbc-ink);
  display: grid; gap: 10px; transition: transform .2s ease;
}
.dbbc-handle { width: 42px; height: 5px; margin: 0 auto 2px; border-radius: 3px; background: #d4d4d4; }
.dbbc-zsheet .dbbc-x { top: 8px; right: 8px; z-index: 2; font-size: 17px; font-weight: 800; }
.dbbc-zmedia { display: grid; gap: 8px; min-width: 0; }
.dbbc-zstage { position: relative; display: grid; place-items: center; min-width: 0; border-radius: 10px; overflow: hidden; background: #ececec; }
.dbbc-zstage canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(96dvh - 250px); min-height: 200px; }
.dbbc-zstage.empty::before, .dbbc-zstage.loading::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size: 200% 100%; animation: dbbc-shine 1.2s linear infinite;
}
.dbbc-zstage.loading:not(.empty)::after { content: "HD…"; position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(17,17,17,.7); color: #fff; font-size: 11px; font-weight: 700; }
.dbbc-zstage.err::after { content: "Aperçu indisponible"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--dbbc-muted); background: #eee; animation: none; }
.dbbc-zviews { display: flex; justify-content: center; gap: 6px; }
.dbbc-zview { height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--dbbc-line); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.dbbc-zview[aria-pressed=true] { background: var(--dbbc-ink); border-color: var(--dbbc-ink); color: #fff; }
.dbbc-zinfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dbbc-ztitle { font-size: 17px; font-weight: 900; line-height: 1.2; color: var(--dbbc-ink) !important; text-decoration: none !important; padding-right: 40px; }
.dbbc-zmeta { display: flex; align-items: baseline; gap: 10px; }
.dbbc-zmeta .dbbc-price { margin: 0 0 0 auto; font-size: 17px; }
.dbbc-zinfo .dbbc-buy { flex-direction: row; padding-top: 6px; }
.dbbc-zinfo .dbbc-size { flex: 0 0 96px; width: auto; height: 46px; }
.dbbc-zinfo .dbbc-add { flex: 1; height: 46px; font-size: 16px; }
.dbbc-zinfo .dbbc-toggle { font-size: 14px; }
@media (min-width: 640px) { .dbbc-zsheet { border-radius: 16px; padding: 14px 16px 16px; } .dbbc-handle { display: none; } }
@media (min-width: 860px) {
  .dbbc-zsheet { max-width: 980px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; padding: 18px; }
  .dbbc-zstage canvas { max-height: calc(92vh - 90px); }
  .dbbc-zinfo { padding-top: 34px; gap: 8px; }
  .dbbc-zinfo .dbbc-buy { flex-direction: column; }
  .dbbc-zinfo .dbbc-size { flex: none; width: 100%; }
  .dbbc-zinfo .dbbc-add { flex: none; }
}

/* Le thème DBB impose un style aux <button> (fond noir) : on reprend la main sur nos boutons. */
.dbbc .dbbc-facebtn { background: transparent !important; color: var(--dbbc-ink) !important; border: 1.5px dashed var(--dbbc-ink) !important; box-shadow: none !important; min-height: 0 !important; line-height: 1.2 !important; }
.dbbc .dbbc-facebtn.on { border-style: solid !important; border-color: var(--dbbc-green) !important; color: var(--dbbc-green) !important; }
.dbbc .dbbc-chip { background: #fff !important; color: var(--dbbc-ink) !important; border: 1.5px solid var(--dbbc-line) !important; box-shadow: none !important; min-height: 0 !important; line-height: 1 !important; }
.dbbc .dbbc-chip[aria-pressed=true] { background: var(--dbbc-ink) !important; border-color: var(--dbbc-ink) !important; color: #fff !important; }
.dbbc .dbbc-zview { background: #fff !important; color: var(--dbbc-ink) !important; border: 1.5px solid var(--dbbc-line) !important; box-shadow: none !important; min-height: 0 !important; line-height: 1 !important; }
.dbbc .dbbc-zview[aria-pressed=true] { background: var(--dbbc-ink) !important; border-color: var(--dbbc-ink) !important; color: #fff !important; }
.dbbc .dbbc-zoombadge { background: rgba(17,17,17,.82) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 0 9px !important; height: 24px !important; width: auto !important; }
.dbbc .dbbc-x { background: var(--dbbc-soft) !important; color: var(--dbbc-ink) !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; padding: 0 !important; }
.dbbc .dbbc-offercta { color: #fff !important; }
.dbbc .dbbc-add, .dbbc .dbbc-btn { background: var(--dbbc-red) !important; color: #fff !important; border-color: var(--dbbc-red) !important; box-shadow: none !important; }
.dbbc .dbbc-add:hover, .dbbc .dbbc-btn:hover { background: var(--dbbc-red-dark) !important; }
.dbbc .dbbc-cart, .dbbc .dbbc-cart > span:first-child { color: #fff !important; text-decoration: none !important; }

/* ---------- Couleur du t-shirt, prix de la personnalisation, prix barrés */
.dbbc-bartop { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.dbbc-persohead { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dbbc-muted); }
.dbbc-ptag { letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--dbbc-ink); }
.dbbc-ptag.off { color: var(--dbbc-green); }
.dbbc-ptag s { font-weight: 500; opacity: .7; }
.dbbc-facebtn .dbbc-ptag { font-weight: 600; }
.dbbc-colors { display: flex; align-items: center; gap: 6px; }
.dbbc-colorslabel { font-size: 12px; font-weight: 700; color: var(--dbbc-muted); }
.dbbc-color {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 6px; border: 1.5px solid var(--dbbc-line);
  border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700;
}
.dbbc-color i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9a9a9a; background: #111; }
.dbbc-color-blanc i { background: #fff; }
.dbbc-color[aria-pressed=true] { border-color: var(--dbbc-red); box-shadow: inset 0 0 0 1px var(--dbbc-red); }
.dbbc-price s { font-weight: 600; color: var(--dbbc-muted); margin-right: 2px; }
.dbbc-pdet { font-size: 11.5px; line-height: 1.3; color: var(--dbbc-muted); }
.dbbc-pdet.off { color: var(--dbbc-green); font-weight: 700; }
.dbbc-only { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--dbbc-soft); color: var(--dbbc-muted); }
.dbbc-zinfo .dbbc-pdet { display: block; margin-top: -2px; }
.dbbc-offeramount { flex: 0 0 auto; font-size: 14px; font-weight: 900; color: var(--dbbc-green); white-space: nowrap; }
.dbbc-offeramount s { color: var(--dbbc-muted); font-weight: 700; margin-right: 4px; }
.dbbc-offertitle { flex-wrap: wrap; }
@media (min-width: 720px) { .dbbc-offeramount { font-size: 18px; } }
/* Couleur du t-shirt : sa propre ligne sous « Ajouter mon visage / Panier », dans la barre collante */
.dbbc-bar .dbbc-colors { margin-top: 8px; }
.dbbc .dbbc-bar .dbbc-color { min-height: 32px !important; padding: 4px 12px 4px 6px !important; font-size: 13px !important; }
.dbbc-bar .dbbc-colors[hidden] { display: none; }
/* Tailles enfant : libellé plus long (« Enfant M (10-12 ans) ») sans écraser le bouton */
.dbbc-size { min-width: 0; text-overflow: ellipsis; }
@media (min-width: 480px) { .dbbc-card .dbbc-size { flex: 0 1 auto; min-width: 84px; max-width: 58%; } .dbbc-card .dbbc-add { min-width: 74px; padding: 0 10px; } }

/* Barre d'offre en bas de l'écran (mobile surtout) */
.dbbc .dbbc-dock { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px; background: #111; color: #fff; font-size: 13px; line-height: 1.25; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.dbbc .dbbc-dock.ok { background: #1a7f37; }
.dbbc .dbbc-docktext { flex: 1 1 auto; font-weight: 700; }
.dbbc .dbbc-dockcount { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: #d8312c; font-size: 12px; }
.dbbc .dbbc-dock.ok .dbbc-dockcount { background: rgba(255,255,255,.25); }
.dbbc .dbbc-dockcta { flex: 0 0 auto; color: #fff !important; font-weight: 800; text-decoration: underline !important; }
.dbbc { padding-bottom: 70px; }
@media (min-width: 900px) { .dbbc .dbbc-dock { left: auto; right: 20px; bottom: 20px; max-width: 420px; } }

/* Pastilles de couleur lisibles malgré le style des boutons du thème */
.dbbc .dbbc-color { display: inline-flex !important; align-items: center; gap: 7px; min-height: 36px !important; padding: 5px 12px 5px 6px !important;
  border-radius: 999px !important; border: 1.5px solid #cfcfcf !important; background: #fff !important; color: #111 !important;
  font-size: 13.5px !important; font-weight: 700 !important; line-height: 1 !important; box-shadow: none !important; text-transform: none !important; }
.dbbc .dbbc-color i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #9a9a9a; background: #111; display: inline-block; }
.dbbc .dbbc-color-blanc i { background: #fff; }
.dbbc .dbbc-color[aria-pressed=true] { border: 2px solid var(--dbbc-red) !important; box-shadow: 0 0 0 2px rgba(216,49,44,.15) !important; }

.dbbc-kidsnote { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--dbbc-muted); }

/* ---------- Designs famille (plusieurs visages) */
.dbbc-fambadge { align-self: flex-start; display: inline-block; width: max-content; max-width: 100%; white-space: nowrap; line-height: 1.5; margin: 0 0 4px; padding: 2px 8px; border-radius: 999px; background: #111; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.dbbc-famrow .dbbc-famgo { flex: 1 1 auto; }
.dbbc .dbbc-famgo { font-size: 13.5px !important; }
.dbbc-fsheet { padding-top: 16px; }
.dbbc-ftitle { margin: 0 40px 4px 0; font-size: 17px; line-height: 1.25; }
.dbbc-fstage { margin: 6px 0 4px; border-radius: 10px; overflow: hidden; }
.dbbc-fstage canvas { width: 100%; height: auto; display: block; }
.dbbc-famrows { display: grid; gap: 0; margin: 6px 0 4px; }
.dbbc-famrowp { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--dbbc-line); }
.dbbc-famphwrap { position: relative; flex: 0 0 56px; }
.dbbc-fampick { display: block; cursor: pointer; }
.dbbc-famph { width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed var(--dbbc-ink); display: grid; place-items: center; text-align: center;
  font-size: 11px; font-weight: 800; line-height: 1.1; background: #fff center 20%/cover no-repeat; color: var(--dbbc-ink); }
.dbbc-famph.on { border: 2px solid var(--dbbc-green); background-color: #222; }
.dbbc-famph.busy { animation: dbbc-pulse 1s ease-in-out infinite alternate; }
@keyframes dbbc-pulse { from { opacity: 1; } to { opacity: .45; } }
.dbbc-famx { position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.dbbc .dbbc-famx { background: #111 !important; color: #fff !important; border: 2px solid #fff !important; padding: 0 !important; min-height: 0 !important; min-width: 0 !important; box-shadow: none !important; }
.dbbc .dbbc-famx[hidden] { display: none !important; }
.dbbc-famin { flex: 1 1 auto; display: grid; gap: 3px; min-width: 0; }
.dbbc-famin > span { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dbbc-muted); }
.dbbc-famin input { width: 100%; height: 40px; border: 2px solid var(--dbbc-ink); border-radius: 8px; padding: 0 10px; font-size: 16px; font-weight: 700; font-family: inherit; background: #fff; color: var(--dbbc-ink); }
.dbbc-famst { font-size: 12px; font-weight: 600; color: var(--dbbc-green); min-height: 0; }
.dbbc-famst:empty { display: none; }
.dbbc-famst.err { color: var(--dbbc-red); }
.dbbc-famextra { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dbbc-famextra .dbbc-famin { flex: 1 1 160px; }
.dbbc-famextra .dbbc-famin.num { flex: 0 1 120px; }
.dbbc-famextra .dbbc-famin.num input { text-align: center; }
.dbbc-famnote { margin: 2px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--dbbc-green); }

/* ---------- Vêtement : t-shirt / sweat / sweat à capuche */
.dbbc-garments { display: flex; gap: 6px; margin-top: 8px; }
.dbbc-garments[hidden] { display: none; }
.dbbc .dbbc-garment { flex: 1 1 auto; min-width: 0; min-height: 32px !important; padding: 4px 6px !important; border-radius: 999px !important; border: 1.5px solid #cfcfcf !important;
  background: #fff !important; color: #111 !important; font-size: 12.5px !important; font-weight: 700 !important; line-height: 1.1 !important; box-shadow: none !important; text-transform: none !important; white-space: nowrap; padding: 4px 10px !important; }
.dbbc .dbbc-garment[aria-pressed=true] { background: #111 !important; border-color: #111 !important; color: #fff !important; }
.dbbc .dbbc-garment[hidden] { display: none !important; }
.dbbc-switching .dbbc-grid { opacity: .4; }

/* ---------- Grand aperçu du visage + réglage de la barre */
.dbbc-mprev { margin: 4px 0 10px; }
.dbbc-mprev canvas { width: 100%; height: auto; display: block; border-radius: 10px; background: #f2f2f2; }
.dbbc-mprev .dbbc-small { margin: 8px 0 6px; }
.dbbc-adjrow { display: flex; gap: 8px; }
.dbbc .dbbc-adj { flex: 1 1 0; min-height: 40px !important; border-radius: 10px !important; border: 2px solid #111 !important; background: #fff !important; color: #111 !important;
  font-size: 14px !important; font-weight: 800 !important; box-shadow: none !important; padding: 0 8px !important; line-height: 1.1 !important; }

.dbbc-ztextrow { margin: 6px 0 8px; }

/* Bulle du chat (Chatty / Avada) remontée au-dessus de la barre d'offre */
html.dbbc-has-dock .Avada-Faqs_Button { bottom: calc(var(--dbbc-dock-h, 56px) + 18px) !important; transition: bottom .2s; }
@media (min-width: 900px) { html.dbbc-has-dock .Avada-Faqs_Button { bottom: calc(var(--dbbc-dock-h, 56px) + 28px) !important; } }

/* Zoom : surnom (3/4) + taille (1/4) sur une ligne, « Ajouter » pleine largeur dessous */
.dbbc-zpick { display: flex; gap: 8px; align-items: end; margin: 6px 0 2px; }
.dbbc-zpick .dbbc-ztextrow { flex: 3 1 0; margin: 0; }
.dbbc-zpick .dbbc-zsizerow, .dbbc-zpick .dbbc-ztextrow { margin: 0 !important; }
.dbbc-zpick .dbbc-zsizerow { flex: 1 1 0; min-width: 84px; }
.dbbc .dbbc-zinfo .dbbc-zpick .dbbc-size { flex: none; width: 100%; height: 46px; border: 2px solid var(--dbbc-ink); border-radius: 8px; font-size: 16px; font-weight: 800; padding: 0 6px; }
.dbbc .dbbc-zinfo .dbbc-zpick .dbbc-size.dbbc-need { border-color: var(--dbbc-red); }
.dbbc-zpick .dbbc-famin input { height: 46px; }
.dbbc-zinfo .dbbc-zbuy { flex-direction: column; }
.dbbc-zinfo .dbbc-zbuy .dbbc-add { flex: none; width: 100%; }

/* ---------- Offre en 2 cases (compacte) */
.dbbc-offer { padding: 9px 10px 10px; }
.dbbc-offertitle strong { font-size: 13.5px; }
.dbbc-gift { font-size: 20px; }
.dbbc-slots { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.dbbc-slot { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 5px 8px; border: 2px dashed #c9c9c9; border-radius: 10px; background: #fff; }
.dbbc-slotic { flex: 0 0 auto; font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .4; }
.dbbc-slottx { display: grid; min-width: 0; line-height: 1.15; }
.dbbc-slottx b { font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: #8a8a8a; }
.dbbc-slotst { font-size: 12.5px; font-weight: 800; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbbc-slot.gift { border-color: var(--dbbc-red); }
.dbbc-slot.gift .dbbc-slotst { color: var(--dbbc-red); }
.dbbc-slot.on { border: 2px solid var(--dbbc-ink); }
.dbbc-slot.on .dbbc-slotic { filter: none; opacity: 1; }
.dbbc-slot.on b, .dbbc-slot.on .dbbc-slotst { color: var(--dbbc-ink); }
.dbbc-offer.ok .dbbc-slot.on { border-color: var(--dbbc-green); background: #f3fbf6; }
.dbbc-offer.ok .dbbc-slot.on .dbbc-slotst { color: var(--dbbc-green); }
.dbbc-offer.ok .dbbc-offertitle strong { color: var(--dbbc-green); }
.dbbc-slots .dbbc-offercta { display: none; } /* mobile : la barre du bas a déjà « Panier → » */
@media (min-width: 720px) {
  .dbbc-offer { padding: 12px 16px; }
  .dbbc-offertitle strong { font-size: 18px; }
  .dbbc-gift { font-size: 26px; }
  .dbbc-slots { margin: 0 0 0 auto; flex: 0 1 470px; align-items: center; }
  .dbbc-slots .dbbc-offercta:not([hidden]) { display: inline-block; }
}
.dbbc-offer .dbbc-offertitle { flex-wrap: nowrap; }
.dbbc-offer .dbbc-offertitle strong { flex: 1 1 auto; min-width: 0; line-height: 1.15; }

/* ---------- Essai ?menu=filtres : filtres dans la barre collante, couleur en pastilles */
.dbbc-bar--fb .dbbc-gcrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dbbc-bar--fb .dbbc-gcrow .dbbc-garments { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.dbbc-bar--fb .dbbc-colors { margin-top: 0 !important; gap: 4px; flex: 0 0 auto; }
.dbbc-bar--fb .dbbc-colorslabel { display: none; }
.dbbc .dbbc-bar--fb .dbbc-color { width: 32px; height: 32px; min-height: 0 !important; padding: 0 !important; gap: 0; justify-content: center; border-radius: 50% !important; font-size: 0 !important; }
.dbbc .dbbc-bar--fb .dbbc-color i { width: 22px; height: 22px; }
.dbbc-bar--fb .dbbc-fbar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.dbbc-bar--fb .dbbc-chips { flex: 1 1 auto; min-width: 0; padding: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.dbbc .dbbc-bar--fb .dbbc-chip { height: 32px; padding: 0 12px; font-size: 13px; }
.dbbc-bar--fb .dbbc-team-select { flex: 0 0 auto; width: 128px; height: 32px; padding: 0 22px 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.dbbc-bar--fb .dbbc-team-select[hidden] { display: none; }
.dbbc-filters--min { padding: 8px 0 2px; }
.dbbc-filters--min .dbbc-filters2 { margin-top: 0; }
.dbbc .dbbc-bar--fb .dbbc-chip { height: 32px !important; padding: 0 12px !important; font-size: 13px !important; border-radius: 999px !important; margin: 0 !important; }
.dbbc .dbbc-bar--fb .dbbc-team-select { height: 32px !important; min-height: 0 !important; margin: 0 !important; padding: 0 26px 0 12px !important; line-height: 28px !important;
  border: 1.5px solid var(--dbbc-line) !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 700 !important; color: var(--dbbc-ink) !important;
  -webkit-appearance: none; appearance: none; box-shadow: none !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 11px center !important; }
