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

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(53, 26, 63, .12);
  border-radius: 24px;
  background: rgba(255, 253, 253, .98);
  box-shadow: 0 28px 80px rgba(43, 24, 54, .28);
  color: #2b1836;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.analytics-consent-kicker {
  color: #e43d78;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.analytics-consent h2 {
  margin: 5px 0 7px;
  color: #351a3f;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.analytics-consent p {
  max-width: 520px;
  margin: 0;
  color: #74657d;
  font-size: 13px;
  line-height: 1.5;
}

.analytics-consent a {
  margin-top: 7px;
  color: #63356f;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

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

.analytics-consent-button {
  min-width: 108px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid #d9cddd;
  border-radius: 14px;
  background: #fff;
  color: #351a3f;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.analytics-consent-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #e43d78, #8b5cf6);
  color: #fff;
}

.analytics-consent-button:focus-visible,
.analytics-settings-button:focus-visible {
  outline: 3px solid rgba(228, 61, 120, .26);
  outline-offset: 2px;
}

.analytics-settings-button {
  position: fixed;
  z-index: 950;
  left: 14px;
  bottom: 14px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(53, 26, 63, .14);
  border-radius: 999px;
  background: rgba(255, 253, 253, .92);
  color: #63356f;
  box-shadow: 0 5px 18px rgba(53, 26, 63, .12);
  font: 750 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

body[data-yakoi-page] .analytics-settings-button {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

@media (max-width: 700px) {
  .analytics-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top));
    padding: 17px;
    border-radius: 21px;
    grid-template-columns: 1fr;
    gap: 15px;
    overflow-y: auto;
  }

  body[data-yakoi-page] .analytics-consent {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .analytics-consent h2 { font-size: 19px; }
  .analytics-consent p { font-size: 12px; }
  .analytics-consent-actions { width: 100%; }
  .analytics-consent-button { min-width: 0; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent *,
  .analytics-settings-button { scroll-behavior: auto !important; }
}
