/* Banner de Consentimento de Cookies */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fcfcfc;
  color: #000000;
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease-out;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-consent-banner.active {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent-content {
  flex: 1;
  min-width: 250px;
}

.cookie-consent-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-consent-content a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.cookie-consent-content a:hover,
.cookie-consent-content a:focus {
  color: #5dade2;
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.cookie-consent-btn-accept {
  background-color: #27ae60;
  color: white;
}

.cookie-consent-btn-accept:hover,
.cookie-consent-btn-accept:focus {
  background-color: #229954;
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.cookie-consent-btn-accept:active {
  transform: scale(0.98);
}

.cookie-consent-btn-reject {
  background-color: #d84848;
  color: white;
}

.cookie-consent-btn-reject:hover,
.cookie-consent-btn-reject:focus {
  background-color: #b92834;
  outline: 2px solid #a31622;
  outline-offset: 2px;
}

.cookie-consent-btn-reject:active {
  transform: scale(0.98);
}

.cookie-consent-btn-privacy {
  background-color: transparent;
  color: #3498db;
  border: none;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-consent-btn-privacy:hover,
.cookie-consent-btn-privacy:focus {
  color: #5dade2;
  text-decoration: underline;
  outline: 2px solid #3498db;
  outline-offset: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-consent-content {
    min-width: 100%;
  }

  .cookie-consent-buttons {
    width: 100%;
    justify-content: stretch;
    gap: 0.5rem;
  }

  .cookie-consent-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .cookie-consent-content p {
    font-size: 0.9rem;
  }

  .cookie-consent-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Acessibilidade - modo de alto contraste */
@media (prefers-contrast: more) {
  .cookie-consent-banner {
    border: 3px solid #ecf0f1;
  }

  .cookie-consent-btn {
    border-width: 2px;
  }
}

/* Acessibilidade - redução de movimento */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner {
    transition: none;
  }

  .cookie-consent-btn {
    transition: none;
  }
}
