/* Fideliza Cliente — Cookie banner + modal (CSS puro, sem dependências) */
:root {
  --fc-navy: #1B3A6B;
  --fc-blue: #2B7BC8;
  --fc-blue-dark: #2368B0;
  --fc-border: #D9E6F2;
  --fc-text: rgba(255, 255, 255, 0.85);
  --fc-card-text: #0F1C2E;
  --fc-muted: #4A5568;
  --fc-bg: #FFFFFF;
  --fc-soft: #F4F7FB;
  --fc-radius-md: 12px;
  --fc-radius-lg: 14px;
  --fc-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fc-font-heading: "Syne", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.fc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--fc-navy);
  color: var(--fc-text);
  border-radius: 12px 12px 0 0;
  padding: 1.5rem 2rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  animation: fcSlideUp 0.4s ease forwards;
  font-family: var(--fc-font-body);
}

@keyframes fcSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.fc-cookie-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .fc-cookie-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
  }
}

.fc-cookie-text {
  font-size: 0.98rem;
  line-height: 1.6;
}
.fc-cookie-text strong {
  color: #fff;
  font-weight: 700;
}
.fc-cookie-text a {
  color: var(--fc-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fc-cookie-text a:hover { color: #fff; }

.fc-cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 520px) {
  .fc-cookie-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .fc-cookie-actions { justify-content: flex-end; }
}

.fc-btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: var(--fc-radius-md);
  padding: 0.7rem 1.05rem;
  font-family: var(--fc-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  width: 100%;
}
@media (min-width: 520px) {
  .fc-btn { width: auto; }
}

.fc-btn:focus-visible {
  outline: 3px solid rgba(43, 123, 200, 0.35);
  outline-offset: 3px;
}

.fc-btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.fc-btn-outline-white:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.fc-btn-outline-blue {
  background: transparent;
  border-color: var(--fc-blue);
  color: var(--fc-blue);
}
.fc-btn-outline-blue:hover { background: rgba(43, 123, 200, 0.12); transform: translateY(-1px); }

.fc-btn-primary {
  background: var(--fc-blue);
  border-color: var(--fc-blue);
  color: #fff;
}
.fc-btn-primary:hover { background: var(--fc-blue-dark); border-color: var(--fc-blue-dark); transform: translateY(-1px); }

/* Modal */
.fc-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: none;
  padding: 1.25rem;
}
.fc-cookie-overlay.is-open { display: grid; place-items: center; }

.fc-cookie-modal {
  width: 100%;
  max-width: 480px;
  background: var(--fc-bg);
  border-radius: var(--fc-radius-lg);
  padding: 2rem;
  border: 1px solid var(--fc-border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  font-family: var(--fc-font-body);
  color: var(--fc-card-text);
  position: relative;
}
.fc-cookie-modal h2 {
  margin: 0 0 0.5rem;
  font-family: var(--fc-font-heading);
  font-weight: 800;
  color: var(--fc-navy);
  letter-spacing: -0.02em;
  font-size: 1.45rem;
}
.fc-cookie-modal p {
  margin: 0 0 1.25rem;
  color: var(--fc-muted);
  line-height: 1.6;
}

.fc-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--fc-border);
  background: #fff;
  color: var(--fc-navy);
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.fc-modal-close:hover { background: var(--fc-soft); transform: translateY(-1px); }
.fc-modal-close:focus-visible { outline: 3px solid rgba(27, 58, 107, 0.28); outline-offset: 3px; }

.fc-cookie-cats {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.fc-cat {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-md);
  padding: 0.95rem 1rem;
  background: var(--fc-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
}
.fc-cat strong { display: block; color: var(--fc-navy); margin-bottom: 0.15rem; }
.fc-cat span { display: block; color: var(--fc-muted); font-size: 0.95rem; line-height: 1.5; }

.fc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  user-select: none;
}

.fc-switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(27, 58, 107, 0.18);
  border: 1px solid var(--fc-border);
  position: relative;
  flex-shrink: 0;
}
.fc-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  transform: translateY(-50%);
  transition: left 0.15s ease, background 0.15s ease;
}

.fc-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.fc-toggle input:focus-visible + .fc-switch {
  outline: 3px solid rgba(43, 123, 200, 0.35);
  outline-offset: 3px;
}
.fc-toggle input:checked + .fc-switch {
  background: rgba(43, 123, 200, 0.28);
  border-color: rgba(43, 123, 200, 0.35);
}
.fc-toggle input:checked + .fc-switch::after { left: 21px; background: #fff; }

.fc-toggle input:disabled + .fc-switch {
  opacity: 0.65;
  cursor: not-allowed;
}

.fc-modal-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
@media (min-width: 520px) {
  .fc-modal-actions { grid-template-columns: 1fr 1fr; }
}

.fc-btn-navy {
  background: var(--fc-navy);
  border-color: var(--fc-navy);
  color: #fff;
}
.fc-btn-navy:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(27,58,107,0.25); }

.fc-cookie-hidden { display: none !important; }

