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

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  display: flex;
  max-width: min(680px, calc(100vw - 40px));
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 2px solid #172333;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 5px 5px 0 rgba(23, 35, 51, 0.2);
  color: #172333;
  font: 14px/1.45 system-ui, sans-serif;
}

.analytics-consent__copy {
  min-width: 0;
}

.analytics-consent__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.analytics-consent__copy p {
  margin: 0;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.analytics-consent button,
.analytics-settings {
  border: 2px solid #172333;
  border-radius: 8px;
  padding: 9px 14px;
  background: #2f7d5b;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.analytics-consent button:hover,
.analytics-settings:hover {
  background: #d95d45;
}

.analytics-consent__secondary {
  background: #ffffff !important;
  color: #172333 !important;
}

.analytics-consent__text {
  border: 0 !important;
  background: transparent !important;
  color: #4f6070 !important;
  font-weight: 700 !important;
}

.analytics-settings {
  position: fixed;
  z-index: 999;
  right: 20px;
  bottom: 20px;
  background: #172333;
  font-size: 12px;
}

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

  .analytics-consent__actions {
    flex-wrap: wrap;
  }

  .analytics-settings {
    right: 12px;
    bottom: 12px;
  }
}
