/*
 * stubgroup-pages.css
 * ─────────────────────────────────────────────────────────────
 * Supplemental stylesheet for StubGroup new-design page templates.
 * Loaded after stubgroup-homepage.css on all SG custom templates.
 * Use this file for:
 *   • HubSpot form styling (dynamic HTML, can't use Tailwind classes)
 *   • Any CSS overrides that need !important vs HubSpot injected styles
 *   • Non-Tailwind utility patterns shared across new templates
 *
 * Design tokens (from :root in stubgroup-homepage.css):
 *   --color-brand-blue:       #138ae0
 *   --color-brand-blue-light: #e8f4fd
 *   --color-brand-yellow:     #fdc500
 *   --color-brand-yellow-dark:#e0af00
 *   --color-brand-dark:       #212838
 *   --color-brand-gray:       #4a4a68
 *   --color-gray-300:         oklch(87.2% .01 258.338) ≈ #d4d4de
 *   --radius-lg:              .5rem   (8px)
 *   --radius-xl:              .75rem  (12px)
 *   --radius-2xl:             1rem    (16px)
 * ─────────────────────────────────────────────────────────────
 */

/* =============================================================
   HUBSPOT FORM — LIGHT / CARD CONTEXT
   Scope: #sg-suspension-form  (Google Ads Suspended page)
          #sg-homepage-form    (Homepage free proposal form)
   ============================================================= */

/* ── Box-sizing reset ────────────────────────────────────────── */
#sg-suspension-form *,
#sg-suspension-form *::before,
#sg-suspension-form *::after,
#sg-homepage-form *,
#sg-homepage-form *::before,
#sg-homepage-form *::after {
  box-sizing: border-box;
}

/* ── Form container ──────────────────────────────────────────── */
#sg-suspension-form .hs-form,
#sg-homepage-form .hs-form {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  width: 100%;
}

/* ── Fieldsets (column groups) ───────────────────────────────── */
#sg-suspension-form .hs-form fieldset,
#sg-homepage-form .hs-form fieldset {
  max-width: 100% !important;
  border: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

#sg-suspension-form .hs-form fieldset.form-columns-2,
#sg-homepage-form .hs-form fieldset.form-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  #sg-suspension-form .hs-form fieldset.form-columns-2,
  #sg-homepage-form .hs-form fieldset.form-columns-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Individual field wrapper ────────────────────────────────── */
#sg-suspension-form .hs-form-field,
#sg-homepage-form .hs-form-field {
  margin-bottom: 0.875rem;
}

/* ── Labels ──────────────────────────────────────────────────── */
#sg-suspension-form .hs-form-field > label,
#sg-homepage-form .hs-form-field > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

/* Required asterisk */
#sg-suspension-form .hs-form-field > label .hs-form-required,
#sg-homepage-form .hs-form-field > label .hs-form-required {
  color: var(--color-brand-blue);
  margin-left: 2px;
}

/* ── Field description text ──────────────────────────────────── */
#sg-suspension-form .hs-field-desc,
#sg-homepage-form .hs-field-desc {
  font-size: 0.75rem;
  color: var(--color-brand-gray);
  margin-bottom: 0.375rem;
  line-height: 1.4;
}

/* ── Input/select/textarea wrapper ───────────────────────────── */
#sg-suspension-form .hs-form-field .input,
#sg-homepage-form .hs-form-field .input {
  position: relative;
}

/* ── Radio & checkbox — restore native before the general reset ─
   Must come BEFORE the general .hs-input rule so the general rule
   doesn't override these with !important.                         */
#sg-suspension-form .hs-form input[type="radio"],
#sg-suspension-form .hs-form input[type="checkbox"],
#sg-homepage-form .hs-form input[type="radio"],
#sg-homepage-form .hs-form input[type="checkbox"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  width: 1rem !important;
  height: 1rem !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: revert !important;
  transition: none !important;
  accent-color: #138ae0;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Base input styles (text, email, tel, number, url, select, textarea)
   !important is required to override HubSpot's injected CSS     */
#sg-suspension-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]),
#sg-homepage-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]) {
  width: 100% !important;
  padding: 0.625rem 0.875rem !important;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  color: var(--color-brand-dark) !important;
  background-color: #ffffff !important;
  border: 1.5px solid #d4d4de !important;
  border-radius: var(--radius-lg) !important;
  outline: none !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s !important;
  -webkit-appearance: none;
  appearance: none;
}

/* ── Placeholder ─────────────────────────────────────────────── */
#sg-suspension-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"])::placeholder,
#sg-homepage-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"])::placeholder {
  color: #9898a8 !important;
  opacity: 1;
}

/* ── Focus ───────────────────────────────────────────────────── */
#sg-suspension-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]):focus,
#sg-homepage-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]):focus {
  border-color: var(--color-brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(19, 138, 224, 0.12) !important;
  background-color: #ffffff !important;
}

/* ── Textarea ────────────────────────────────────────────────── */
#sg-suspension-form .hs-form textarea.hs-input,
#sg-homepage-form .hs-form textarea.hs-input {
  min-height: 110px !important;
  resize: vertical;
  line-height: 1.6 !important;
}

/* ── Select ──────────────────────────────────────────────────── */
#sg-suspension-form .hs-form select.hs-input,
#sg-homepage-form .hs-form select.hs-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a68' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.875rem center !important;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

/* ── Error / invalid state ───────────────────────────────────── */
#sg-suspension-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]).error,
#sg-suspension-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]).invalid,
#sg-homepage-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]).error,
#sg-homepage-form
  .hs-form
  .hs-input:not([type="radio"]):not([type="checkbox"]).invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

/* ── Error messages ──────────────────────────────────────────── */
#sg-suspension-form .hs-error-msgs,
#sg-homepage-form .hs-error-msgs {
  list-style: none;
  margin: 0.25rem 0 0 !important;
  padding: 0 !important;
}

#sg-suspension-form .hs-error-msgs li,
#sg-homepage-form .hs-error-msgs li {
  font-size: 0.75rem;
  color: #e53e3e;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* Error label inside list (HubSpot renders <label> inside <li>) */
#sg-suspension-form .hs-error-msgs li label,
#sg-homepage-form .hs-error-msgs li label {
  color: #e53e3e !important;
  font-weight: 400 !important;
  font-size: 0.75rem !important;
  margin-bottom: 0 !important;
  display: inline !important;
}

/* ── Checkbox / radio lists ──────────────────────────────────── */
#sg-suspension-form .hs-form ul.inputs-list,
#sg-homepage-form .hs-form ul.inputs-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

#sg-suspension-form .hs-form ul.inputs-list li,
#sg-homepage-form .hs-form ul.inputs-list li {
  margin-bottom: 0.375rem;
}

#sg-suspension-form .hs-form ul.inputs-list li label,
#sg-homepage-form .hs-form ul.inputs-list li label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 0.875rem;
  color: var(--color-brand-gray);
}

#sg-suspension-form .hs-form ul.inputs-list .hs-input,
#sg-homepage-form .hs-form ul.inputs-list .hs-input {
  width: auto !important;
  margin: 0;
  accent-color: var(--color-brand-blue);
}

/* ── Submit button container ─────────────────────────────────── */
#sg-suspension-form .hs-submit,
#sg-homepage-form .hs-submit {
  margin-top: 1.25rem;
}

/* ── Submit button
   HubSpot renders this as <input type="submit" class="hs-button primary">
   Must override HubSpot's default .hs-button styles with !important       */
#sg-suspension-form .hs-form input[type="submit"].hs-button,
#sg-suspension-form .hs-form input.hs-button.primary,
#sg-suspension-form .hs-form .hs-button.primary,
#sg-homepage-form .hs-form input[type="submit"].hs-button,
#sg-homepage-form .hs-form input.hs-button.primary,
#sg-homepage-form .hs-form .hs-button.primary {
  display: block !important;
  width: 100% !important;
  padding: 0.75rem 1.5rem !important;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: var(--color-brand-dark) !important;
  background-color: var(--color-brand-yellow) !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  cursor: pointer !important;
  transition:
    background-color 0.2s,
    box-shadow 0.15s !important;
  letter-spacing: 0.01em;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  line-height: 1.5 !important;
}

#sg-suspension-form .hs-form input[type="submit"].hs-button:hover,
#sg-suspension-form .hs-form input.hs-button.primary:hover,
#sg-suspension-form .hs-form .hs-button.primary:hover,
#sg-homepage-form .hs-form input[type="submit"].hs-button:hover,
#sg-homepage-form .hs-form input.hs-button.primary:hover,
#sg-homepage-form .hs-form .hs-button.primary:hover {
  background-color: var(--color-brand-yellow-dark) !important;
  box-shadow: 0 4px 12px rgba(253, 197, 0, 0.3) !important;
}

#sg-suspension-form .hs-form input[type="submit"].hs-button:focus-visible,
#sg-suspension-form .hs-form input.hs-button.primary:focus-visible,
#sg-homepage-form .hs-form input[type="submit"].hs-button:focus-visible,
#sg-homepage-form .hs-form input.hs-button.primary:focus-visible {
  outline: 2px solid var(--color-brand-blue) !important;
  outline-offset: 2px !important;
}

/* ── Success / thank-you message ─────────────────────────────── */
#sg-suspension-form .submitted-message,
#sg-homepage-form .submitted-message {
  padding: 1rem 1.25rem;
  background-color: var(--color-brand-blue-light);
  border: 1.5px solid var(--color-brand-blue);
  border-radius: var(--radius-lg);
  color: var(--color-brand-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
}

#sg-suspension-form .submitted-message p,
#sg-homepage-form .submitted-message p {
  margin: 0;
}

/* ── GDPR / legal consent block ──────────────────────────────── */
#sg-suspension-form .legal-consent-container,
#sg-homepage-form .legal-consent-container {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-brand-gray);
  line-height: 1.5;
}

#sg-suspension-form .legal-consent-container .hs-richtext p,
#sg-homepage-form .legal-consent-container .hs-richtext p {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
}

#sg-suspension-form .legal-consent-container .hs-form-field > label,
#sg-homepage-form .legal-consent-container .hs-form-field > label {
  font-weight: 400 !important;
  font-size: 0.75rem !important;
  color: var(--color-brand-gray) !important;
  margin-bottom: 0.5rem;
}

/* reCAPTCHA wrapper */
#sg-suspension-form .hs_recaptcha,
#sg-homepage-form .hs_recaptcha {
  margin-top: 0.75rem;
}

/* =============================================================
   HUBSPOT FORM — DARK / NEWSLETTER CONTEXT
   Scope: #sg-newsletter-form  (sg-cta-newsletter.php partial)
   These styles supplement / replace the inline <style> block in
   the partial so both forms are managed from one file.
   ============================================================= */

#sg-newsletter-form .hs-form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#sg-newsletter-form .hs-form fieldset {
  flex: 1;
  max-width: none !important;
  border: none;
  padding: 0;
  margin: 0;
}

#sg-newsletter-form .hs-form .hs-input {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: var(--radius-lg) !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 0.875rem !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif !important;
}

#sg-newsletter-form .hs-form .hs-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  opacity: 1;
}

#sg-newsletter-form .hs-form .hs-input:focus {
  border-color: var(--color-brand-blue) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

#sg-newsletter-form .hs-form .hs-submit {
  flex-shrink: 0;
}

#sg-newsletter-form .hs-form input[type="submit"].hs-button,
#sg-newsletter-form .hs-form .hs-button.primary {
  padding: 0.75rem 1.5rem !important;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif !important;
  background-color: var(--color-brand-yellow) !important;
  color: #1a1a2e !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

#sg-newsletter-form .hs-form input[type="submit"].hs-button:hover,
#sg-newsletter-form .hs-form .hs-button.primary:hover {
  background-color: var(--color-brand-yellow-dark) !important;
}

#sg-newsletter-form .hs-form label {
  display: none !important;
}

#sg-newsletter-form .hs-error-msgs {
  margin-top: 0.25rem !important;
  list-style: none;
  padding: 0 !important;
}

#sg-newsletter-form .hs-error-msgs li {
  color: #f87171;
  font-size: 0.75rem;
}

#sg-newsletter-form .submitted-message {
  color: #86efac;
  font-weight: 600;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (max-width: 640px) {
  #sg-newsletter-form .hs-form {
    flex-direction: column;
    align-items: stretch;
  }
  #sg-newsletter-form .hs-form fieldset,
  #sg-newsletter-form .hs-form .hs-form-field,
  #sg-newsletter-form .hs-form .input {
    width: 100% !important;
    max-width: 100% !important;
  }
  #sg-newsletter-form .hs-form .hs-submit {
    width: 100%;
  }
  #sg-newsletter-form .hs-form input[type="submit"].hs-button,
  #sg-newsletter-form .hs-form .hs-button.primary {
    width: 100% !important;
  }
}

/* Tablet: parent column is full-width (lg:grid-cols-2 hasn't kicked in
   yet) AND text-center applies (lg:text-left hasn't either). The form
   is a block element so text-center doesn't center it — without a
   max-width it stretches across the whole column, pinning the input
   to the left edge and the Subscribe button to the far right while
   the heading/paragraph above feel detached. Constraining the form
   to a sensible max-width and centering it via auto margins makes it
   sit visually under the centered heading. */
@media (min-width: 641px) and (max-width: 1023px) {
  #sg-newsletter-form .hs-form {
    justify-content: center;
  }
}

/* Tailwind responsive utilities not present in compiled build */
@media (min-width: 1024px) {
  .lg\:justify-between {
    justify-content: space-between;
  }
  .lg\:h-10 {
    height: calc(0.25rem * 10);
  }
}

/* Tailwind spacing utilities not present in compiled build */
.pt-5 {
  padding-top: 1.25rem;
}
.pb-5 {
  padding-bottom: 1.25rem;
}

/* =====================================================================
 * Legal pages (Terms of Service, Privacy Policy)
 * Scoped utilities not present in the compiled Tailwind build.
 * Applied via the body class .stubgroup-legal-page.
 * ===================================================================== */
.stubgroup-legal-page .max-w-4xl {
  max-width: 56rem;
}
.stubgroup-legal-page .space-y-6 > * + * {
  margin-top: 1.5rem;
}
.stubgroup-legal-page .border-l-4 {
  border-left-width: 4px;
}
.stubgroup-legal-page .list-disc {
  list-style-type: disc;
}
.stubgroup-legal-page .pl-6 {
  padding-left: 1.5rem;
}
.stubgroup-legal-page .not-italic {
  font-style: normal;
}
.stubgroup-legal-page a.hover\:underline:hover {
  text-decoration: underline;
}
@media (min-width: 640px) {
  .stubgroup-legal-page .sm\:p-8 {
    padding: 2rem;
  }
}

/* Tighter line-height + comfortable reading width for legal copy */
.stubgroup-legal-page .legal-content p,
.stubgroup-legal-page .legal-content li {
  line-height: 1.7;
}
.stubgroup-legal-page .legal-content h2 {
  scroll-margin-top: 96px;
}
.stubgroup-legal-page .legal-content h3 {
  scroll-margin-top: 96px;
}

/* =============================================================
   AVADA / FUSION COOKIE & PRIVACY BAR
   ─────────────────────────────────────────────────────────────
   Why this exists:
     stubgroup-functions.php dequeues every Avada / Fusion CSS
     handle on SG custom templates. The plugin still injects the
     privacy-bar markup on wp_footer, but with no styles applied
     it renders as raw text + unstyled links. This block restyles
     the banner to match the StubGroup brand without touching the
     plugin, the markup, or the dequeue logic.

   Scope:
     SG custom templates only (this file is enqueued only when
     _stubgroup_is_homepage_template() is true). Standard Avada
     pages still use the plugin's own styles.

   Markup target (from plugin output):
     .fusion-privacy-bar.fusion-privacy-bar-bottom
       └─ .fusion-privacy-bar-main
            ├─ <span>… <a href="…/privacy-policy/">…</a></span>
            ├─ a.fusion-privacy-bar-acceptance  ("Accept All")
            └─ a.fusion-privacy-bar-reject       ("Reject")
   ============================================================= */

.fusion-privacy-bar.fusion-privacy-bar-bottom {
  /* Hidden by default — this mirrors Avada's own ".fusion-privacy-bar{display:none}"
     rule, which we lose on SG templates because stubgroup_dequeue_avada_on_homepage
     strips Avada's CSS. avada-privacy.js REVEALS the bar (inline display:block) only
     when the consent cookie is missing, and never re-hides it on load when consent
     exists — so without this default the bar stays visible forever after accepting.
     The inline display:block the script sets overrides this; the flex layout lives on
     the inner .fusion-privacy-bar-main, so revealing as block doesn't break it. */
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Sit ABOVE the Weglot language switcher. The #weglot-stickbar in footer.php
     uses z-index:9999; raising the cookie bar to 10000 keeps the consent banner
     on top until the visitor accepts/rejects (per request). Note: while the bar
     is showing it overlaps the switcher's bottom-right corner. */
  z-index: 10000;
  background-color: var(--color-brand-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.25rem;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  max-width: 100vw;
}

.fusion-privacy-bar .fusion-privacy-bar-main {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.fusion-privacy-bar .fusion-privacy-bar-main > span {
  flex: 1 1 240px;
  min-width: 0;
  color: #d1d5db;
}

/* Privacy Policy inline link (StubGroup blue) */
.fusion-privacy-bar .fusion-privacy-bar-main a:not(.fusion-button) {
  color: var(--color-brand-blue);
  text-decoration: none;
  font-weight: 600;
}
.fusion-privacy-bar .fusion-privacy-bar-main a:not(.fusion-button):hover,
.fusion-privacy-bar .fusion-privacy-bar-main a:not(.fusion-button):focus {
  text-decoration: underline;
}

/* Shared button reset for Accept All + Reject — overrides any
   residual Avada .fusion-button defaults (gradients, text shadows,
   nested span backgrounds) in case the plugin re-enqueues a stray
   stylesheet in the future. */
.fusion-privacy-bar .fusion-privacy-bar-acceptance,
.fusion-privacy-bar .fusion-privacy-bar-reject {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* !important on the sizing props: Avada's ".fusion-body .fusion-button-default-size"
     sets padding (via --awb-padding-*), line-height and font-size (via --button_font_size)
     at the SAME specificity (0,2,0) as this rule but loads later, so it won the tie on
     non-template pages and made the buttons a different size than the homepage. */
  padding: 0.625rem 1.25rem !important;
  border-radius: 0.5rem !important;
  border: 2px solid transparent !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 700;
  /* Inter !important: on standard Avada pages .fusion-button sets its own
     font-family directly on the button, beating the bar's inherited Inter. */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  /* Kill Avada's ".fusion-privacy-bar-main .fusion-privacy-bar-acceptance/-reject
     { margin-inline-start: 15px }" (specificity 0,3,0, only present on non-template
     pages) — the inter-button spacing comes solely from the flex `gap` on
     .fusion-privacy-bar-main, exactly like the homepage. */
  margin: 0 !important;
  margin-inline-start: 0 !important;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* Primary CTA — yellow.
   !important is required on the color properties: on standard (non-template)
   Avada pages this file loads alongside Avada's own privacy-bar / .fusion-button
   CSS (which is only dequeued on SG templates), and Avada otherwise wins, turning
   the buttons blue/grey. !important pins the StubGroup brand colors everywhere. */
.fusion-privacy-bar .fusion-privacy-bar-acceptance,
.fusion-privacy-bar .fusion-privacy-bar-acceptance:visited {
  background-color: var(--color-brand-yellow) !important;
  color: var(--color-brand-dark) !important;
}
.fusion-privacy-bar .fusion-privacy-bar-acceptance:hover,
.fusion-privacy-bar .fusion-privacy-bar-acceptance:focus {
  background-color: var(--color-brand-yellow-dark) !important;
  color: var(--color-brand-dark) !important;
}

/* Secondary CTA — outline on dark */
.fusion-privacy-bar .fusion-privacy-bar-reject,
.fusion-privacy-bar .fusion-privacy-bar-reject:visited {
  background-color: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 600;
}
.fusion-privacy-bar .fusion-privacy-bar-reject:hover,
.fusion-privacy-bar .fusion-privacy-bar-reject:focus {
  border-color: #fff !important;
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Mobile: stack the text, let buttons share the row */
@media (max-width: 640px) {
  .fusion-privacy-bar.fusion-privacy-bar-bottom {
    padding: 0.875rem 1rem;
    font-size: 13px;
  }
  .fusion-privacy-bar .fusion-privacy-bar-main {
    gap: 0.625rem;
  }
  .fusion-privacy-bar .fusion-privacy-bar-main > span {
    flex-basis: 100%;
  }
  .fusion-privacy-bar .fusion-privacy-bar-acceptance,
  .fusion-privacy-bar .fusion-privacy-bar-reject {
    flex: 1 1 auto;
    padding: 0.625rem 1rem;
  }
}
