/* Scalit - Banner de Consentimento de Cookies (LGPD) */

#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: #182e51;
  color: #ffffff;
  padding: 22px 24px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  font-family: "Plus Jakarta Sans", sans-serif;
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
}
#cookie-consent-banner.is-visible {
  transform: translateY(0);
}

.cc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cc-text {
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.6;
  color: #dfe6f2;
  margin: 0;
}
.cc-text strong { color: #ffffff; }
.cc-text a { color: #00c49b; text-decoration: underline; }
.cc-text a:hover { color: #33d1ac; }

.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cc-btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cc-btn:focus-visible { outline: 2px solid #00c49b; outline-offset: 2px; }
.cc-btn-primary {
  background: #00c49b;
  color: #182e51;
}
.cc-btn-primary:hover { background: #33d1ac; }
.cc-btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cc-btn-ghost:hover { border-color: #ffffff; }

/* ---------- Painel de preferências ---------- */
#cookie-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 16, 26, 0.55);
  padding: 20px;
}
#cookie-consent-panel.is-visible { display: flex; }

.cc-panel-card {
  background: #ffffff;
  color: #182e51;
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  padding: 30px 30px 26px;
  max-height: 88vh;
  overflow-y: auto;
}
.cc-panel-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #182e51;
}
.cc-panel-card > p {
  font-size: 14px;
  color: #445375;
  margin: 0 0 22px;
  line-height: 1.6;
}
.cc-panel-card > p a { color: #0e6b56; }

.cc-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #eef0f6;
}
.cc-option:first-of-type { border-top: none; }
.cc-option-text h4 {
  font-size: 14.5px;
  margin: 0 0 4px;
  color: #182e51;
}
.cc-option-text p {
  font-size: 13px;
  color: #6b7686;
  margin: 0;
  line-height: 1.55;
}

/* switch */
.cc-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch .track {
  position: absolute; inset: 0;
  background: #d4dcff;
  border-radius: 999px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.cc-switch .track::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.cc-switch input:checked + .track { background: #00c49b; }
.cc-switch input:checked + .track::before { transform: translateX(18px); }
.cc-switch input:disabled + .track { opacity: 0.55; cursor: not-allowed; }

.cc-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cc-panel-actions .cc-btn-ghost {
  color: #182e51;
  border-color: #d4dcff;
}
.cc-panel-actions .cc-btn-ghost:hover { border-color: #182e51; }

@media (max-width: 575.98px) {
  #cookie-consent-banner { padding: 18px 16px 20px; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 auto; text-align: center; }
}
