/* ─────────────────────────────────────────────────────
   Bushveld Web Co — Cookie Consent Styles
   ───────────────────────────────────────────────────── */

/* ── Banner ── */
#bwc-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 20px clamp(20px, 4vw, 52px);
  background: rgba(23, 23, 19, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(180, 106, 60, 0.22);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.32s ease;
}

#bwc-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.bwc-banner-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  margin-inline: auto;
  flex-wrap: wrap;
}

.bwc-banner-copy {
  flex: 1;
  min-width: 220px;
}

.bwc-banner-copy strong {
  display: block;
  color: #FAF6EE;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.bwc-banner-copy p {
  color: rgba(250, 246, 238, 0.58);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0;
}

.bwc-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.bwc-privacy-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: rgba(250, 246, 238, 0.32);
  font-size: 0.72rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.18s ease;
}

.bwc-privacy-link:hover {
  color: rgba(180, 106, 60, 0.8);
}

/* ── Shared button base ── */
.bwc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 3px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.18s ease,
              background 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease,
              box-shadow 0.18s ease;
  transform: scale(1);
}

.bwc-btn:hover  { transform: scale(1.04); }
.bwc-btn:active { transform: scale(0.98); }

.bwc-btn-primary {
  background: #B46A3C;
  border-color: #B46A3C;
  color: #171713;
}

.bwc-btn-primary:hover {
  background: #c8773e;
  border-color: #c8773e;
  box-shadow: 0 4px 18px rgba(180, 106, 60, 0.35);
}

.bwc-btn-outline {
  background: transparent;
  border-color: rgba(250, 246, 238, 0.22);
  color: rgba(250, 246, 238, 0.75);
}

.bwc-btn-outline:hover {
  border-color: rgba(250, 246, 238, 0.6);
  color: #FAF6EE;
}

.bwc-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: rgba(250, 246, 238, 0.42);
  padding-inline: 12px;
}

.bwc-btn-ghost:hover {
  color: rgba(180, 106, 60, 0.9);
  transform: none;
}

/* ── Preferences modal ── */
#bwc-prefs-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.26s ease;
}

#bwc-prefs-modal.is-visible {
  opacity: 1;
}

.bwc-prefs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 19, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bwc-prefs-panel {
  position: relative;
  width: min(100%, 480px);
  background: #1d1c17;
  border: 1px solid rgba(180, 106, 60, 0.18);
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#bwc-prefs-modal.is-visible .bwc-prefs-panel {
  transform: translateY(0);
}

.bwc-prefs-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.07);
  position: relative;
}

.bwc-eyebrow {
  display: block;
  color: #B46A3C;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.bwc-prefs-header h2 {
  color: #FAF6EE;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.bwc-prefs-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: transparent;
  border: none;
  color: rgba(250, 246, 238, 0.35);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 3px;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease;
}

.bwc-prefs-close:hover {
  color: #FAF6EE;
  background: rgba(250, 246, 238, 0.08);
}

.bwc-prefs-body {
  padding: 8px 0;
}

.bwc-pref-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.05);
}

.bwc-pref-row:last-child {
  border-bottom: none;
}

.bwc-pref-info {
  flex: 1;
}

.bwc-pref-info strong {
  display: block;
  color: #FAF6EE;
  font-size: 0.87rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.bwc-pref-info p {
  color: rgba(250, 246, 238, 0.45);
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0;
}

.bwc-toggle-fixed {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(180, 106, 60, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Toggle switch ── */
.bwc-toggle {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.bwc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bwc-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: rgba(250, 246, 238, 0.12);
  border-radius: 12px;
  border: 1px solid rgba(250, 246, 238, 0.12);
  transition: background 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.bwc-toggle input:checked + .bwc-toggle-track {
  background: #B46A3C;
  border-color: #B46A3C;
}

.bwc-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #FAF6EE;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.bwc-toggle input:checked + .bwc-toggle-track .bwc-toggle-thumb {
  transform: translateX(20px);
}

.bwc-toggle:focus-within .bwc-toggle-track {
  outline: 2px solid rgba(180, 106, 60, 0.6);
  outline-offset: 2px;
}

/* ── Modal footer ── */
.bwc-prefs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-top: 1px solid rgba(250, 246, 238, 0.07);
  gap: 16px;
}

.bwc-text-link {
  color: rgba(250, 246, 238, 0.35);
  font-size: 0.76rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.bwc-text-link:hover {
  color: rgba(180, 106, 60, 0.8);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .bwc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .bwc-banner-actions {
    justify-content: flex-end;
  }

  .bwc-btn-ghost {
    display: none;
  }

  .bwc-prefs-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }

  .bwc-prefs-footer .bwc-btn-primary {
    width: 100%;
    justify-content: center;
  }
}
