/* assets/cookie-banner.css — MedImpact Advisory GDPR consent banner */
#mia-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--ink, #0f2c30);
  color: #fff;
  padding: 18px 24px;
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}
#mia-cookie-banner[hidden] { display: none; }

.mia-cb-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mia-cb-text { flex: 1 1 360px; }
.mia-cb-title { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.mia-cb-text a { color: var(--teal, #0aa3a3); text-decoration: underline; }
.mia-cb-text p { margin: 0; }

.mia-cb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.mia-cb-accept {
  background: var(--teal, #0aa3a3);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}
.mia-cb-accept:hover { background: var(--teal-d, #088a8a); }
.mia-cb-reject {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}
.mia-cb-reject:hover { border-color: #fff; }
.mia-cb-prefs-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.mia-cb-prefs-toggle:hover { color: #fff; }

#mia-cb-prefs {
  max-width: 1160px;
  margin: 14px auto 0;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 14px;
}
#mia-cb-prefs[hidden] { display: none; }
.mia-cb-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .86rem;
  gap: 12px;
}
.mia-cb-always-on {
  font-size: .78rem;
  color: var(--teal, #0aa3a3);
  font-weight: 700;
  white-space: nowrap;
}
.mia-cb-save {
  margin-top: 14px;
  background: var(--teal, #0aa3a3);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}
.mia-cb-save:hover { background: var(--teal-d, #088a8a); }

/* Lift WhatsApp button when banner is visible */
html.mia-banner-visible #mia-whatsapp-btn {
  bottom: calc(28px + var(--mia-banner-h, 72px));
}

@media (max-width: 640px) {
  #mia-cookie-banner { padding: 14px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
  .mia-cb-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .mia-cb-text { flex: 0 0 auto; }
  .mia-cb-actions { width: 100%; flex-direction: column; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
  .mia-cb-accept,
  .mia-cb-reject { width: 100%; flex: 0 0 auto; text-align: center; white-space: nowrap; }
  .mia-cb-prefs-toggle { align-self: center; padding: 6px 0; }
  html.mia-banner-visible #mia-whatsapp-btn {
    bottom: calc(16px + var(--mia-banner-h, 120px));
  }
}
