.analytics-consent {
  width: min(36rem, calc(100vw - 2rem));
  box-sizing: border-box;
  padding: 1rem;
  background: #20201d;
  color: #fff;
  font: 14px/1.5 'Space Grotesk', sans-serif;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent h2 { margin: 0 0 .5rem; font: 600 1.15rem/1.1 'Space Grotesk', sans-serif; }
.analytics-consent p { margin: 0 0 .75rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.analytics-consent button, .analytics-settings {
  padding: .6rem .8rem;
  border: 1px solid #555;
  border-radius: .25rem;
  background: #fff;
  color: #161616;
  font: 14px 'Space Grotesk', sans-serif;
  cursor: pointer;
}
.analytics-consent button:focus-visible, .analytics-settings:focus-visible {
  outline: 3px solid #587b8c;
  outline-offset: 2px;
}
.cookie-error { color: #ffb6b6; margin-top: .75rem !important; }
.cookie-footer-controls { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1180px) / 2)); bottom: 24px; color: #fff; text-align: left; }
.site-footer { overflow: visible; z-index: 32; }
.site-footer > span { max-width: calc(100% - 105px); }
.cookie-footer-controls .analytics-settings { border: 0; padding: .3rem 0; background: transparent; color: #fff; text-decoration: underline; font-size: .75rem; }
.site-footer .analytics-consent { position: absolute; bottom: calc(100% + .5rem); right: 0; max-height: min(60vh, 30rem); overflow-y: auto; box-shadow: 0 2px 12px #0005; }
@media (min-width: 761px) {
  .site-footer .analytics-consent { width: min(60rem, calc(100vw - 40px)); max-height: min(calc(100vw * 461 / 2000 - 5rem), 30rem); padding: .6rem .8rem; font-size: 13px; line-height: 1.3; }
  .site-footer .analytics-consent:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; }
  .site-footer .analytics-consent h2 { margin-bottom: .25rem; font-size: 1rem; }
  .site-footer .analytics-consent p { margin-bottom: 0; }
  .site-footer .cookie-actions { grid-column: 2; grid-row: 1 / 3; align-content: center; flex-direction: column; }
  .site-footer .analytics-consent button { padding: .35rem .6rem; font-size: 13px; }
  .site-footer .cookie-error { grid-column: 1 / -1; }
}
.cookie-footer { background: #20201d; }
.cookie-footer .cookie-footer-controls { position: static; padding: .5rem 20px; }
.album-detail > .site-footer { display: block; position: relative; z-index: 31; }
.album-detail > .site-footer > .footer-image, .album-detail > .site-footer > span { display: none; }
.album-detail .cookie-footer-controls { position: static; background: #20201d; padding: .5rem 20px; }
.album-detail .analytics-consent { position: static; box-shadow: none; }
body.album-detail { grid-template-rows: 44px minmax(0, 1fr) auto; }
.album-detail .analytics-consent { max-height: 45dvh; overflow-y: auto; }
@media (max-width: 760px) {
  .cookie-footer-controls { right: 20px; bottom: 20px; }
  .analytics-consent { padding: .75rem; font-size: 13px; line-height: 1.3; }
  .analytics-consent h2 { margin-bottom: .35rem; font-size: 1rem; }
  .analytics-consent p { margin-bottom: .5rem; }
  .analytics-consent button { padding: .45rem .6rem; font-size: 13px; }
  .cookie-actions { gap: .35rem; }
  .site-footer .analytics-consent { max-height: calc(100dvh - 5rem); }
  body.album-detail { grid-template-rows: 38px minmax(0, 1fr) auto; }
  .album-detail .analytics-consent { max-height: calc(100dvh - 5rem); }
}
