/* ---------------------------------------------------------------------------
   cookie-consent.css - zgoda na cookies CoreTSL (MKM Labs)
   Markup buduje /js/cookie-consent.js.
--------------------------------------------------------------------------- */

.mkm-cc {
  --cc-blue: #2563EB;
  --cc-blue-soft: #3B82F6;
  --cc-panel: #0F172A;
  --cc-panel-soft: #1E293B;
  --cc-border: rgba(255, 255, 255, 0.12);
  --cc-text: #F8FAFC;
  --cc-muted: #94A3B8;
  font-family: var(--ff, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* --- Przeslona ---------------------------------------------------------- */

.mkm-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 10, 16, 0.65);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mkm-cc-overlay.is-visible {
  opacity: 1;
}

.mkm-cc-overlay[hidden] {
  display: none;
}

/* --- Okno --------------------------------------------------------------- */

.mkm-cc-dialog {
  width: min(440px, 100%);
  max-height: min(86dvh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--cc-panel);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
  overflow: hidden;
}

.mkm-cc-overlay.is-visible .mkm-cc-dialog {
  transform: none;
}

.mkm-cc-dialog.is-settings {
  width: min(440px, 100%);
}

.mkm-cc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 0;
  flex: 0 0 auto;
}

.mkm-cc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cc-blue) 0%, #1D4ED8 100%);
  color: #fff;
}

.mkm-cc-mark svg {
  width: 18px;
  height: 18px;
}

.mkm-cc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.25;
  color: #fff;
}

.mkm-cc-body {
  padding: 12px 18px 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mkm-cc-body p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cc-muted);
  text-align: left;
  flex: 0 0 auto;
}

.mkm-cc-body a {
  color: #60A5FA;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mkm-cc-body a:hover {
  color: #93C5FD;
}

/* --- Kategorie ---------------------------------------------------------- */

.mkm-cc-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 4px 0 10px;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.mkm-cc-cats[hidden] {
  display: none;
}

.mkm-cc-cat {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--cc-border);
  border-radius: 0;
}

.mkm-cc-cat:last-child {
  border-bottom: 0;
}

.mkm-cc-cat-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.mkm-cc-cat-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cc-text);
  line-height: 1.3;
  white-space: nowrap;
}

.mkm-cc-cat-desc {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--cc-muted);
}

.mkm-cc-switch {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 24px;
  margin-top: 0;
}

.mkm-cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.mkm-cc-switch input:disabled {
  cursor: not-allowed;
}

.mkm-cc-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #334155;
  border: 1px solid var(--cc-border);
  transition: background 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.mkm-cc-track:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #94A3B8;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mkm-cc-switch input:checked + .mkm-cc-track {
  background: var(--cc-blue);
  border-color: var(--cc-blue);
}

.mkm-cc-switch input:checked + .mkm-cc-track:after {
  transform: translateX(16px);
  background: #fff;
}

.mkm-cc-switch input:disabled:checked + .mkm-cc-track {
  background: #1D4ED8;
  border-color: #1D4ED8;
}

.mkm-cc-switch input:focus-visible + .mkm-cc-track {
  outline: 2px solid var(--cc-blue-soft);
  outline-offset: 2px;
}

/* --- Przyciski ---------------------------------------------------------- */

.mkm-cc-actions {
  display: flex;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--cc-border);
  background: var(--cc-panel);
  flex: 0 0 auto;
}

.mkm-cc-btn {
  flex: 1 1 0;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mkm-cc-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
}

.mkm-cc-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.mkm-cc-btn--primary {
  background: var(--cc-blue);
  color: #fff;
}

.mkm-cc-btn--primary:hover {
  background: var(--cc-blue-soft);
}

.mkm-cc-btn:focus-visible {
  outline: 2px solid var(--cc-blue-soft);
  outline-offset: 2px;
}

/* --- Pastylka po wyborze ------------------------------------------------ */

.mkm-cc-pill {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.mkm-cc-pill:hover,
.mkm-cc-pill:focus-visible {
  opacity: 1;
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.mkm-cc-pill[hidden] {
  display: none;
}

/* --- Waskie ekrany ------------------------------------------------------ */

@media (max-width: 520px) {
  .mkm-cc-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .mkm-cc-dialog {
    max-height: 92dvh;
    border-radius: 16px;
  }

  .mkm-cc-head,
  .mkm-cc-body,
  .mkm-cc-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mkm-cc-actions {
    padding-bottom: 14px;
  }

  .mkm-cc-title {
    font-size: 15px;
  }

  .mkm-cc-btn {
    padding: 10px 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkm-cc-overlay,
  .mkm-cc-dialog {
    transition: none;
  }
}

/* Always ensure navbar is contrasted and glassmorphic on top */




