/* Brandintellé cookie consent banner — see consent.js. Loaded as
   /consent.css?v=N in BOTH repos; bump N in both when this file changes. */

.bi-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  box-sizing: border-box;
  width: 400px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 20px;
  background: #ffffff;
  color: #12296C;
  border: 1px solid rgba(18, 41, 108, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(18, 41, 108, 0.18);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  animation: bi-consent-in 220ms ease-out;
}

.bi-consent *,
.bi-consent *::before,
.bi-consent *::after {
  box-sizing: border-box;
}

@keyframes bi-consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bi-consent { animation: none; }
}

.bi-consent__text {
  margin: 0 0 16px;
  color: #12296C;
  font-size: 14px;
}

.bi-consent__link {
  color: #12296C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bi-consent__actions {
  display: flex;
  gap: 10px;
}

.bi-consent__btn {
  flex: 1 1 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 9999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 150ms, transform 150ms;
}

.bi-consent__btn:hover { transform: translateY(-1px); }

.bi-consent__btn--accept { background: #FEE469; color: #12296C; }
.bi-consent__btn--accept:hover { background: #E6C94A; }

.bi-consent__btn--reject { background: #12296C; color: #ffffff; }
.bi-consent__btn--reject:hover { background: #2A3560; }

.bi-consent__btn:focus-visible,
.bi-consent__manage:focus-visible,
.bi-consent__link:focus-visible,
.bi-consent__switch:focus-visible {
  outline: 2px solid #12296C;
  outline-offset: 2px;
}

.bi-consent__manage {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  background: none;
  border: 0;
  color: #12296C;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.bi-consent__prefs {
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(18, 41, 108, 0.12);
}

.bi-consent__prefs[hidden] { display: none; }

.bi-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(18, 41, 108, 0.08);
}

.bi-consent__row-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #12296C;
}

.bi-consent__row-desc {
  margin: 2px 0 0;
  font-size: 13px;
  color: #4B5563;
}

.bi-consent__always {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
}

/* Toggle switch */
.bi-consent__switch {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  border-radius: 9999px;
  background: #CBD2E1;
  cursor: pointer;
  transition: background-color 150ms;
}

.bi-consent__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 150ms;
}

.bi-consent__switch:checked { background: #12296C; }
.bi-consent__switch:checked::after { transform: translateX(20px); }

.bi-consent__btn--save {
  width: 100%;
  margin-top: 16px;
}

/* Phones: full-width bar at the bottom */
@media (max-width: 640px) {
  .bi-consent {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
  }
}
