/* =========================================================
   Consent Mode v2 Cookie Banner
   ABC-RC.pl · XingKe Polska
   ========================================================= */

/* Banner u dołu ekranu */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0b0b0d;
  color: #ededea;
  border-top: 3px solid #ff6a00;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  font-family: 'Manrope', system-ui, sans-serif;
}
.cc-banner.cc-show {
  transform: translateY(0);
}
.cc-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 820px) {
  .cc-banner-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
}
.cc-banner-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #d0cfc9;
}
.cc-banner-text strong {
  color: #fff;
  font-weight: 700;
}
.cc-banner-text a {
  color: #ff6a00;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-banner-text a:hover { color: #ff8a30; }
.cc-banner-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 500px) {
  .cc-banner-buttons {
    width: 100%;
  }
  .cc-banner-buttons button {
    flex: 1;
    min-width: 0;
  }
}

/* Przyciski bannera */
.cc-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cc-btn-primary {
  background: #ff6a00;
  color: #fff;
  border-color: #ff6a00;
}
.cc-btn-primary:hover {
  background: #e65900;
  border-color: #e65900;
}
.cc-btn-ghost {
  background: transparent;
  color: #ededea;
  border-color: rgba(255, 255, 255, 0.3);
}
.cc-btn-ghost:hover {
  border-color: #ededea;
  background: rgba(255, 255, 255, 0.05);
}
.cc-btn-link {
  background: transparent;
  color: #b0b0ad;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-btn-link:hover {
  color: #ededea;
}

/* Modal ustawień */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Manrope', system-ui, sans-serif;
}
.cc-modal.cc-show {
  display: flex;
  animation: cc-fade 0.25s ease;
}
@keyframes cc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cc-modal-dialog {
  background: #fff;
  color: #18181a;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 4px solid #ff6a00;
  position: relative;
}
.cc-modal-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid #e3e0d9;
}
.cc-modal-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin: 0 0 8px 0;
}
.cc-modal-intro {
  color: #3d3d38;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.cc-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #78786f;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.cc-modal-close:hover {
  color: #ff6a00;
}
.cc-modal-body {
  padding: 8px 32px 24px;
}
.cc-category {
  padding: 18px 0;
  border-bottom: 1px solid #ebe9e4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: flex-start;
}
.cc-category:last-child {
  border-bottom: none;
}
.cc-category-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #0a0a0a;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.cc-category-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #3d3d38;
}
.cc-category-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6a00;
  margin-top: 6px;
  display: inline-block;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d4d2ca;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.cc-toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cc-toggle input:checked + .cc-toggle-slider {
  background: #ff6a00;
}
.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(20px);
}
.cc-toggle input:disabled + .cc-toggle-slider {
  background: #a8a69f;
  cursor: not-allowed;
  opacity: 0.6;
}

.cc-modal-footer {
  padding: 20px 32px 28px;
  background: #f4f3ee;
  border-top: 1px solid #e3e0d9;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cc-modal-footer .cc-btn-primary {
  background: #ff6a00;
  color: #fff;
  border-color: #ff6a00;
}
.cc-modal-footer .cc-btn-ghost {
  color: #3d3d38;
  border-color: #d4d2ca;
}
.cc-modal-footer .cc-btn-ghost:hover {
  background: #fff;
  border-color: #ff6a00;
  color: #ff6a00;
}

/* Floating settings button (po zapisaniu preferencji) */
.cc-reopen {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  width: 40px;
  height: 40px;
  background: #0b0b0d;
  color: #fff;
  border: 2px solid #ff6a00;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.cc-reopen.cc-visible {
  display: flex;
}
.cc-reopen:hover {
  background: #ff6a00;
  transform: scale(1.05);
}

/* Mobile tweaks */
@media (max-width: 500px) {
  .cc-modal-header { padding: 22px 22px 14px; }
  .cc-modal-body { padding: 4px 22px 18px; }
  .cc-modal-footer { padding: 16px 22px 22px; }
  .cc-modal-title { font-size: 1.35rem; }
}
