/* ============================================
   FAZ SORTE - LGPD / Cookies
   ============================================ */

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10030;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 10px 32px rgba(0,0,0,0.32);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-text {
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.4;
}

.cookie-banner-text a {
  color: var(--accent);
  font-weight: 700;
}

.cookie-banner-actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.cookie-btn--ghost {
  background: var(--surface2);
  color: var(--text);
}

.cookie-btn--primary {
  border-color: rgba(245,197,24,0.45);
  background: linear-gradient(90deg, #f5c518, #ffb300);
  color: #141414;
}

.cookie-pref-fab {
  position: fixed;
  right: 12px;
  bottom: 90px;
  z-index: 10020;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  display: none;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.open {
  display: flex;
}

.cookie-modal-box {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  overflow: hidden;
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-title {
  margin: 0;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.cookie-modal-close {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.cookie-modal-body {
  padding: 0.95rem 1rem;
}

.cookie-modal-copy {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.2rem;
}

.cookie-option input {
  margin-top: 0.2rem;
}

.cookie-option-title {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.cookie-option-desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.cookie-modal-actions {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (min-width: 760px) {
  .cookie-banner {
    right: auto;
    width: min(700px, calc(100% - 24px));
  }
}
