.analytics-consent,
.analytics-consent * {
  box-sizing: border-box;
}

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

.analytics-consent {
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 32px));
  padding: 20px;
  color: #252525;
  background: #fff;
  border: 1px solid rgba(44, 40, 32, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(30, 28, 24, 0.2);
  font: inherit;
}

.analytics-consent__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #5f6368;
  font-size: 0.9rem;
  font-weight: 650;
}

.analytics-consent__logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.analytics-consent__title {
  margin: 0 0 7px;
  color: #171717;
  font-size: clamp(1.2rem, 4.8vw, 1.45rem);
  line-height: 1.2;
}

.analytics-consent__question {
  margin: 0;
  color: #3f3f3f;
  font-size: 1rem;
  line-height: 1.5;
}

.analytics-consent__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.analytics-consent__button {
  min-height: 46px;
  flex: 1 1 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: filter 160ms ease, transform 160ms ease;
}

.analytics-consent__button:hover {
  filter: brightness(0.96);
}

.analytics-consent__button:active {
  transform: translateY(1px);
}

.analytics-consent__button:focus-visible,
.analytics-consent__more summary:focus-visible,
.analytics-consent__settings:focus-visible {
  outline: 3px solid rgba(217, 112, 0, 0.35);
  outline-offset: 3px;
}

.analytics-consent__button--no {
  color: #202124;
  background: #ececec;
}

.analytics-consent__button--yes {
  color: #fff;
  background: #c95f00;
}

.analytics-consent__more {
  margin-top: 13px;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.45;
}

.analytics-consent__more summary {
  width: max-content;
  color: #7a3d00;
  cursor: pointer;
  font-weight: 650;
}

.analytics-consent__more p {
  margin: 10px 0 0;
}

.analytics-consent__more a {
  color: inherit;
}

.analytics-consent__settings {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .analytics-consent {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    padding: 17px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent__button {
    transition: none;
  }
}
