.analytics-consent-banner {
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 760px;
  margin-inline: auto;
  border: 1px solid #14233a;
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  background: #14233a;
  box-shadow: 0 16px 44px rgba(8, 20, 38, .28);
  font-family: inherit;
  line-height: 1.55;
}

.analytics-consent-banner[hidden],
.analytics-preferences-button[hidden] {
  display: none !important;
}

.analytics-consent-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.analytics-consent-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .86rem;
}

.analytics-consent-copy a {
  display: inline-block;
  margin-top: 6px;
  color: #ffd45e;
  font-size: .78rem;
  font-weight: 700;
}

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

.analytics-consent-actions button,
.analytics-preferences-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 8px;
  padding: 9px 14px;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.analytics-consent-accept {
  border-color: #ffd45e !important;
  color: #14233a;
  background: #ffd45e;
}

.analytics-consent-reject {
  color: #fff;
  background: transparent;
}

.analytics-consent-banner a:focus-visible,
.analytics-consent-actions button:focus-visible,
.analytics-preferences-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.analytics-preferences-button:focus-visible {
  outline-color: #14233a;
}

.analytics-preferences-button {
  position: fixed;
  z-index: 9998;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  min-height: 38px;
  border-color: rgba(20, 35, 58, .34);
  padding: 7px 10px;
  color: #14233a;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 18px rgba(8, 20, 38, .12);
  font-size: .72rem;
}

@media (max-width: 780px) {
  .analytics-dock-present .analytics-consent-banner {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .analytics-dock-present .analytics-preferences-button {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 620px) {
  .analytics-consent-banner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .analytics-consent-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent-banner,
  .analytics-preferences-button {
    scroll-behavior: auto;
  }
}
