/*
 * ============================================================
 *  FOCALIZZE — cookie-consent.css
 *  Popup de consentimento de cookies (glassmorphism)
 *  Compartilhado por todas as páginas do site.
 *  Depende dos design tokens definidos em style.css (:root)
 * ============================================================
 */

.cookie-consent {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 300;
  max-width: 760px;
  margin: 0 auto;

  background: rgba(45, 45, 45, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(200, 169, 110, 0.22);
  border-radius: 14px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.2);

  padding: 1.5rem 1.75rem;

  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-consent-text {
  min-width: 0;
}

.cookie-consent-title {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.cookie-consent-desc {
  font-family: var(--sans);
  font-size: 0.81rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 540px;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.15rem;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
  background: transparent;
}

.cookie-btn-link {
  color: var(--text-dim);
  padding-left: 0;
  padding-right: 0;
}

.cookie-btn-link:hover,
.cookie-btn-link:focus-visible {
  color: var(--gold);
}

.cookie-btn-decline {
  color: var(--text-secondary);
  border-color: var(--border);
}

.cookie-btn-decline:hover,
.cookie-btn-decline:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.cookie-btn-accept {
  color: var(--bg-base);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ══════════════════════════════════════════
   RESPONSIVIDADE
══════════════════════════════════════════ */
@media (max-width: 760px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
  }

  .cookie-consent-desc {
    max-width: none;
  }

  .cookie-consent-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1.25rem 1.35rem;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-btn-link {
    flex: 0 0 100%;
    text-align: left;
    order: 3;
    margin-top: 0.25rem;
  }
}
