/**
 * BelGoProtect - Cookie Consent Banner
 * RGPD / Google Consent Mode v2
 */

.bgp-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  color: #0B1F33;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -6px 24px rgba(11, 31, 51, 0.12);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  animation: bgpConsentIn 0.25s ease-out;
}

@keyframes bgpConsentIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bgp-consent[hidden] { display: none; }

.bgp-consent__body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bgp-consent__content {
  flex: 1 1 420px;
  min-width: 0;
}

.bgp-consent__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0B1F33;
}

.bgp-consent__text {
  margin: 0;
  color: #334155;
}

.bgp-consent__text a {
  color: #0B1F33;
  text-decoration: underline;
}

.bgp-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.bgp-consent__btn {
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.bgp-consent__btn--accept {
  background: #F59E0B;
  color: #0B1F33;
}
.bgp-consent__btn--accept:hover { background: #D97706; color: #ffffff; }

.bgp-consent__btn--reject {
  background: #ffffff;
  color: #0B1F33;
  border-color: #CBD5E1;
}
.bgp-consent__btn--reject:hover { background: #F1F5F9; }

.bgp-consent__btn--custom {
  background: transparent;
  color: #64748B;
  border-color: transparent;
  padding: 10px 8px;
  text-decoration: underline;
}
.bgp-consent__btn--custom:hover { color: #0B1F33; }

.bgp-consent__prefs {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 24px;
}

.bgp-consent__prefs[hidden] { display: none; }

.bgp-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
}

.bgp-consent__row-main { flex: 1; }

.bgp-consent__row-title {
  font-weight: 600;
  color: #0B1F33;
  margin: 0 0 2px;
}

.bgp-consent__row-desc {
  margin: 0;
  font-size: 13px;
  color: #64748B;
}

.bgp-consent__switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.bgp-consent__switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.bgp-consent__switch-track {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  transition: background 0.15s ease;
  pointer-events: none;
}

.bgp-consent__switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.bgp-consent__switch input:checked ~ .bgp-consent__switch-track { background: #F59E0B; }
.bgp-consent__switch input:checked ~ .bgp-consent__switch-track::after { transform: translateX(18px); }
.bgp-consent__switch input:disabled ~ .bgp-consent__switch-track { background: #94A3B8; opacity: 0.6; }

@media (max-width: 720px) {
  .bgp-consent__body { padding: 14px 16px; gap: 12px; }
  .bgp-consent__actions { width: 100%; }
  .bgp-consent__btn { flex: 1 1 auto; text-align: center; }
  .bgp-consent__btn--custom { flex: 1 1 100%; }
}
