/* ===== COOKIE CONSENT SYSTEM ===== */

/* ---- Banner ---- */
.cb-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.10);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cb-banner.cb-banner--visible {
  transform: translateY(0);
}

.cb-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cb-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,59,43,0.07);
  border-radius: 12px;
}

.cb-banner__text {
  flex: 1;
  min-width: 0;
}

.cb-banner__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.cb-banner__desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 6px;
}

.cb-banner__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--red, #FF3B2B);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.cb-banner__link:hover { opacity: 0.75; }

.cb-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.cb-btn:hover { transform: translateY(-1px); }
.cb-btn:active { transform: translateY(0); }

.cb-btn--primary {
  background: var(--red, #FF3B2B);
  color: #fff;
  border-color: var(--red, #FF3B2B);
}
.cb-btn--primary:hover { background: #e02d1e; border-color: #e02d1e; }

.cb-btn--outline {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}
.cb-btn--outline:hover { border-color: #9ca3af; background: #f9fafb; }

.cb-btn--ghost {
  background: transparent;
  color: #64748b;
  border-color: transparent;
  font-size: 12px;
  padding: 8px 14px;
}
.cb-btn--ghost:hover { color: var(--red, #FF3B2B); }

.cb-btn--danger {
  background: transparent;
  color: #dc2626;
  border-color: #fecaca;
}
.cb-btn--danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

/* ---- Modal ---- */
.cb-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cb-modal.cb-modal--visible {
  opacity: 1;
  pointer-events: all;
}

.cb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.cb-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cb-modal.cb-modal--visible .cb-modal__panel {
  transform: scale(1) translateY(0);
}

.cb-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cb-modal__header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.cb-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.cb-modal__close:hover { background: #fee2e2; color: var(--red, #FF3B2B); }

.cb-modal__body {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
}

/* ---- Category rows ---- */
.cb-category {
  padding: 20px 28px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.cb-category:last-child { border-bottom: none; }
.cb-category:hover { background: #fafafa; }

.cb-category__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cb-category__info h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.cb-category__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

.cb-category__info p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ---- Toggle switch ---- */
.cb-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cb-toggle__slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.25s;
}
.cb-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.cb-toggle input:checked + .cb-toggle__slider { background: var(--red, #FF3B2B); }
.cb-toggle input:checked + .cb-toggle__slider::before { transform: translateX(20px); }

.cb-toggle--disabled {
  cursor: default;
  opacity: 0.6;
}
.cb-toggle--disabled .cb-toggle__slider { background: #6b7280; }

.cb-modal__footer {
  padding: 20px 28px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  background: #fafafa;
}

/* ---- Floating settings button ---- */
.cb-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9990;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  padding: 8px 14px 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
}
.cb-settings-btn.cb-settings-btn--visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.cb-settings-btn:hover {
  border-color: var(--red, #FF3B2B);
  color: var(--red, #FF3B2B);
  box-shadow: 0 4px 16px rgba(255,59,43,0.12);
  transform: scale(1.03);
}
.cb-settings-btn__icon { font-size: 14px; }

/* ---- Toast ---- */
.cb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 11000;
  pointer-events: none;
  white-space: nowrap;
}
.cb-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cb-toast__icon {
  width: 18px;
  height: 18px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .cb-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 20px;
  }
  .cb-banner__actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cb-banner__actions .cb-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  .cb-modal__panel {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
  }
  .cb-modal__header,
  .cb-category,
  .cb-modal__footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cb-modal__footer {
    flex-direction: column-reverse;
  }
  .cb-settings-btn { bottom: 16px; left: 16px; }
}
