/* SB Laser – goodies gravés */
.sbg { --ink: #1d1f22; --muted: #6b7078; --line: #dfe2e6; --soft: #f4f5f7; --accent: #b8864b;
	display: grid; gap: 1.1rem; width: 100%; margin: 0 0 1.4rem; font-size: 15px; color: var(--ink); }
.sbg * { box-sizing: border-box; }
.sbg button { font: inherit; color: inherit; cursor: pointer; }
.sbg-step { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; background: #fff; }
.sbg-title { font-weight: 600; font-size: 1.05rem; margin-bottom: .8rem; }
.sbg-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sbg-seg button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: .75rem; display: grid; gap: .15rem; }
.sbg-seg button span { font-size: .85rem; color: var(--muted); }
.sbg-seg button[aria-checked="true"] { border-color: var(--ink); background: var(--soft); }
.sbg-side { border: 1px dashed var(--line); border-radius: 10px; padding: .8rem; margin-bottom: .8rem; transition: border-color .2s; }
.sbg-side[hidden] { display: none; }
.sbg-side.is-err { border: 2px solid #c0392b; background: #fdf2f1; }
.sbg-side-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.sbg-mode { display: flex; gap: .3rem; }
.sbg-mode button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.sbg-mode button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sbg-mode-texte { display: grid; gap: .45rem; }
.sbg-mode-texte[hidden], .sbg-drop[hidden] { display: none; }
.sbg-mode-texte input { width: 100%; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 8px; font-size: 1rem; }
.sbg-mode-texte input:focus { border-color: var(--ink); outline: none; }
.sbg-drop { position: relative; display: block; border: 2px dashed var(--line); border-radius: 8px; padding: .9rem; text-align: center; cursor: pointer; }
.sbg-drop:hover { border-color: var(--ink); background: var(--soft); }
.sbg-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.sbg-drop-status { font-size: .85rem; color: var(--muted); word-break: break-word; }
.sbg-drop.is-ok { border-style: solid; border-color: #2f8f5b; } .sbg-drop.is-ok .sbg-drop-status { color: #2f8f5b; }
.sbg-drop.is-err { border-style: solid; border-color: #c0392b; } .sbg-drop.is-err .sbg-drop-status { color: #c0392b; }
.sbg-preview { background: radial-gradient(ellipse at center, #eceef1 0%, #d4d7db 100%); border-radius: 12px; padding: 1rem; }
.sbg-tabs { display: flex; gap: .4rem; justify-content: center; margin-bottom: .6rem; }
.sbg-tabs[hidden] { display: none; }
.sbg-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; }
.sbg-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
#sbg-canvas { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); }
.sbg-note, .sbg-help { color: var(--muted); font-size: .85rem; margin: .5rem 0 0; }
.sbg-note { text-align: center; }
.sbg-tiers { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: .9rem; }
.sbg-tiers th, .sbg-tiers td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.sbg-tiers th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.sbg-tiers td:last-child, .sbg-tiers th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.sbg-tiers tr.is-current td { background: var(--soft); font-weight: 700; }
.sbg-tiers tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.sbg-total { display: grid; gap: .3rem; }
.sbg-total > div { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.sbg-total > div > span:first-child { color: var(--muted); }
.sbg-total-main { font-size: 1.5rem; font-weight: 700; }
.sbg-total-main > span:first-child { font-size: 1rem; font-weight: 400; }

.sbg-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.sbg-head .sbg-title { margin: 0; }
.sbg-texte { display: grid; gap: .45rem; margin-bottom: .8rem; }
.sbg-texte[hidden] { display: none; }
.sbg-texte input { width: 100%; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 8px; font-size: 1rem; }
.sbg-texte input:focus { border-color: var(--ink); outline: none; }
.sbg-drop { margin-bottom: .8rem; }
.sbg-step.is-err { border: 2px solid #c0392b; background: #fdf2f1; }
#sbg-canvas { display: block; width: 100%; height: auto; max-width: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.sbg-logo-note { margin: 0 0 .6rem; padding: .6rem .8rem; background: #fff8ec; border-radius: 8px; }
.sbg-logo-note[hidden] { display: none; }
.sbg-intro { margin: -.3rem 0 .8rem; }
.sbg-zones { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .9rem; }
@media (max-width: 560px) { .sbg-zones { grid-template-columns: 1fr; } }
.sbg-zone { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; display: grid; gap: .5rem; align-content: start; }
.sbg-zone-title { font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: .45rem; }
.sbg-zone-title em { font-weight: 400; color: var(--muted); font-style: normal; font-size: .85rem; }
.sbg-tag { background: var(--ink); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.sbg-zone .sbg-texte, .sbg-zone .sbg-drop, .sbg-zone .sbg-logo-note { margin: 0; }
.sbg-link { background: none; border: 0; padding: 0; text-decoration: underline; font-size: .82rem; color: var(--muted); justify-self: start; }
.sbg-link[hidden] { display: none; }
form.cart:has(#sbg) .woocommerce-variation-price { display: none !important; }
.sbg-zone[hidden], .sbg-tiers[hidden] { display: none; }
.sbg-zones.is-single { grid-template-columns: 1fr; }
