/* ==========================================================================
   LOT Grafix SubscriBurst - Front CSS
   Loaded only on the pages that show it. Minimal on purpose (no fonts,
   no resets): only what it needs to work, so the theme is never changed.
   ========================================================================== */

/* Fields: 1 to 3 per row, by the width of the space the form has (a footer column gets 1, a wide page up to 3).
   Only the fields box: the opt-in, privacy note, CAPTCHA, button and message below keep their normal flow.
   A textarea always takes the whole row. */
.subscriburst-fields{display:grid;gap:24px 16px;margin:0.25em 0;grid-template-columns:repeat(auto-fit,minmax(max(180px,calc((100% - 32px) / 3)),1fr))}
.subscriburst-fields > .subscriburst-field{margin:0;padding:0} /* the theme's <p> margins never shift a field (the first one was higher) */
.subscriburst-fields > .subscriburst-field:has(textarea){grid-column:1 / -1}
.subscriburst-message:empty{display:none}

.subscriburst-field label{display:block}
.subscriburst-field :is(input,textarea){display:block;box-sizing:border-box;width:100%;max-width:100%}
.subscriburst-optin label{display:flex;align-items:center;gap:8px}
.subscriburst-optin input{display:inline-block;width:auto;margin:0}
.subscriburst-privacy small{display:block;opacity:.8}
.subscriburst-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.subscriburst-done .subscriburst-message{color:#16883a} /* success: readable on white and on black (contrast 4.5+) */
.subscriburst-busy::after{content:"";display:inline-block;width:1em;height:1em;margin-left:.6em;vertical-align:middle;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;opacity:.7;animation:subscriburst-spin .8s linear infinite} /* spinning wheel next to the button while it sends */
@keyframes subscriburst-spin{to{transform:rotate(360deg)}}

/* Widget preview (admin): inside its own Shadow DOM */
:host{display:block}
.sb-pv-body{box-sizing:border-box;max-width:100%;background:#fff;padding:24px;overflow:auto}
