/* Blackwood Summit Consent Banner (POPIA + Google Consent Mode v2) */
:root {
  --bw-navy: #0a1f44;
  --bw-gold: #c9a84c;
  --bw-white: #ffffff;
  --bw-muted: #d7deea;
  --bw-shadow: 0 14px 40px rgba(5, 18, 43, 0.24);
  --bw-radius: 14px;
}

.bw-consent-root {
  font-family: Inter, "Open Sans", Arial, sans-serif;
  color: var(--bw-white);
}

.bw-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: linear-gradient(135deg, #0a1f44 0%, #102f63 100%);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: var(--bw-radius);
  box-shadow: var(--bw-shadow);
  padding: 18px;
  display: none;
}

.bw-consent-banner[aria-hidden="false"] {
  display: block;
}

.bw-consent-content {
  display: grid;
  gap: 14px;
}

.bw-consent-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--bw-white);
}

.bw-consent-text {
  margin: 0;
  line-height: 1.6;
  color: var(--bw-muted);
  font-size: 0.96rem;
}

.bw-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bw-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
}

.bw-btn:focus-visible {
  outline: 2px solid var(--bw-gold);
  outline-offset: 2px;
}

.bw-btn-primary {
  background: var(--bw-gold);
  color: #091427;
}

.bw-btn-secondary {
  background: #e7edf8;
  color: #0b1f44;
}

.bw-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.bw-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 11, 26, 0.64);
  padding: 16px;
}

.bw-consent-modal[aria-hidden="false"] {
  display: flex;
}

.bw-consent-panel {
  width: min(620px, 100%);
  background: #fff;
  border-radius: 14px;
  color: #13294f;
  overflow: hidden;
}

.bw-consent-panel header {
  background: #0a1f44;
  color: #fff;
  padding: 14px 18px;
}

.bw-consent-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.bw-consent-panel .bw-consent-body {
  padding: 18px;
}

.bw-consent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e9edf4;
}

.bw-consent-row:last-child {
  border-bottom: 0;
}

.bw-switch {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #a7b1c0;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}

.bw-switch::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: #fff;
  transition: 0.2s;
}

.bw-switch:checked {
  background: #0a1f44;
}

.bw-switch:checked::before {
  transform: translateX(20px);
}

.bw-switch:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.bw-consent-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .bw-consent-banner {
    left: 22px;
    right: auto;
    max-width: 760px;
  }
}
