.abdv-consent {
  --abdv-consent-red: #d4141a;
  --abdv-consent-red-dark: #a90f15;
  --abdv-consent-red-soft: #fff5f5;
  --abdv-consent-ink: #302124;
  --abdv-consent-muted: #67575a;
  --abdv-consent-border: #edc9cb;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--abdv-consent-ink);
}

.abdv-consent [hidden] {
  display: none !important;
}

body.abdv-consent-modal-open {
  overflow: hidden;
}

.abdv-consent-banner {
  position: fixed;
  z-index: 2147483000;
  left: 18px;
  right: 18px;
  bottom: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: auto;
  padding: 18px 22px 20px;
  border: 1px solid var(--abdv-consent-border);
  border-top: 4px solid var(--abdv-consent-red);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(78, 10, 14, 0.22);
}

.abdv-consent-banner strong {
  display: block;
  color: var(--abdv-consent-red-dark);
  font-size: 18px;
  font-weight: 800;
}

.abdv-consent-banner p {
  margin: 6px 0 0;
  color: var(--abdv-consent-muted);
  font-size: 14px;
  line-height: 1.55;
}

.abdv-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.abdv-consent button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #d8a0a3;
  border-radius: 999px;
  background: #fff;
  color: var(--abdv-consent-red-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.abdv-consent button:hover {
  border-color: var(--abdv-consent-red);
  background: var(--abdv-consent-red-soft);
  color: var(--abdv-consent-red-dark);
}

.abdv-consent button:focus-visible {
  outline: 3px solid #71090e;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}

.abdv-consent .abdv-consent-primary {
  border-color: var(--abdv-consent-red);
  background: var(--abdv-consent-red);
  color: #fff;
  box-shadow: 0 7px 18px rgba(169, 15, 21, 0.2);
}

.abdv-consent .abdv-consent-primary:hover {
  border-color: var(--abdv-consent-red-dark);
  background: var(--abdv-consent-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.abdv-consent-panel {
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(48, 6, 9, 0.68);
  backdrop-filter: blur(2px);
}

.abdv-consent-panel-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px 24px 24px;
  border: 1px solid var(--abdv-consent-border);
  border-top: 4px solid var(--abdv-consent-red);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(48, 6, 9, 0.38);
}

.abdv-consent-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.abdv-consent-panel-head strong {
  color: var(--abdv-consent-red-dark);
  font-size: 21px;
  font-weight: 800;
}

.abdv-consent-panel-head p {
  margin: 5px 0 0;
  color: var(--abdv-consent-muted);
}

.abdv-consent-panel-head button {
  min-width: 42px;
  padding: 4px;
  border-radius: 50%;
  font-size: 25px;
}

.abdv-consent-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0;
  padding: 15px;
  border: 1px solid var(--abdv-consent-border);
  border-radius: 12px;
  background: #fffafa;
}

.abdv-consent-choice.is-required {
  background: var(--abdv-consent-red-soft);
}

.abdv-consent-choice span {
  display: grid;
  gap: 4px;
}

.abdv-consent-choice b {
  color: var(--abdv-consent-ink);
}

.abdv-consent-choice small {
  color: var(--abdv-consent-muted);
  font-size: 13px;
}

.abdv-consent-choice input {
  width: 22px;
  height: 22px;
  accent-color: var(--abdv-consent-red);
}

.abdv-consent-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.abdv-consent-policy {
  margin: 15px 0 0;
  font-size: 13px;
}

.abdv-consent-policy a {
  color: var(--abdv-consent-red-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.abdv-consent-manage {
  position: fixed;
  z-index: 2147482000;
  right: 70px;
  left: auto;
  bottom: max(15px, env(safe-area-inset-bottom));
  min-height: 40px !important;
  padding: 8px 13px !important;
  border: 1px solid var(--abdv-consent-red-dark) !important;
  border-radius: 999px !important;
  background: var(--abdv-consent-red) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(80, 8, 12, 0.25);
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.abdv-consent-manage:hover {
  border-color: var(--abdv-consent-red-dark) !important;
  background: var(--abdv-consent-red-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .abdv-consent-banner {
    left: 10px;
    right: 10px;
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 74px));
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px 16px 17px;
    border-radius: 12px;
  }

  .abdv-consent-banner strong {
    font-size: 17px;
  }

  .abdv-consent-actions {
    justify-content: stretch;
  }

  .abdv-consent-actions button {
    flex: 1 1 100%;
  }

  .abdv-consent-panel {
    padding: 10px;
  }

  .abdv-consent-panel-card {
    max-height: calc(100vh - 20px);
    padding: 16px 17px 18px;
    border-radius: 13px;
  }

  .abdv-consent-panel-actions button {
    flex: 1 1 100%;
  }

  .abdv-consent-manage {
    right: 64px;
    left: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 38px !important;
    padding: 7px 11px !important;
    font-size: 11.5px !important;
  }
}

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