/* ==========================================================================
   Cookie Consent Banner (LGPD)
   ========================================================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  color: #f1f5f9;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Content container ---------- */

.cookie-consent__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ---------- Text ---------- */

.cookie-consent__text {
  flex: 1 1 400px;
}

.cookie-consent__text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.cookie-consent__link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__link:hover {
  color: #bfdbfe;
}

/* ---------- Action buttons row ---------- */

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Shared button base ---------- */

.cookie-consent__btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

/* Accept / Save — solid blue */
.cookie-consent__btn--accept,
.cookie-consent__btn--save {
  background: #3b82f6;
  color: #fff;
}

.cookie-consent__btn--accept:hover,
.cookie-consent__btn--save:hover {
  background: #2563eb;
}

/* Configure — ghost / outline */
.cookie-consent__btn--config {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid #64748b;
}

.cookie-consent__btn--config:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Options / toggles panel ---------- */

.cookie-consent__options {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #334155;
  align-items: center;
}

/* ---------- Toggle label ---------- */

.cookie-consent__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #e2e8f0;
  cursor: pointer;
  padding: 4px 0;
}

.cookie-consent__toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-consent__toggle input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-consent__toggle span {
  font-weight: 600;
  white-space: nowrap;
}

.cookie-consent__toggle small {
  color: #94a3b8;
  font-size: 0.78rem;
  margin-left: 2px;
}

/* ---------- Responsive: mobile ---------- */

@media (max-width: 640px) {
  .cookie-consent__content {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .cookie-consent__actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-consent__btn {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
  }

  .cookie-consent__options {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__toggle {
    flex-wrap: wrap;
  }

  .cookie-consent__toggle small {
    flex-basis: 100%;
    margin-left: 24px;
  }
}
