/* ── Consent Mode Banner ─────────────────────────────────── */

.cmw-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
}

.cmw-banner.cmw-visible {
  transform: translateY(0);
}

.cmw-inner {
  background: #0a0d29;
  border-top: 1px solid rgba(219, 240, 89, 0.15);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

/* ── Main view ──────────────────────────────────────────── */

.cmw-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cmw-text {
  flex: 1;
  min-width: 280px;
}

.cmw-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.cmw-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.cmw-desc a {
  color: #dbf059;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cmw-desc a:hover {
  color: #fff;
}

/* ── Buttons ────────────────────────────────────────────── */

.cmw-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cmw-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  line-height: 1.4 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.cmw-btn--primary {
  background: #dbf059;
  color: #0a0d29;
}

.cmw-btn--primary:hover {
  background: #e8f57a;
  box-shadow: 0 0 12px rgba(219, 240, 89, 0.3);
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Odrzuć i Dostosuj — taki sam styl (RODO: równa widoczność) */
.cmw-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cmw-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.cmw-btn--link {
  background: none;
  color: #94a3b8;
  padding: 10px 12px;
}

.cmw-btn--link:hover {
  color: #fff;
}

/* ── Details / Customize view ───────────────────────────── */

.cmw-details .cmw-title {
  margin-bottom: 16px;
}

.cmw-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cmw-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cmw-category:hover {
  border-color: rgba(219, 240, 89, 0.25);
}

.cmw-category--disabled {
  opacity: 0.6;
  cursor: default;
}

.cmw-category--disabled:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.cmw-cat-info {
  flex: 1;
}

.cmw-cat-info strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
}

.cmw-cat-desc {
  font-size: 12px;
  color: #94a3b8;
}

/* ── Toggle switch ──────────────────────────────────────── */

.cmw-category input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cmw-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: background 0.2s;
}

.cmw-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

input:checked + .cmw-toggle {
  background: #dbf059;
}

input:checked + .cmw-toggle::after {
  transform: translateX(20px);
}

.cmw-toggle--locked {
  background: rgba(219, 240, 89, 0.4);
}

.cmw-toggle--locked::after {
  transform: translateX(20px);
}

/* ── Reopen button (cookie icon, bottom-left) ───────────── */

.cmw-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 999998;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a0d29;
  border: 1px solid rgba(219, 240, 89, 0.25);
  color: #dbf059;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.cmw-reopen:hover {
  background: #141b54;
  box-shadow: 0 2px 16px rgba(219, 240, 89, 0.15);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .cmw-inner {
    padding: 16px;
  }

  .cmw-main {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cmw-buttons {
    flex-direction: column;
  }

  .cmw-btn {
    width: 100%;
    text-align: center;
  }

  .cmw-btn--link {
    width: auto;
    align-self: flex-start;
  }

  .cmw-details .cmw-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cmw-details .cmw-btn--link {
    flex: 0;
  }

  .cmw-details .cmw-btn--primary {
    flex: 1;
  }
}
