.ah-cookie-banner,
.ah-cookie-dialog {
  font-family: Inter, "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

.ah-cookie-banner {
  position: fixed;
  z-index: 10000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid rgba(169, 176, 199, 0.28);
  border-radius: 22px;
  background: rgba(16, 21, 42, 0.98);
  color: #f4f5fb;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.ah-cookie-banner[hidden] {
  display: none;
}

.ah-cookie-copy {
  min-width: 0;
}

.ah-cookie-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.ah-cookie-copy p {
  margin: 0;
  color: #b5bdcf;
  font-size: 14px;
  line-height: 1.5;
}

.ah-cookie-copy a {
  color: #c2b4ff;
  text-underline-offset: 3px;
}

.ah-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.ah-cookie-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #39415a;
  border-radius: 999px;
  color: #f4f5fb;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.ah-cookie-actions .ah-cookie-accept {
  border-color: transparent;
  background: linear-gradient(115deg, #6757e8, #8b5cf6);
}

.ah-cookie-actions button:focus-visible {
  outline: 3px solid #22c7b8;
  outline-offset: 3px;
}

.ah-cookie-dialog {
  width: min(520px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  border: 1px solid rgba(169, 176, 199, 0.32);
  border-radius: 20px;
  background: #10152a;
  color: #f4f5fb;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .58);
}

.ah-cookie-dialog::backdrop { background: rgba(3, 5, 15, .72); backdrop-filter: blur(5px); }
.ah-cookie-dialog-card { position: relative; padding: 26px; }
.ah-cookie-dialog-card h2 { margin: 5px 0 10px; font-size: 23px; }
.ah-cookie-dialog-card p { color: #b5bdcf; font-size: 14px; line-height: 1.55; }
.ah-cookie-eyebrow { margin: 0; color: #55e2d1 !important; font-size: 10px !important; font-weight: 800; letter-spacing: .13em; }
.ah-cookie-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid #39415a; border-radius: 50%; color: #dbe0ef; background: transparent; font-size: 20px; cursor: pointer; }
.ah-cookie-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 15px; border: 1px solid #343b56; border-radius: 12px; background: #151a30; }
.ah-cookie-choice strong,.ah-cookie-choice small { display: block; }
.ah-cookie-choice small { margin-top: 4px; color: #9fa9c4; font-size: 12px; }
.ah-cookie-always { flex: 0 0 auto; color: #55e2d1; font-size: 12px; font-weight: 700; }
.ah-cookie-choice-muted { opacity: .7; }
.ah-cookie-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ah-cookie-dialog-actions button { min-height: 42px; padding: 0 16px; border: 1px solid #39415a; border-radius: 999px; color: #f4f5fb; background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ah-cookie-dialog-actions .ah-cookie-accept { border-color: transparent; background: linear-gradient(115deg, #6757e8, #8b5cf6); }
.ah-cookie-dialog-card .ah-cookie-footnote { margin: 15px 0 0; font-size: 11px; }

@media (max-width: 680px) {
  .ah-cookie-banner { width: calc(100% - 24px); right: 12px; left: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .ah-cookie-actions { flex-wrap: wrap; }
  .ah-cookie-actions button { flex: 1 1 180px; white-space: normal; }
  .ah-cookie-dialog-card { padding: 22px 18px; }
}

@media (max-width: 640px) {
  .ah-cookie-banner {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
  }

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

  .ah-cookie-actions button {
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
  }
}

.ah-cookie-dialog :focus-visible { outline: 3px solid #22c7b8; outline-offset: 3px; }
