.mi6-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 1rem;
  color: #f3f3f1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mi6-consent-overlay-banner {
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.48) 100%);
  pointer-events: none;
}

.mi6-consent-overlay-settings {
  align-items: center;
  background: rgba(0, 0, 0, 0.58);
}

.mi6-consent-panel {
  position: relative;
  width: min(100%, 44rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(120% 80% at 50% -15%, rgba(111, 143, 95, 0.12), transparent 60%),
    #080808;
  padding: 1.25rem;
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.62);
  pointer-events: auto;
}

.mi6-consent-overlay-banner .mi6-consent-panel {
  margin-bottom: 1rem;
}

.mi6-consent-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  border: 0;
  background: transparent;
  color: #9a9a95;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.mi6-consent-kicker {
  margin: 0 2.5rem 0.55rem 0;
  color: #6f8f5f;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mi6-consent-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.mi6-consent-copy,
.mi6-consent-note {
  color: #9a9a95;
  line-height: 1.55;
}

.mi6-consent-copy {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  font-size: 0.95rem;
}

.mi6-consent-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
}

.mi6-consent-options {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mi6-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.9rem;
}

.mi6-consent-option strong,
.mi6-consent-option span {
  display: block;
}

.mi6-consent-option strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.mi6-consent-option span {
  margin-top: 0.22rem;
  color: #9a9a95;
  font-size: 0.8rem;
  line-height: 1.4;
}

.mi6-consent-pill {
  flex-shrink: 0;
  border: 1px solid rgba(111, 143, 95, 0.42);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: #a5c196 !important;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.62rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mi6-consent-option-toggle {
  cursor: pointer;
}

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

.mi6-consent-switch {
  position: relative;
  width: 2.4rem;
  height: 1.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #27272a;
}

.mi6-consent-switch::after {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 0.18rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #a1a1aa;
  transition: transform 160ms ease, background-color 160ms ease;
}

.mi6-consent-option-toggle input:checked + .mi6-consent-switch {
  border-color: #6f8f5f;
  background: #6f8f5f;
}

.mi6-consent-option-toggle input:checked + .mi6-consent-switch::after {
  transform: translateX(1rem);
  background: #0a0a08;
}

.mi6-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.mi6-consent-btn,
.mi6-consent-manage {
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.mi6-consent-btn {
  min-height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0 1rem;
}

.mi6-consent-btn-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

.mi6-consent-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.mi6-consent-btn-secondary:hover,
.mi6-consent-manage:hover,
.mi6-consent-close:hover {
  border-color: rgba(111, 143, 95, 0.5);
  color: #a5c196;
}

.mi6-consent-btn:focus-visible,
.mi6-consent-close:focus-visible,
.mi6-consent-manage:focus-visible,
.mi6-consent-option-toggle:focus-within {
  outline: 2px solid rgba(165, 193, 150, 0.85);
  outline-offset: 3px;
}

.mi6-consent-manage {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.88);
  color: #9a9a95;
  padding: 0.55rem 0.8rem;
  backdrop-filter: blur(12px);
}

@media (max-width: 560px) {
  .mi6-consent-overlay {
    padding: 0;
  }

  .mi6-consent-overlay-settings {
    align-items: flex-end;
  }

  .mi6-consent-panel {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    padding: 1rem;
  }

  .mi6-consent-overlay-banner .mi6-consent-panel {
    margin-bottom: 0;
  }

  .mi6-consent-actions {
    display: grid;
  }

  .mi6-consent-btn {
    width: 100%;
  }
}
