/* =============================================================
   cookie.css – modal zgody na cookies
   ============================================================= */

#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}
#cookie-modal.cm-visible { display: flex; opacity: 1; }
#cookie-modal.cm-hiding  { opacity: 0; pointer-events: none; }

/* Overlay */
.cm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(4px);
}

/* Box */
.cm-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 22px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  text-align: center;
  animation: cmSlideUp .28s ease both;
}
@keyframes cmSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Ikona */
.cm-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue-l);
  border-radius: 12px;
  margin-bottom: 14px;
}
.cm-icon-wrap .bi {
  font-size: 22px;
  color: var(--blue);
}

/* Tytuł */
.cm-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

/* Tekst */
.cm-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 16px;
}

/* Tagi kategorii */
.cm-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cm-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 11px;
}
.cm-tag .bi { font-size: 11px; }
.cm-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
  flex-shrink: 0;
}
.cm-tag--always {
  color: var(--green);
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.cm-tag--always .bi { color: var(--green); }

/* Przyciski */
.cm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cm-btn-accept {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.cm-btn-accept:hover { background: var(--blue-d); }

.cm-btn-reject {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s;
  width: 100%;
}
.cm-btn-reject:hover {
  background: var(--blue-l);
}

/* Stopka */
.cm-note {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}
.cm-note a {
  color: #94A3B8;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #CBD5E1;
}
.cm-note a:hover { color: var(--slate); }

/* Mobile */
@media (max-width: 480px) {
  .cm-box { padding: 22px 18px 18px; border-radius: 14px; }
  .cm-title { font-size: 18px; }
  .cm-tags { gap: 6px; }
}
