.consent-banner {
  position: fixed;
  z-index: 10000;
  inset: 0;
  box-sizing: border-box;
  display: grid;
  align-items: end;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  color: #cccccc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-panel {
  box-sizing: border-box;
  width: min(760px, 100%);
  min-width: 0;
  max-height: calc(100vh - 40px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(112, 194, 255, 0.5);
  border-radius: 12px;
  background: #19384f;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.consent-panel h2 { margin: 0 0 10px; color: #fff; font-size: 1.35rem; }
.consent-panel h2:focus { outline: none; }
.consent-panel p { margin: 0 0 10px; line-height: 1.55; }
.consent-panel a { color: #8acbff; }
.consent-options { margin-top: 18px; }

.consent-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(112, 194, 255, 0.28);
  border-radius: 8px;
  background: #102d42;
  cursor: pointer;
}

.consent-choice input { width: 20px; height: 20px; margin: 2px 0 0; }
.consent-choice strong, .consent-choice small { display: block; }
.consent-choice small { margin-top: 4px; color: #b8c7d5; line-height: 1.4; }

.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.consent-actions button,
.consent-settings {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #1f8fff;
  border-radius: 8px;
  background: #0d5da7;
  color: #fff;
  font: 700 0.95rem -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.consent-actions button:not([hidden]) { flex: 1 1 160px; }
.consent-actions .consent-secondary { border-color: rgba(112, 194, 255, 0.5); background: #02020e; }
.consent-actions button:hover, .consent-settings:hover { border-color: #ffcf72; }

.consent-actions button:focus-visible,
.consent-settings:focus-visible,
.consent-choice input:focus-visible,
.consent-panel a:focus-visible { outline: 3px solid #ffcf72; outline-offset: 3px; }

.consent-settings {
  position: fixed;
  z-index: 9999;
  right: 14px;
  bottom: 14px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  border-color: rgba(112, 194, 255, 0.5);
  background: #02020e;
}

.consent-settings svg { display: block; width: 100%; height: 100%; fill: #b8c7d5; }

@media (max-width: 480px) {
  .consent-banner { padding: 10px; }
  .consent-panel { max-height: calc(100vh - 20px); padding: 17px; }
  .consent-actions { display: grid; grid-template-columns: 1fr; }
  .consent-actions [data-consent-accept] { order: 1; }
  .consent-actions [data-consent-reject] { order: 2; }
  .consent-actions [data-consent-configure], .consent-actions [data-consent-save] { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner, .consent-panel, .consent-settings { scroll-behavior: auto; transition: none; }
}
