/* ============================================================
   CASHlib — Consent banner + preferences modal (site-wide)
   Self-contained (loads on every page). Brand: blue #014360 / orange #FF9735.
   ============================================================ */
.cl-consent, .cl-consent * { box-sizing: border-box; }

/* ---- Banner ---- */
.cl-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000;
  max-width: 520px; margin: 0 auto;
  background: #fff; color: #082b3a; border: 1px solid #e2ecf1; border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(1, 36, 47, .45);
  padding: 22px 22px 18px; font-family: "Montserrat", system-ui, sans-serif;
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s;
}
.cl-consent.is-open { transform: none; opacity: 1; pointer-events: auto; }
.cl-consent__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #014360; }
.cl-consent__text { font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; color: #516772; }
.cl-consent__text a { color: #014360; text-decoration: underline; }
.cl-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cl-consent__btn { flex: 1 1 auto; border: none; border-radius: 999px; padding: 12px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s, transform .15s; white-space: nowrap; }
.cl-consent__btn:active { transform: translateY(1px); }
.cl-consent__btn--accept { background: #FF9735; color: #011a23; }
.cl-consent__btn--accept:hover { background: #ef861f; }
.cl-consent__btn--reject { background: #f5fafd; color: #014360; }
.cl-consent__btn--reject:hover { background: #ecf5fb; }
.cl-consent__btn--ghost { background: transparent; color: #014360; border: 1.5px solid #e2ecf1; flex: 0 1 auto; }
.cl-consent__btn--ghost:hover { border-color: #014360; }

/* ---- Preferences modal ---- */
.cl-consent-modal {
  position: fixed; inset: 0; z-index: 9001; display: none; align-items: center; justify-content: center;
  background: rgba(1, 36, 47, .55); backdrop-filter: blur(4px); padding: 18px;
  font-family: "Montserrat", system-ui, sans-serif;
}
.cl-consent-modal.is-open { display: flex; }
.cl-consent-modal__panel { background: #fff; color: #082b3a; border-radius: 20px; max-width: 560px; width: 100%;
  max-height: 88vh; overflow: auto; padding: 26px; box-shadow: 0 40px 80px -30px rgba(1, 36, 47, .5); }
.cl-consent-modal__title { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: #014360; }
.cl-consent-modal__intro { font-size: 13.5px; color: #516772; line-height: 1.55; margin: 0 0 18px; }
.cl-consent-modal__intro a { color: #014360; text-decoration: underline; }

.cl-consent-cat { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #eef4f8; }
.cl-consent-cat__body { flex: 1; }
.cl-consent-cat__name { font-size: 15px; font-weight: 700; color: #082b3a; }
.cl-consent-cat__desc { font-size: 13px; color: #516772; line-height: 1.5; margin-top: 4px; }
.cl-consent-cat__always { font-size: 12.5px; font-weight: 700; color: #014360; white-space: nowrap; padding-top: 2px; }

/* toggle */
.cl-switch { position: relative; width: 44px; height: 26px; flex: none; }
.cl-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cl-switch__track { position: absolute; inset: 0; background: #cfdde5; border-radius: 999px; transition: background .2s; }
.cl-switch__track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff;
  border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(1, 36, 47, .3); }
.cl-switch input:checked + .cl-switch__track { background: #FF9735; }
.cl-switch input:checked + .cl-switch__track::before { transform: translateX(18px); }
.cl-switch input:focus-visible + .cl-switch__track { outline: 3px solid #FF9735; outline-offset: 2px; }

.cl-consent-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cl-consent-modal__actions .cl-consent__btn { flex: 1 1 auto; }

@media (max-width: 560px) {
  .cl-consent { left: 10px; right: 10px; bottom: 10px; }
  .cl-consent__actions { flex-direction: column; }
  .cl-consent__btn { width: 100%; }
}
