/* Shared with the portfolio's cream surfaces, teal footer and orange accents. */
.analytics-banner,
.analytics-banner * { box-sizing: border-box; }
.analytics-banner[hidden] { display: none !important; }
.analytics-banner {
  position: fixed;
  z-index: 10000;
  inset: auto 24px max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1600px;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-inline: auto;
  padding: 28px 64px 28px 28px;
  border: 1px solid #d7cebf;
  border-radius: 8px;
  background: #f6eee3;
  color: #302d28;
  box-shadow: 0 14px 60px #172e3033;
  font: 14px/1.7 'Noto Sans', Arial, sans-serif;
  text-align: left;
  color-scheme: light;
}
.analytics-icon {
  display: grid;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: #113c42;
  color: #f6eee3;
}
.analytics-copy { flex: 1; min-width: 0; }
.analytics-banner .analytics-copy h2 {
  margin: 0 0 7px;
  color: #113c42;
  font: 400 27px/1.25 Oswald, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.analytics-banner p { margin: 0; font: inherit; }
.analytics-banner a { color: #113c42; text-decoration: underline; text-underline-offset: 3px; }
.analytics-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.analytics-banner button { appearance: none; cursor: pointer; margin: 0; }
.analytics-actions button {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #113c42;
  border-radius: 4px;
  background: transparent;
  color: #113c42;
  font: 400 18px/1.3 Oswald, sans-serif;
  white-space: nowrap;
}
.analytics-actions .analytics-accept { border-color: #fd5911; background: #fd5911; color: #182c2d; }
.analytics-actions button:hover { background: #113c42; border-color: #113c42; color: #f6eee3; }
.analytics-banner .analytics-close {
  position: absolute;
  top: 16px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #665b50;
}
.analytics-close:hover { background: #113c4210; }
.analytics-banner :is(button, a):focus-visible,
.analytics-settings:focus-visible { outline: 2px solid #934a25; outline-offset: 4px; }
.analytics-banner h2:focus { outline: none; }
.analytics-settings {
  display: inline-block;
  margin: 0 0 0 16px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  pointer-events: auto;
}
.scene-footer .analytics-settings { display: block; margin: 0; padding: 3px 0; }
@media (max-width: 1100px) {
  .analytics-banner { flex-wrap: wrap; gap: 16px; }
  .analytics-copy { flex-basis: calc(100% - 76px); }
  .analytics-actions { margin-left: 76px; }
}
@media (max-width: 600px) {
  .analytics-banner { inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 24px 20px 20px; gap: 14px; font-size: 13px; }
  .analytics-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .analytics-icon svg { width: 22px; height: 22px; }
  .analytics-copy { flex-basis: 100%; }
  .analytics-banner .analytics-copy h2 { font-size: 24px; }
  .analytics-actions { width: 100%; margin: 0; gap: 10px; }
  .analytics-actions button { flex: 1; padding: 12px 8px; font-size: 16px; }
  .portfolio-footer__legal .analytics-settings { display: block; margin: 6px 0 0; }
}
