
/* ==========================================================================
   Avo cookie banner: iubenda Cookie Solution overrides
   Same rules as the docs site's styles/cookie-banner.css; keep the two in step.
   iubenda's stylesheet loads after this one with !important and up to an id plus
   five classes, so every selector doubles the id to outrank it.
   Inter and FT Polar Semi Mono come from the Webflow site fonts; docs uses the fallbacks.
   ========================================================================== */

/* ---------- Banner: shared ---------- */
/* iubenda sets a system font on every element with an iub* class, so inherit isn't enough */
#iubenda-cs-banner#iubenda-cs-banner,
#iubenda-cs-banner#iubenda-cs-banner * { font-family: 'Inter', Helvetica, Arial, sans-serif !important; }

/* >= 640px: card, bottom-left */
/* iubenda clips this wrapper, which is exactly the card's width, so the shadow was cut off */
#iubenda-cs-banner#iubenda-cs-banner.iubenda-cs-default-floating {
  top: auto !important; right: auto !important; bottom: 24px !important; left: 24px !important;
  width: 480px !important; max-width: calc(100vw - 48px) !important;
  overflow: visible !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-container {
  background: #FFFFFF !important;
  border: 1px solid #E6E3E9 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08) !important;
  overflow: hidden !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-content {
  margin: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 20px !important; background: transparent !important;
  color: #65636D !important; font-size: 14px !important; line-height: 20px !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-rationale,
#iubenda-cs-banner#iubenda-cs-banner .iubenda-banner-content { margin: 0 !important; padding: 0 !important; }
#iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-title,
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-close-btn { display: none !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-banner-content p,
#iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-paragraph {
  margin: 0 !important; font-weight: 400 !important;
  font-size: 14px !important; line-height: 20px !important; color: #65636D !important;
}
#iubenda-cs-banner#iubenda-cs-banner a { font-size: inherit !important; color: #580FF5 !important; text-decoration: underline !important; text-underline-offset: 2px; }

/* One button row: Customize · Reject · Accept (iubenda's DOM order) */
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group {
  display: flex !important; flex-direction: row !important; align-items: center !important;
  gap: 8px !important; margin: 14px 0 0 !important; padding: 0 !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group > div { margin: 0 !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group-custom { flex: none !important; width: auto !important; order: 0 !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group-consent { display: flex !important; gap: 8px !important; flex: 1 1 auto !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group button {
  margin: 0 !important; border: 0 !important; box-shadow: none !important; opacity: 1 !important;
  height: 40px !important; border-radius: 999px !important; cursor: pointer;
  font-family: 'FT Polar Semi Mono', 'IBM Plex Mono', ui-monospace, monospace !important;
  font-weight: 500 !important; letter-spacing: .02em !important; line-height: 1 !important;
  transition: background-color 100ms cubic-bezier(.4, 0, .2, 1);
}
/* Reject and Accept: same size, same row, one click each */
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-reject-btn,
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-accept-btn {
  flex: 1 1 0 !important; min-width: 0 !important; padding: 0 16px !important;
  font-size: 15px !important; color: #FFFFFF !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-reject-btn { background: #211F26 !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-reject-btn:hover { background: #4D4951 !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-accept-btn { background: #D10B93 !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-accept-btn:hover { background: #A30873 !important; }
/* Customize: underlined text button (desktop) */
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-customize-btn {
  width: auto !important; padding: 0 8px !important;
  background: transparent !important; color: #211F26 !important; font-size: 14px !important;
  text-decoration: underline !important; text-underline-offset: 3px;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-customize-btn:hover { background: #ECEAEF !important; }
#iubenda-cs-banner#iubenda-cs-banner button:focus-visible,
#iubenda-cs-banner#iubenda-cs-banner a:focus-visible { outline: 2px solid #580FF5 !important; outline-offset: 2px !important; }

/* ---------- <= 639px: bottom sheet ---------- */
@media (max-width: 639px) {
  #iubenda-cs-banner#iubenda-cs-banner.iubenda-cs-default-floating {
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: auto !important; max-width: none !important;
  }
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-container {
    border-width: 1px 0 0 !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06) !important;
  }
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-content {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  }
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-banner-content p,
  #iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-paragraph { font-size: 13px !important; line-height: 18px !important; }
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group { margin-top: 10px !important; }
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-reject-btn,
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-accept-btn { padding: 0 10px !important; }
  /* Customize becomes a 40px icon button. The label is pushed out of view, not shrunk to
     font-size 0, which some screen readers skip, so it stays the accessible name. */
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group .iubenda-cs-customize-btn {
    width: 40px !important; padding: 0 !important; overflow: hidden !important;
    border: 1px solid #D5D3DB !important;
    background: #FFFFFF url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23211F26' stroke-width='1.75' stroke-linecap='round'><path d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12'/><circle cx='16' cy='6' r='2'/><circle cx='10' cy='12' r='2'/><circle cx='18' cy='18' r='2'/></svg>") center / 18px 18px no-repeat !important;
    color: transparent !important; white-space: nowrap !important; text-indent: 40px !important; text-decoration: none !important;
  }
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group .iubenda-cs-customize-btn:hover { background-color: #ECEAEF !important; }
  /* The sheet covers the chat launcher's corner: www's own button, or Intercom's default
     launcher on docs, and Intercom's "Need help?" card would sit on top of the sheet's
     buttons. Keyed on the visible state, so they come back after a choice even if iubenda
     keeps the banner element in the page. */
  body:has(#iubenda-cs-banner.iubenda-cs-visible) #intercom_action,
  body:has(#iubenda-cs-banner.iubenda-cs-visible) .intercom-lightweight-app-launcher,
  body:has(#iubenda-cs-banner.iubenda-cs-visible) iframe.intercom-launcher-frame,
  body:has(#iubenda-cs-banner.iubenda-cs-visible) iframe.intercom-launcher-discovery-frame { display: none !important; }
}
/* Forced colours (e.g. Windows High Contrast) drop the icon's contrast, so show the label */
@media (max-width: 639px) and (forced-colors: active) {
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group .iubenda-cs-customize-btn {
    width: auto !important; padding: 0 12px !important; text-indent: 0 !important;
    background-image: none !important; color: ButtonText !important;
  }
}
