/* W02: the server-rendered gallery must also work without extra scripts. */
.woocommerce.single-product .woocommerce-product-gallery { opacity:1!important; }
/* W03: legacy Woo clearfix boxes otherwise become real grid children. */
.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after { content:none!important; display:none!important; }
.woocommerce-checkout #customer_details > .col-1,
.woocommerce-checkout #customer_details > .col-2 { min-width:0; }
.b3d-start-status,.b3d-service-note,.b3d-choice-summary,.b3d-account-purpose { margin:16px 0; padding:14px 18px; border:1px solid #cbd6e4; border-radius:8px; background:#f4f7fb; color:#18334f; line-height:1.65; }
.b3d-start-status[hidden] { display:none; }
.b3d-start-status.is-error { border-color:#a82028; color:#861621; background:#fff4f4; }
.b3d-gallery-actions { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0; }
.b3d-gallery-actions a { text-decoration:underline; text-underline-offset:3px; }
.b3d-form-group { margin:18px 0; border:1px solid #cbd6e4; padding:16px; border-radius:8px; min-width:0; width:100%; flex:0 0 100%; max-width:100%; box-sizing:border-box; }
.b3d-form-group > legend,.b3d-form-group > summary { font-weight:600; color:#18334f; }
.b3d-form-group > summary { min-height:44px; cursor:pointer; }
.b3d-form-group > .ppom-field-wrapper { float:none!important; width:100%; max-width:100%; }
.b3d-empty-upload { padding:22px; border:1px dashed #70839b; background:#f4f7fb; border-radius:8px; }
.b3d-motif-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:12px; margin:12px 0; }
.b3d-motif-option { min-height:44px; border:1px solid #8494aa; border-radius:8px; background:#fff; color:#18334f; padding:10px; }
.b3d-motif-option[aria-pressed="true"] { border:3px solid #18334f; padding:8px; }
.b3d-motif-option img { width:100%; height:100px; object-fit:contain; }
.b3d-motif-option:focus-visible,.b3d-gallery-actions a:focus-visible { outline:3px solid #18334f; outline-offset:4px; }
.b3d-payment-area { margin:14px 0; }
.b3d-payment-card[hidden] { display:none!important; }
.b3d-photo-consent fieldset { margin:16px 0; padding:16px; border:1px solid #cbd6e4; min-width:0; }
.b3d-photo-option { display:flex!important; align-items:flex-start; gap:12px; padding:10px 0; line-height:1.6; }
.b3d-photo-option input { flex:0 0 22px; width:22px!important; height:22px; margin-top:3px; }
@media(max-width:600px) {
  .b3d-form-group { padding:12px; }
  .b3d-service-note,.b3d-account-purpose { padding:12px; }
  .b3d-motif-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
