#aacc-bar,
#aacc-modal,
#aacc-details,
#aacc-overlay,
#aacc-widget,
button#aacc-toggle {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#aacc-modal,
#aacc-details {
  visibility: hidden;
}

#aacc-modal.aacc-modal--visible,
#aacc-details.aacc-details--visible {
  visibility: visible;
}

#aacc-bar {
  background: #111111;
  color: #ffffff;
}

#aacc-bar.aacc-bar--visible {
  display: block;
  visibility: visible;
}

#aacc-modal .aacc-modal__dialog {
  width: 100%;
  max-width: min(1120px, calc(100vw - 32px));
  min-height: min(620px, calc(100vh - 48px));
  max-height: min(94vh, 920px);
  background: #ffffff;
  color: #111827;
}

#aacc-modal .aacc-modal__header,
#aacc-modal .aacc-modal__footer {
  background: #ffffff;
}

#aacc-modal #aacc-modal-title,
#aacc-modal .aacc-category__title {
  color: #111827;
}

#aacc-modal #aacc-modal-intro,
#aacc-modal .aacc-category__description,
#aacc-modal .aacc-category__state {
  color: #4b5563;
}

#aacc-modal .aacc-btn--primary,
#aacc-bar .aacc-btn--primary {
  background: #00b894;
  border-color: #00b894;
  color: #ffffff;
}

#aacc-modal .aacc-btn--primary:hover,
#aacc-bar .aacc-btn--primary:hover {
  background: #00b894;
  border-color: #00b894;
  opacity: 0.9;
}

#aacc-modal .aacc-btn--secondary,
#aacc-bar .aacc-btn--secondary {
  background: transparent;
  border-color: #555555;
  color: #ffffff;
}

#aacc-modal .aacc-btn--secondary {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

#aacc-modal .aacc-btn--outline,
#aacc-bar .aacc-btn--outline,
#aacc-details .aacc-btn--outline {
  background: transparent;
  border-color: #00b894;
  color: #00b894;
}

#aacc-bar .aacc-link-button,
#aacc-bar .aacc-link,
#aacc-details .aacc-svc-provider__table a,
#aacc-details .aacc-svc-always-on,
#aacc-details .aacc-svc-info-btn {
  color: #00b894;
}

#aacc-modal .aacc-modal__header > *,
#aacc-modal .aacc-modal__body > *,
#aacc-details .aacc-details__topbar > * {
  min-width: 0;
}

#aacc-modal .aacc-modal__footer .aacc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  flex: 1 1 220px;
}

#aacc-modal .aacc-ccpa-modal-row {
  margin-top: 2px;
  padding-top: 14px;
}

#aacc-modal .aacc-category {
  display: block;
  border-radius: 16px;
  padding: 16px 18px 14px;
  margin-top: 14px;
  background: #f9fafb;
}

#aacc-modal .aacc-category:first-of-type {
  margin-top: 0;
}

#aacc-modal .aacc-category__header {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}

#aacc-modal .aacc-category__title {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

#aacc-modal .aacc-category__state {
  align-self: center;
  font-weight: 700;
  line-height: 1.2;
  color: #4b5563;
}

#aacc-modal .aacc-category__description {
  margin: 10px 0 0;
  color: #4b5563;
}

@media (min-width: 860px) {
  #aacc-modal {
    padding: 24px;
  }

  #aacc-modal .aacc-modal__dialog {
    width: min(1120px, calc(100vw - 48px));
  }
}

@media (max-width: 640px) {
  #aacc-bar {
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: min(82dvh, 640px);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #aacc-bar .aacc-bar__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: none;
    width: auto;
    min-width: 0;
    max-inline-size: 100%;
    box-sizing: border-box;
  }

  #aacc-bar .aacc-bar__text,
  #aacc-bar .aacc-bar__links {
    width: 100%;
    min-width: 0;
    max-inline-size: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #aacc-bar .aacc-bar__text *,
  #aacc-bar .aacc-link,
  #aacc-bar .aacc-link-button,
  #aacc-bar .aacc-ccpa-link {
    max-inline-size: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #aacc-bar .aacc-bar__buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  #aacc-bar .aacc-bar__buttons .aacc-btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 38px;
    white-space: normal;
  }

  #aacc-modal .aacc-modal__dialog {
    max-width: calc(100vw - 20px);
    min-height: min(76vh, 720px);
  }

  #aacc-modal .aacc-modal__footer [data-aacc-action="reject-all"],
  #aacc-modal .aacc-modal__footer [data-aacc-action="save-selection"] {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

#aacc-modal .aacc-category__switch {
  justify-content: center;
  width: auto;
  max-width: none;
  align-self: center;
}

#aacc-modal .aacc-category__switch .aacc-switch__slider {
  flex: 0 0 40px;
}

#aacc-modal label.aacc-switch:not(.aacc-category__switch) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: none;
}

#aacc-modal label.aacc-switch:not(.aacc-category__switch) .aacc-switch__label {
  order: 1;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
}

#aacc-modal label.aacc-switch:not(.aacc-category__switch) .aacc-switch__slider {
  order: 2;
  flex: 0 0 40px;
  margin-left: auto;
}

#aacc-details .aacc-svc-overview {
  margin-bottom: 18px;
}

#aacc-details .aacc-svc-overview__intro,
#aacc-details .aacc-svc-overview__hint {
  margin: 0 0 12px;
  line-height: 1.55;
}

#aacc-details .aacc-svc-overview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

#aacc-details .aacc-svc-overview__meta-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 600;
}

#aacc-details .aacc-svc-category__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
  background: #ffffff;
  flex-wrap: wrap;
}

#aacc-details .aacc-svc-category__header {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 280px;
  min-width: 0;
}

#aacc-details .aacc-svc-category__state {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #00b894;
  white-space: nowrap;
}

#aacc-details .aacc-svc-category__switch {
  flex: 0 0 auto;
}

#aacc-details .aacc-svc-service__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#aacc-details .aacc-svc-service__name {
  flex: 1 1 240px;
  min-width: 0;
}

#aacc-details .aacc-svc-info-btn {
  flex: 0 0 auto;
  max-width: 100%;
}

#aacc-details .aacc-svc-arrow {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

#aacc-details .aacc-svc-info-btn[aria-expanded="true"] .aacc-svc-arrow {
  transform: rotate(180deg);
}

#aacc-details .aacc-details__group-body {
  display: none;
}

#aacc-details .aacc-details__group.aacc-details__group--open > .aacc-details__group-body,
#aacc-details .aacc-svc-category--open > .aacc-svc-category__body {
  display: block;
}

#aacc-details .aacc-details__tab-panel[hidden],
#aacc-details .aacc-svc-body--closed {
  display: none;
}

#aacc-details .aacc-details__filter-item[hidden] {
  display: none;
}

.aacc-preview-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f0b849;
  color: #333333;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 9999;
  pointer-events: none;
  letter-spacing: 0.5px;
}

#aacc-bar.aacc-bar--previewable {
  position: relative;
}

#aacc-bar.aacc-bar--force-visible {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#aacc-age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#aacc-age-gate .aacc-age-gate__box {
  background: #ffffff;
  border-radius: 8px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  color: #111111;
}

#aacc-age-gate .aacc-age-gate__title {
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 12px;
}

#aacc-age-gate .aacc-age-gate__body {
  margin: 0 0 22px;
  color: #555555;
  font-size: 0.95em;
}

#aacc-age-gate .aacc-age-gate__body.aacc-age-gate__body--denied {
  color: #c0392b;
  font-weight: 700;
}

#aacc-age-gate .aacc-age-gate__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

#aacc-age-gate .aacc-age-gate__button {
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 1em;
  cursor: pointer;
}

#aacc-age-gate .aacc-age-gate__button--confirm {
  background: #0073aa;
  color: #ffffff;
}

#aacc-age-gate .aacc-age-gate__button--deny {
  background: #cccccc;
  color: #333333;
}

#aacc-age-gate .aacc-age-gate__button[hidden] {
  display: none;
}

#aacc-widget .aacc-widget__label {
  line-height: 1;
}

#aacc-widget .aacc-widget__icon {
  flex-shrink: 0;
}

.aacc-ad-bait {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#aacc-sys-notice {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #333333;
  color: #ffffff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  z-index: 999997;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#aacc-test-badge.aacc-test-badge {
  position: fixed;
  bottom: 8px;
  left: 8px;
  z-index: 2147483647;
  background: #d63638;
  color: #ffffff;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
