:root {
  --abcm-red: #e02931;
  --abcm-red-dark: #b91f26;
  --abcm-ink: #101113;
  --abcm-panel: #17191d;
  --abcm-panel-2: #202329;
  --abcm-text: #f7f7f8;
  --abcm-muted: #c6c9cf;
  --abcm-line: rgba(255, 255, 255, 0.17);
  --abcm-radius: 18px;
  --abcm-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

.abcm-consent[hidden],
.abcm-consent__summary[hidden],
.abcm-consent__settings[hidden] {
  display: none !important;
}

.abcm-consent {
  position: fixed;
  z-index: 2147483000;
  right: clamp(12px, 3vw, 36px);
  bottom: clamp(12px, 3vw, 30px);
  left: clamp(12px, 3vw, 36px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.abcm-consent__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: clamp(22px, 3vw, 36px);
  color: var(--abcm-text);
  background:
    radial-gradient(circle at 100% 0, rgba(224, 41, 49, 0.18), transparent 34%),
    linear-gradient(145deg, #1d2025 0%, #111316 100%);
  border: 1px solid var(--abcm-line);
  border-radius: var(--abcm-radius);
  box-shadow: var(--abcm-shadow);
  pointer-events: auto;
}

.abcm-consent__panel:focus-visible {
  outline: 3px solid rgba(224, 41, 49, 0.52);
  outline-offset: 4px;
}

.abcm-consent__panel h2 {
  max-width: 22ch;
  margin: 0 44px 12px 0;
  color: var(--abcm-text);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.abcm-consent__panel p {
  margin: 0;
  color: var(--abcm-muted);
  line-height: 1.6;
}

.abcm-consent__summary > p:not(.abcm-consent__eyebrow) {
  max-width: 72ch;
}

.abcm-consent__eyebrow {
  margin-bottom: 8px !important;
  color: #ff6269 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.abcm-consent__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--abcm-text);
  background: transparent;
  border: 1px solid var(--abcm-line);
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.abcm-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.abcm-button,
.abcm-media__button {
  min-height: 48px;
  padding: 12px 16px;
  color: var(--abcm-text);
  background: #2a2e34;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.abcm-button:hover,
.abcm-button:focus-visible,
.abcm-media__button:hover,
.abcm-media__button:focus-visible {
  background: var(--abcm-red);
  border-color: var(--abcm-red);
  outline: 3px solid rgba(224, 41, 49, 0.28);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.abcm-consent__privacy {
  display: inline-block;
  margin-top: 16px;
  color: var(--abcm-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.abcm-consent__settings > p {
  max-width: 72ch;
  margin-bottom: 16px;
}

.abcm-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 16px;
  color: var(--abcm-text);
  background: var(--abcm-panel-2);
  border: 1px solid var(--abcm-line);
  border-radius: 13px;
}

.abcm-choice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--abcm-text);
}

.abcm-choice p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.abcm-choice__fixed {
  color: #ff7b81;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.abcm-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.abcm-switch {
  position: relative;
  width: 52px;
  height: 30px;
  background: #4a4f57;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.abcm-switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  content: "";
  transition: transform 160ms ease;
}

.abcm-choice input:checked + .abcm-switch {
  background: var(--abcm-red);
}

.abcm-choice input:checked + .abcm-switch::after {
  transform: translateX(22px);
}

.abcm-choice input:focus-visible + .abcm-switch {
  outline: 3px solid rgba(224, 41, 49, 0.35);
  outline-offset: 3px;
}

.abcm-media {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  color: var(--abcm-text);
  background:
    radial-gradient(circle at 80% 15%, rgba(224, 41, 49, 0.3), transparent 28%),
    linear-gradient(145deg, #272b31 0%, #101113 72%);
}

.abcm-media__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: clamp(20px, 4vw, 34px);
  text-align: center;
}

.ab-map .abcm-media {
  aspect-ratio: auto;
}

.abcm-media__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--abcm-red);
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 10px 26px rgba(224, 41, 49, 0.3);
}

.abcm-media__copy {
  display: grid;
  gap: 6px;
  max-width: 58ch;
}

.abcm-media__copy strong {
  color: var(--abcm-text);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.abcm-media__copy span {
  color: var(--abcm-muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.abcm-media__button {
  margin-top: 17px;
  background: var(--abcm-red);
  border-color: var(--abcm-red);
}

.abcm-media__button:hover,
.abcm-media__button:focus-visible {
  background: var(--abcm-red-dark);
  border-color: var(--abcm-red-dark);
}

.abcm-media__privacy {
  margin-top: 11px;
  color: var(--abcm-muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.abcm-footer-control {
  display: flex;
  justify-content: center;
  padding: 6px 20px 22px;
  color: #fff;
  background: #101113;
}

.abcm-footer-control button {
  padding: 4px 0;
  color: #c9cbd0;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.abcm-footer-control button:hover,
.abcm-footer-control button:focus-visible {
  color: #fff;
  outline: 2px solid var(--abcm-red);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .abcm-consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .abcm-consent__panel {
    max-height: 88vh;
    padding: 22px 16px 18px;
    border-radius: 14px;
  }

  .abcm-consent__actions {
    grid-template-columns: 1fr;
  }

  .abcm-choice {
    gap: 12px;
    padding: 14px 12px;
  }

  .abcm-choice p {
    font-size: 0.84rem;
  }

  .abcm-media {
    min-height: 220px;
  }

  .abcm-media__inner {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abcm-button,
  .abcm-media__button,
  .abcm-switch,
  .abcm-switch::after {
    transition: none;
  }
}
