#av-consent-root {
  color-scheme: dark;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.55;
  color: #edf5fc;
}

#av-consent-root *,
#av-consent-root *::before,
#av-consent-root *::after {
  box-sizing: border-box;
}

#av-consent-root [hidden] {
  display: none !important;
}

#av-consent-root h2,
#av-consent-root p {
  margin: 0;
}

#av-consent-root h2 {
  color: #f5f9ff;
  font-family: var(--font-display, Arial, sans-serif);
  font-size: 19px !important;
  font-weight: 600;
  line-height: 1.3 !important;
  letter-spacing: -0.025em !important;
  overflow-wrap: anywhere;
}

#av-consent-root a {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  color: #6edbfa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#av-consent-root button,
#av-consent-root input {
  font: inherit;
}

#av-consent-root button,
#av-consent-root a,
#av-consent-root input {
  -webkit-tap-highlight-color: transparent;
}

#av-consent-root :focus-visible {
  outline: 3px solid #8ce8ff;
  outline-offset: 4px;
}

.av-consent-banner {
  position: fixed;
  z-index: 2147483000;
  inset: auto 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 28px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 22px 24px;
  border: 1px solid #294657;
  border-radius: 12px;
  background: #0a121d;
  box-shadow: 0 12px 60px #0009;
}

.av-consent-banner-text {
  min-width: 0;
}

#av-consent-root .av-consent-banner-text p {
  margin-top: 8px;
  max-width: 760px;
  color: #b9c7d6;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.av-consent-banner-actions,
.av-consent-dialog-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

#av-consent-root .av-consent-button {
  display: inline-flex;
  min-height: 46px;
  justify-content: center;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 15px;
  border: 1px solid #49c9ec;
  border-radius: 5px;
  background: #102b3a;
  color: #e9faff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

#av-consent-root .av-consent-button:hover {
  background: #184358;
  border-color: #a1edff;
}

#av-consent-root button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.av-consent-dialog {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #294657;
  border-radius: 12px;
  background: #0a121d;
  color: #edf5fc;
  box-shadow: 0 24px 80px #000a;
}

.av-consent-dialog::backdrop {
  background: #02050acc;
  backdrop-filter: blur(4px);
}

.av-consent-dialog-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px 24px;
  border-bottom: 1px solid #23313f;
}

#av-consent-root .av-consent-close {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 1px solid #496071;
  border-radius: 5px;
  background: transparent;
  color: #edf5fc;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.av-consent-dialog-body {
  padding: 20px 24px;
}

#av-consent-root .av-consent-dialog-body > p {
  color: #bac7d5;
  overflow-wrap: anywhere;
}

.av-consent-option {
  padding: 16px 0;
  border-bottom: 1px solid #23313f;
}

.av-consent-option-heading {
  display: flex;
  min-height: 44px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.av-consent-option-heading label {
  display: flex;
  flex: 1;
  min-height: 44px;
  align-items: center;
  color: #edf5fc;
  font-weight: 650;
  cursor: pointer;
}

.av-consent-option-heading input {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  accent-color: #51d4f6;
  cursor: pointer;
}

.av-consent-option-heading input:disabled {
  opacity: 0.55;
  cursor: default;
}

#av-consent-root .av-consent-option > p {
  padding-right: 60px;
  color: #a8b8ca;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#av-consent-root .av-consent-dialog-body > .av-consent-note {
  margin-top: 18px;
  font-size: 12px;
}

.av-consent-dialog-actions {
  padding: 18px 24px 24px;
}

#av-consent-root .av-consent-error {
  grid-column: 1 / -1;
  color: #ffc5bc;
  font-size: 13px;
}

#av-consent-root .av-consent-dialog-body > .av-consent-error {
  margin-top: 16px;
  color: #ffc5bc;
}

.footer-bottom nav button[data-consent-settings] {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #738198;
  font: inherit;
  font-size: var(--supporting-text-size, 14px);
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-bottom nav button[data-consent-settings]:hover {
  color: var(--cyan, #6edbfa);
}

.footer-bottom nav button[data-consent-settings]:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--cyan, #6edbfa);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .av-consent-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: min(800px, calc(100% - 32px));
    inset: auto 16px 16px;
  }

  .av-consent-banner-actions {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .av-consent-banner {
    inset: auto 12px max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #av-consent-root h2 {
    font-size: 18px !important;
  }

  .av-consent-banner-actions,
  .av-consent-dialog-actions {
    flex-direction: column;
    gap: 8px;
  }

  #av-consent-root .av-consent-button {
    flex-basis: auto;
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }

  .av-consent-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .av-consent-dialog-heading {
    padding: 12px 14px 12px 18px;
  }

  .av-consent-dialog-body {
    padding: 16px 18px;
  }

  .av-consent-dialog-actions {
    padding: 0 18px 18px;
  }

  #av-consent-root .av-consent-option > p {
    padding-right: 0;
  }

  .footer-bottom nav button[data-consent-settings] {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #av-consent-root .av-consent-button {
    transition: none;
  }
}
