/* Front-end consent UI: fixed to the viewport and detached from theme layout. */
#tia-consent-root.tia-consent-root {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 24px !important;
  border: 0 !important;
  background: transparent;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
#tia-consent-root *, #tia-consent-root *::before, #tia-consent-root *::after { box-sizing: border-box; }
#tia-consent-root.tia-consent-root--open::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: rgba(8, 17, 32, var(--tia-overlay, .55)); pointer-events: auto;
}
#tia-consent-root .tia-consent-panel {
  position: relative !important; display: block !important;
  width: min(var(--tia-width, 420px), calc(100vw - 32px)) !important;
  max-width: min(var(--tia-width, 420px), calc(100vw - 32px)) !important;
  max-height: calc(100vh - 48px); overflow: auto;
  margin: auto !important; padding: 28px !important;
  background: var(--tia-panel, #fff) !important; color: var(--tia-text, #172033) !important;
  border: 1px solid rgba(20, 35, 60, .12) !important;
  border-radius: var(--tia-radius, 16px) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24) !important;
  text-align: left !important; float: none !important; flex: none !important;
  pointer-events: auto; font-size: 16px;
}
#tia-consent-root .tia-consent-panel h2 { margin: 0 0 12px !important; padding: 0 !important; color: var(--tia-text, #172033) !important; font-size: 24px !important; line-height: 1.25 !important; font-weight: 700 !important; }
#tia-consent-root .tia-consent-panel h3 { margin: 18px 0 8px !important; color: var(--tia-text, #172033) !important; }
#tia-consent-root .tia-consent-panel p { margin: 0 0 16px !important; color: var(--tia-text, #172033) !important; font-size: 15px !important; line-height: 1.55 !important; }
#tia-consent-root .tia-consent-panel a { color: var(--tia-accent, #1769ff) !important; text-decoration: underline; }
#tia-consent-root .tia-consent-actions { display: flex !important; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
#tia-consent-root .tia-consent-panel button { appearance: none !important; cursor: pointer; min-height: 42px; padding: 10px 15px !important; margin: 0 !important; border-radius: 8px !important; border: 1px solid #d4dbea !important; background: #fff !important; color: #1a2a42 !important; font: inherit !important; font-size: 14px !important; line-height: 1.3 !important; text-transform: none !important; text-shadow: none !important; box-shadow: none !important; }
#tia-consent-root .tia-consent-panel .tia-consent-accept { background: var(--tia-accent, #1769ff) !important; border-color: var(--tia-accent, #1769ff) !important; color: #fff !important; font-weight: 600 !important; }
#tia-consent-root .tia-consent-details { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e6eaf1; }
#tia-consent-root .tia-consent-details label { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: var(--tia-text, #172033); }
#tia-consent-root .tia-consent-manage { position: fixed !important; right: 16px !important; bottom: 16px !important; z-index: 1; pointer-events: auto; background: var(--tia-panel, #fff) !important; color: var(--tia-text, #172033) !important; box-shadow: 0 4px 20px rgba(0,0,0,.16) !important; }
#tia-consent-root.tia-consent-root--banner { align-items: flex-end; padding: 18px !important; }
#tia-consent-root.tia-consent-root--banner::before { display: none; }
#tia-consent-root.tia-consent-root--banner .tia-consent-panel { width: min(900px, calc(100vw - 36px)) !important; max-width: 900px !important; padding: 18px 22px !important; }
#tia-consent-root.tia-consent-root--banner .tia-consent-panel h2 { font-size: 19px !important; }
#tia-consent-root.tia-consent-root--banner .tia-consent-panel p { margin-bottom: 8px !important; }
#tia-consent-root.tia-consent-root--side { justify-content: flex-end; padding: 0 !important; }
#tia-consent-root.tia-consent-root--side .tia-consent-panel { height: 100vh; max-height: 100vh; width: min(var(--tia-width, 420px), 100vw) !important; max-width: min(var(--tia-width, 420px), 100vw) !important; border-radius: 0 !important; }
#tia-consent-root.tia-consent-position--bottom-left:not(.tia-consent-root--banner) { align-items: flex-end; justify-content: flex-start; }
#tia-consent-root.tia-consent-position--bottom-right:not(.tia-consent-root--banner) { align-items: flex-end; justify-content: flex-end; }
#tia-consent-root.tia-consent-root--manage { inset: auto !important; width: auto !important; height: auto !important; padding: 0 !important; }
@media (max-width: 540px) {
  #tia-consent-root.tia-consent-root { padding: 12px !important; }
  #tia-consent-root .tia-consent-panel { padding: 22px !important; }
  #tia-consent-root .tia-consent-actions { flex-direction: column; }
  #tia-consent-root .tia-consent-panel button { width: 100%; }
}
