.ab-cookie-banner,
.ab-cookie-modal {
  --ab-consent-accent: #2DD4BF;
  --ab-consent-bg: rgba(2, 6, 23, .96);
  --ab-consent-panel: rgba(15, 23, 42, .98);
  --ab-consent-border: rgba(45, 212, 191, .28);
  --ab-consent-text: #e5eefb;
  --ab-consent-muted: #a8b6c8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ab-cookie-banner[hidden],
.ab-cookie-modal[hidden] {
  display: none !important;
}

.ab-cookie-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--ab-consent-border);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ab-consent-bg), rgba(8, 18, 31, .96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  color: var(--ab-consent-text);
}

.ab-cookie-copy {
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
}

.ab-cookie-copy strong {
  color: #fff;
}

.ab-cookie-copy a {
  color: #99f6e4;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(45, 212, 191, .55);
  text-underline-offset: 3px;
}

.ab-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.ab-cookie-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 10px;
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  min-height: 38px;
  padding: 10px 13px;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.ab-cookie-btn:hover,
.ab-cookie-btn:focus-visible {
  border-color: rgba(45, 212, 191, .75);
  color: #fff;
  outline: none;
}

.ab-cookie-btn:active {
  transform: translateY(1px);
}

.ab-cookie-btn--primary {
  border-color: rgba(45, 212, 191, .7);
  background: var(--ab-consent-accent);
  color: #04111a;
}

.ab-cookie-btn--ghost {
  background: rgba(45, 212, 191, .09);
  color: #ccfbf1;
}

.ab-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, .66);
}

.ab-cookie-modal__panel {
  width: min(520px, 100%);
  border: 1px solid var(--ab-consent-border);
  border-radius: 18px;
  background: var(--ab-consent-panel);
  color: var(--ab-consent-text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.ab-cookie-modal__head,
.ab-cookie-modal__body,
.ab-cookie-modal__foot {
  padding: 18px;
}

.ab-cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.ab-cookie-modal__title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.ab-cookie-modal__text {
  margin: 6px 0 0;
  color: var(--ab-consent-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ab-cookie-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ab-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.ab-cookie-option:last-child {
  border-bottom: 0;
}

.ab-cookie-option strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.ab-cookie-option span {
  display: block;
  margin-top: 3px;
  color: var(--ab-consent-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ab-cookie-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}

.ab-cookie-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.ab-cookie-toggle span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  background: rgba(51, 65, 85, .9);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.ab-cookie-toggle span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .18s ease;
}

.ab-cookie-toggle input:checked + span {
  border-color: rgba(45, 212, 191, .8);
  background: rgba(45, 212, 191, .82);
}

.ab-cookie-toggle input:checked + span::after {
  transform: translateX(20px);
}

.ab-cookie-toggle input:focus-visible + span {
  outline: 2px solid rgba(45, 212, 191, .5);
  outline-offset: 3px;
}

.ab-footer-pill.ab-cookie-settings-link {
  font: inherit;
  cursor: pointer;
}

.ab-cookie-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, .16);
}

.ab-cookie-settings-link {
  color: inherit;
}

@media (max-width: 720px) {
  .ab-cookie-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .ab-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ab-cookie-actions .ab-cookie-btn--primary {
    grid-column: 1 / -1;
  }

  .ab-cookie-btn {
    width: 100%;
  }
}
