/* Cookie consent banner styles for kiey.com static marketing site. */

.kc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #061d47;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(6, 29, 71, 0.25);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 18px 22px;
}

.kc-banner-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.kc-banner-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #f0f3f9;
  flex: 1 1 280px;
  min-width: 0;
}

.kc-banner-text a {
  color: #29abe2;
  text-decoration: underline;
}

.kc-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kc-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  white-space: nowrap;
}

.kc-btn:hover { transform: translateY(-1px); }

.kc-btn-primary {
  background: linear-gradient(90deg, #29abe2, #1f7fbf);
  color: #fff;
}
.kc-btn-primary:hover { background: linear-gradient(90deg, #1f9bd2, #1670af); }

.kc-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.kc-btn-ghost:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 720px) {
  .kc-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .kc-banner-inner { gap: 10px; }
  .kc-btn { padding: 8px 12px; font-size: 12px; }
}

/* ── Preferences modal ─────────────────────────────────────── */

.kc-prefs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 29, 71, 0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.kc-prefs-modal {
  background: #fff;
  color: #2d2d2d;
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 16px 48px rgba(6, 29, 71, 0.25);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kc-prefs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e4e8f1;
}

.kc-prefs-header h2 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #061d47;
  margin: 0;
}

.kc-prefs-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: #6a7388;
  cursor: pointer;
  padding: 4px 8px;
}

.kc-prefs-body {
  padding: 4px 22px 22px;
}

.kc-prefs-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f0f3f9;
}

.kc-prefs-row:last-child { border-bottom: 0; }

.kc-prefs-row strong {
  color: #061d47;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.kc-prefs-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4d566c;
}

.kc-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.kc-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.kc-toggle span {
  width: 38px;
  height: 22px;
  background: #d3d8e3;
  border-radius: 999px;
  position: relative;
  transition: background .2s ease;
  display: inline-block;
}

.kc-toggle span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.kc-toggle input:checked + span {
  background: #29488d;
}
.kc-toggle input:checked + span::after { transform: translateX(16px); }

.kc-toggle-locked {
  font-size: 12px;
  font-weight: 600;
  color: #8b97b7;
  background: #f0f3f9;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 2px;
}

.kc-prefs-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #e4e8f1;
}

.kc-prefs-footer .kc-btn-ghost {
  background: #f0f3f9;
  color: #29488d;
  border: 0;
}
.kc-prefs-footer .kc-btn-ghost:hover { background: #e4e8f1; }
