/* ============================================================
   PO ARQUITETOS — Cookie Consent Banner Styles
   ============================================================ */

.cc-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 12px 48px rgba(0,0,0,.4);
  z-index: 999999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .92rem;
  line-height: 1.5;
}

.cc-banner h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.cc-banner p {
  margin: 0 0 1rem;
  color: #d4d4d4;
}

.cc-banner a {
  color: #66B2FF;
  text-decoration: underline;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
}

.cc-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
  min-width: 130px;
}

.cc-btn--secondary:hover {
  background: rgba(255,255,255,.08);
}

.cc-btn--primary {
  background: #0066CC;
  border-color: #0066CC;
}

.cc-btn--primary:hover {
  background: #0052a3;
  border-color: #0052a3;
}

/* ── Panel (Configurar) ── */
.cc-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.cc-panel[hidden] { display: none; }

.cc-panel-content {
  background: #fff;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.cc-panel-content h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
}

.cc-panel-content > p {
  color: #555;
  font-size: .92rem;
  margin-bottom: 1.5rem;
}

.cc-category {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.cc-category:last-of-type { border-bottom: 1px solid #eee; margin-bottom: 1.5rem; }

.cc-cat-info strong {
  display: block;
  font-size: .98rem;
  margin-bottom: .25rem;
}

.cc-cat-info small {
  display: block;
  color: #666;
  font-size: .85rem;
  line-height: 1.45;
}

/* Switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: .2s;
  cursor: pointer;
}

.cc-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.cc-switch input:checked + .cc-slider {
  background: #0066CC;
}

.cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
}

.cc-switch input:disabled + .cc-slider {
  background: #0066CC;
  opacity: .5;
  cursor: not-allowed;
}

.cc-panel .cc-actions {
  margin-top: 1rem;
}

.cc-panel .cc-btn {
  color: #1a1a1a;
  border-color: #ddd;
}

.cc-panel .cc-btn--secondary:hover {
  background: #f5f5f5;
}

.cc-panel .cc-btn--primary {
  color: #fff;
  background: #0066CC;
  border-color: #0066CC;
}

.cc-panel .cc-btn--primary:hover {
  background: #0052a3;
  border-color: #0052a3;
}

/* Mobile */
@media (max-width: 540px) {
  .cc-banner { padding: 1.25rem; left: .5rem; right: .5rem; bottom: .5rem; }
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; }
}
