/* SocialBost SMM : boîte de commande sur la fiche produit. Couleurs reprises du thème si présentes. */
.sb-order { --sb-ink: var(--ink, #10231c); --sb-line: var(--line, #e2dccf); --sb-brand: var(--brand, #0f5c45); --sb-accent: var(--accent, #ff5a1f); margin-bottom: 18px; }
.sb-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sb-tier { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1.5px solid var(--sb-line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--sb-ink); transition: border-color .15s, transform .15s, background .15s; }
.sb-tier:hover { border-color: var(--sb-ink); transform: translateY(-2px); }
.sb-tier.is-active { border-color: var(--sb-brand); background: var(--sb-brand); color: #fff; }
.sb-tier__qty { font-size: 22px; font-weight: 800; line-height: 1; }
.sb-tier__price { font-size: 14px; opacity: .85; }
.sb-tier.is-active .sb-tier__price .amount { color: #fff; }

.sb-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.sb-field { margin: 0; }
.sb-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.sb-field input { width: 100%; border: 1.5px solid var(--sb-line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; }
.sb-field input:focus { outline: none; border-color: var(--sb-brand); }
.sb-check { position: relative; display: block; }
.sb-check input { padding-inline-end: 42px; }
.sb-check__state { position: absolute; inset-inline-end: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; }
.sb-check__state.is-loading { border: 2.5px solid var(--sb-line); border-top-color: var(--sb-brand); animation: sb-spin .7s linear infinite; }
.sb-check__state.is-ok { background: #138a5b; }
.sb-check__state.is-ok::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.sb-check__state.is-not_found, .sb-check__state.is-invalid { background: #d93025; }
.sb-check__state.is-not_found::after, .sb-check__state.is-invalid::after { content: "!"; color: #fff; font-weight: 800; font-size: 13px; position: absolute; inset: 0; display: grid; place-items: center; }
.sb-check__state.is-unknown { background: #e8a317; }
.sb-check__state.is-unknown::after { content: "?"; color: #fff; font-weight: 800; font-size: 13px; position: absolute; inset: 0; display: grid; place-items: center; }
@keyframes sb-spin { to { transform: rotate(360deg); } }

.sb-account { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: #f3f4f1; }
.sb-account img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.sb-account strong { display: block; font-size: 15px; }
.sb-account.is-ok { background: #e3f4ec; color: #0b5e3d; }
.sb-account.is-not_found, .sb-account.is-invalid { background: #fde7e5; color: #a1251b; }
.sb-account.is-unknown { background: #fff4dc; color: #7a5300; }
.sb-account.is-shake { animation: sb-shake .4s; }
@keyframes sb-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.sb-total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--sb-line); font-size: 16px; }
.sb-total__value { font-size: 28px; font-weight: 800; color: var(--sb-accent); }

.single-product form.cart .sb-buy-now { margin-inline-start: 10px; }
.single-product form.cart:has(.sb-order) { display: block; }
.single-product form.cart:has(.sb-order) button { margin-top: 6px; }

@media (max-width: 600px) {
  .sb-fields { grid-template-columns: 1fr; }
  .single-product form.cart .sb-buy-now { margin-inline-start: 0; }
  .single-product form.cart:has(.sb-order) button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sb-order * { animation: none !important; transition: none !important; } }

/* Récapitulatif + formulaire */
.sb-account[hidden] { display: none; }
.sb-order__body { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 26px; align-items: start; }
.sb-order__main .sb-field + .sb-field, .sb-order__main .sb-account + .sb-field { margin-top: 18px; }
.sb-steps-mini { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; color: #5b6785; font-size: 14px; }
.sb-steps-mini li { display: flex; align-items: center; gap: 10px; }
.sb-steps-mini span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #eef1f8; color: var(--sb-ink); flex: none; }
.sb-order__side { position: sticky; top: 100px; background: #fff; border: 1px solid var(--sb-line); border-radius: 20px; padding: 22px; box-shadow: 0 24px 50px -30px rgba(11, 23, 54, .35); }
.sb-side__title { margin: 0 0 14px; font-weight: 800; font-size: 18px; }
.sb-side__lines { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.sb-side__lines div { display: flex; justify-content: space-between; gap: 12px; }
.sb-side__lines dt { color: #5b6785; }
.sb-side__lines dd { margin: 0; font-weight: 600; text-align: end; }
.sb-order__side .sb-total { margin: 16px 0 18px; }
.sb-order__side button.button { display: flex; width: 100%; justify-content: center; margin: 0 0 10px !important; padding: 1em !important; font-size: 16px !important; }
.sb-trust { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--sb-line); display: grid; gap: 8px; font-size: 13px; color: #5b6785; }
.sb-trust i { width: 18px; color: var(--sb-brand); margin-inline-end: 8px; }
/* Le bouton natif WooCommerce est remplacé par ceux du récapitulatif */
form.cart .sb-order ~ .single_add_to_cart_button { display: none !important; }
@media (max-width: 900px) {
  .sb-order__body { grid-template-columns: 1fr; }
  .sb-order__side { position: static; }
}

/* Jeux : cartes montants (radio) */
.sb-tiers--game .sb-tier { cursor: pointer; }
.sb-tiers--game .sb-tier:focus-within { outline: 3px solid var(--sb-brand); }
.sb-trust--game { border-top: 0; padding-top: 0; margin-top: 18px; }

