.consent-banner,
.consent-panel {
  color: #f4f1e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-banner[hidden],
.consent-modal[hidden] {
  display: none !important;
}

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(47, 229, 126, .36);
  background: rgba(3, 12, 8, .97);
  box-shadow: 0 24px 80px #000d, inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.consent-banner strong {
  display: block;
  margin-bottom: 5px;
  font: 800 13px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #d7ff00;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.consent-banner p,
.consent-option p,
.consent-more {
  margin: 0;
  color: #a6b5ad;
  font-size: 12px;
  line-height: 1.5;
}

.consent-actions,
.consent-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.consent-actions button,
.consent-panel button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(75, 255, 153, .28);
  border-radius: 3px;
  color: #f4f1e8;
  background: linear-gradient(180deg, rgba(14,35,25,.96), rgba(4,13,9,.96));
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .6px;
  cursor: pointer;
}

.consent-actions button:hover,
.consent-actions button:focus-visible,
.consent-panel button:hover,
.consent-panel button:focus-visible {
  border-color: #20ed82;
  outline: 2px solid transparent;
  color: #d7ff00;
}

.consent-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 5, 3, .84);
  overflow-y: auto;
}

body.consent-open {
  overflow: hidden;
}

.consent-panel {
  width: min(590px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(47, 229, 126, .36);
  border-radius: 4px;
  background: linear-gradient(145deg, #081c12, #030a07);
  box-shadow: 0 30px 100px #000e, inset 0 0 55px rgba(11,102,54,.08);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.consent-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(47,229,126,.18);
}

.consent-heading span {
  color: #20ed82;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 2px;
}

.consent-heading h2 {
  margin: 7px 0 0;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -1px;
}

.consent-option {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.consent-option strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.consent-required {
  color: #91a79b;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.consent-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid #42604e;
  border-radius: 20px;
  background: #09130d;
  cursor: pointer;
}

.consent-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #85968c;
  transition: transform .18s ease, background .18s ease;
}

.consent-option input:checked + .consent-switch {
  border-color: #20ed82;
  background: rgba(32,237,130,.14);
}

.consent-option input:checked + .consent-switch::after {
  transform: translateX(20px);
  background: #d7ff00;
}

.consent-option input:focus-visible + .consent-switch {
  outline: 2px solid #f4f1e8;
  outline-offset: 3px;
}

.consent-panel-actions {
  margin-top: 19px;
}

.consent-panel-actions button {
  flex: 1 1 150px;
}

.consent-more {
  margin-top: 14px;
  text-align: center;
}

.consent-more a {
  color: #d7ff00;
}

@media (max-width: 620px) {
  .consent-banner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px;
  }
  .consent-actions button {
    flex: 1 1 calc(50% - 7px);
  }
  .consent-actions button:last-child {
    flex-basis: 100%;
  }
  .consent-panel {
    padding: 18px 15px;
  }
  .consent-option {
    gap: 12px;
  }
  .consent-panel-actions button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-switch::after { transition: none; }
}
