.consent-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  animation: consentIn 250ms ease;
}
@keyframes consentIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes consentOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(16px); } }
.consent-card {
  width: 100%;
  max-width: 700px;
  padding: 19px 21px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 0;
  border-top: 3px solid #71BFF2;
  border-radius: 2px;
  background: #08151D;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  color: #F2F6F8;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}
.consent-logo { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.consent-text { min-width: 0; flex: 1; }
.consent-title { margin-bottom: 6px; color: #F2F6F8; font-size: 16px; font-weight: 700; }
.consent-desc { color: #81939D; font-size: 13px; line-height: 1.5; }
.consent-desc a { color: #8BCFFF; text-decoration: none; }
.consent-desc a:hover { text-decoration: underline; }
.consent-actions { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.consent-btn {
  min-height: 38px;
  padding: 9px 17px;
  border: 1px solid #35505F;
  border-radius: 2px;
  background: #10212B;
  color: #F2F6F8;
  font: 600 13px/1.2 "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.consent-btn-primary { border-color: #DCEEFF; background: #DCEEFF; color: #07121B; }
.consent-btn-secondary:hover { border-color: #8BCFFF; }
.consent-btn-text { min-height: 26px; padding: 3px; border-color: transparent; background: transparent; color: #81939D; font-size: 12px; }
.consent-btn:focus-visible { outline: 3px solid #8BCFFF; outline-offset: 2px; }
.consent-toggles { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.consent-toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent-toggle-info { color: #81939D; font-size: 13px; line-height: 1.4; }
.consent-toggle-info strong { color: #F2F6F8; font-size: 14px; }
.consent-switch { position: relative; width: 40px; height: 22px; margin-top: 2px; flex-shrink: 0; }
.consent-switch input { width: 0; height: 0; opacity: 0; }
.consent-slider { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 2px; background: #1684C6; cursor: pointer; }
.consent-slider::before { content: ""; position: absolute; bottom: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: transform 160ms ease; }
.consent-switch input:not(:checked) + .consent-slider { background: #29404D; }
.consent-switch input:checked + .consent-slider::before { transform: translateX(18px); }
.consent-switch-locked { opacity: .58; }
.consent-switch-locked .consent-slider { cursor: not-allowed; }
.cookie-preferences-trigger {
  position: fixed;
  right: auto;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  z-index: 9998;
  min-height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #315064;
  border-radius: 2px;
  background: rgba(7, 20, 27, .96);
  color: #AFC6D2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  font: 600 11px/1.2 "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
}
.cookie-preferences-trigger[hidden] { display: none; }
.cookie-preferences-trigger:hover { border-color: #71BFF2; color: #F2F6F8; }
.cookie-preferences-trigger:focus-visible { outline: 3px solid #8BCFFF; outline-offset: 2px; }
.cookie-preferences-trigger-mark { width: 8px; height: 8px; border: 2px solid #71BFF2; border-radius: 50%; }
.site-back-top,
.legal-back-top {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: auto;
  z-index: 9997;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #315064;
  border-radius: 10px;
  background: rgba(7, 20, 27, .96);
  color: #8BCFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.site-back-top.is-visible,
.legal-back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-back-top:hover,
.legal-back-top:hover { border-color: #71BFF2; background: #10212B; }
.site-back-top:focus-visible,
.legal-back-top:focus-visible { outline: 3px solid #8BCFFF; outline-offset: 2px; }
.site-back-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal-back-top .material-icons { font-size: 18px; }
.consent-dialog-open .site-back-top,
.consent-dialog-open .legal-back-top { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .consent-banner { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .consent-card { padding: 16px; flex-direction: column; gap: 12px; }
  .consent-logo { display: none; }
  .consent-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .consent-btn { padding-right: 8px; padding-left: 8px; }
  .consent-btn-text { grid-column: 1 / -1; }
  .cookie-preferences-trigger {
    right: auto;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    left: 9px;
    width: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
  }
  .cookie-preferences-trigger span:last-child { display: none; }
  .cookie-preferences-trigger-mark { width: 10px; height: 10px; }
  .site-back-top,
  .legal-back-top {
    right: 9px;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner { animation: none; }
  .consent-slider::before { transition: none; }
  .site-back-top,
  .legal-back-top { transition: none; }
}
