.analytics-consent {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 14px;
  background: #071426;
  color: #fff;
  box-shadow: 0 8px 24px rgba(2, 12, 27, 0.28);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent__copy {
  max-width: 490px;
}

.analytics-consent__copy h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.analytics-consent__copy p {
  margin: 0;
  color: #dce9f8;
  font-size: 0.94rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.analytics-consent__copy a {
  color: #75c9ff;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  width: 300px;
  gap: 10px;
}

.analytics-consent__actions button {
  flex: 1 1 0;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
}

.analytics-consent__accept {
  border: 0;
  background: linear-gradient(135deg, #2f79ee, #75c9ff);
  color: #fff;
}

.analytics-consent__reject {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: transparent;
  color: #fff;
}

.analytics-consent__actions button:focus-visible,
.analytics-consent__copy a:focus-visible,
.cookie-settings-button:focus-visible {
  outline: 3px solid #75c9ff;
  outline-offset: 3px;
}

.cookie-settings-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.cookie-settings-button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .analytics-consent {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .analytics-consent__actions {
    width: 100%;
  }

  .analytics-consent__actions button {
    flex: 1 1 0;
  }
}

@media (max-width: 390px) {
  .analytics-consent__actions {
    flex-direction: column;
  }

  .analytics-consent__actions button {
    width: 100%;
  }
}

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