/* Gamma Intelligence — cookie consent UI. Palette matches site: navy + amber accent. */
.gi-cc-banner,
.gi-cc-modal { font-family: 'Manrope', Arial, sans-serif; box-sizing: border-box; }
.gi-cc-banner *, .gi-cc-modal * { box-sizing: border-box; }

/* ---- bottom banner ------------------------------------------------------- */
.gi-cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  background: #1e3a5f; color: #f4f7fa;
  padding: 18px 22px;
  box-shadow: 0 -2px 18px rgba(0,0,0,.28);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  line-height: 1.45;
}
.gi-cc-banner__text { flex: 1 1 420px; min-width: 260px; font-size: 14px; }
.gi-cc-banner__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #fff; }
.gi-cc-banner__text p { margin: 0; }
.gi-cc-banner__btns { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- buttons ------------------------------------------------------------- */
.gi-cc-btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; border-radius: 4px; padding: 9px 16px;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.gi-cc-btn--primary   { background: #e08a3c; color: #1e3a5f; border-color: #e08a3c; }
.gi-cc-btn--primary:hover   { background: #f0a055; }
.gi-cc-btn--secondary { background: #fff; color: #1e3a5f; border-color: #fff; }
.gi-cc-btn--secondary:hover { background: #e6edf4; }
.gi-cc-btn--ghost     { background: transparent; color: #f4f7fa; border-color: rgba(244,247,250,.5); }
.gi-cc-btn--ghost:hover     { background: rgba(244,247,250,.12); }

/* ---- modal --------------------------------------------------------------- */
.gi-cc-modal {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(15,28,46,.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gi-cc-modal__box {
  background: #fff; color: #243b53; border-radius: 8px;
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 26px 26px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.gi-cc-modal__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #1e3a5f; }
.gi-cc-modal__intro { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #486581; }

.gi-cc-row { border-top: 1px solid #e2e8f0; padding: 14px 0; }
.gi-cc-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gi-cc-row__title { font-size: 15px; font-weight: 700; color: #1e3a5f; }
.gi-cc-row__desc { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #627d98; }
.gi-cc-row__always { font-size: 12px; font-weight: 600; color: #48bb78; text-transform: uppercase; letter-spacing: .4px; }

.gi-cc-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; justify-content: flex-end; }
.gi-cc-modal__actions .gi-cc-btn--ghost { color: #1e3a5f; border-color: #cbd5e0; }
.gi-cc-modal__actions .gi-cc-btn--ghost:hover { background: #edf2f7; }

/* ---- toggle switch ------------------------------------------------------- */
.gi-cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.gi-cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.gi-cc-switch__slider {
  position: absolute; inset: 0; cursor: pointer; background: #cbd5e0;
  border-radius: 24px; transition: background .15s;
}
.gi-cc-switch__slider:before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.gi-cc-switch input:checked + .gi-cc-switch__slider { background: #e08a3c; }
.gi-cc-switch input:checked + .gi-cc-switch__slider:before { transform: translateX(20px); }
.gi-cc-switch input:focus-visible + .gi-cc-switch__slider { outline: 2px solid #1e3a5f; outline-offset: 2px; }

/* ---- footer re-open link ------------------------------------------------- */
.gi-cc-reopen { background: none; border: none; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-decoration: underline; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  .gi-cc-banner { flex-direction: column; align-items: stretch; padding: 16px; }
  .gi-cc-banner__btns { justify-content: stretch; }
  .gi-cc-banner__btns .gi-cc-btn { flex: 1 1 auto; text-align: center; }
  .gi-cc-modal__actions { justify-content: stretch; }
  .gi-cc-modal__actions .gi-cc-btn { flex: 1 1 auto; }
}
