/* ===== KS CONSENT - Cookie Banner ===== */
.ks-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}
.ks-cookie-banner.visible { display: flex; pointer-events: all; }
.ks-cookie-box {
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 40px rgba(0,0,0,.18);
  padding: 28px 32px 24px;
  max-width: 860px;
  width: 100%;
  pointer-events: all;
  border-top: 3px solid #E91E8C;
}
.ks-cookie-header { margin-bottom: 20px; }
.ks-cookie-logo { font-size: 28px; margin-bottom: 8px; }
.ks-cookie-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1A1A1A; }
.ks-cookie-desc { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }
.ks-cookie-link { color: #E91E8C; }

/* Przyciski */
.ks-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ks-btn { padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .2s; white-space: nowrap; }
.ks-btn-primary { background: #E91E8C; color: #fff; border-color: #E91E8C; }
.ks-btn-primary:hover { background: #c2185b; border-color: #c2185b; }
.ks-btn-secondary { background: #fff; color: #1A1A1A; border-color: #ddd; }
.ks-btn-secondary:hover { border-color: #1A1A1A; }
.ks-btn-outline { background: transparent; color: #666; border-color: transparent; text-decoration: underline; }
.ks-btn-outline:hover { color: #1A1A1A; }

/* Zaawansowane */
.ks-cookie-advanced { border-top: 1px solid #f0f0f0; padding-top: 20px; margin-top: 4px; }
.ks-cookie-kategoria { margin-bottom: 16px; }
.ks-cookie-kat-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ks-cookie-kat-header strong { display: block; font-size: 14px; margin-bottom: 2px; }
.ks-cookie-kat-header p { font-size: 12px; color: #888; margin: 0; line-height: 1.4; }

/* Toggle switch */
.ks-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; display: block; cursor: pointer; }
.ks-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.ks-toggle-slider { position: absolute; inset: 0; background: #ddd; border-radius: 24px; cursor: pointer; transition: .2s; }
.ks-toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.ks-toggle input:checked + .ks-toggle-slider { background: #E91E8C; }
.ks-toggle input:checked + .ks-toggle-slider::before { transform: translateX(20px); }
.ks-toggle-disabled .ks-toggle-slider { background: #E91E8C; opacity: .7; cursor: not-allowed; }
.ks-toggle-disabled .ks-toggle-slider::before { transform: translateX(20px); }

/* Historia zgód w koncie */
.consent-aktualne { background: #f9f9f9; border-radius: 12px; padding: 20px; }
.consent-ustawienia-siatka { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.consent-ustawienie { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; }
.consent-ustawienie-info strong { display: block; font-size: 14px; }
.consent-ustawienie-info span { font-size: 12px; color: #888; }
.consent-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.consent-badge-aktywny { background: #D1FAE5; color: #065F46; }
.consent-badge-nieaktywny { background: #f0f0f0; color: #666; }
.consent-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.consent-tabela th { text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 2px solid #eee; font-size: 13px; color: #666; }
.consent-tabela td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.consent-tabela .text-center { text-align: center; }

@media (max-width: 600px) {
  .ks-cookie-box { padding: 20px 16px 16px; border-radius: 12px 12px 0 0; }
  .ks-cookie-actions { flex-direction: column; }
  .ks-btn { text-align: center; }
  .consent-ustawienia-siatka { grid-template-columns: 1fr; }
}
