/* cookie-consent.css */
/* Estilos base (desktop) - banner no canto inferior esquerdo */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9997;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  pointer-events: auto;
  max-width: 90%;
  width: 380px;
  margin: 0 0 16px 16px;
}

#cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  background: #2E4832;
  color: #ffffff;
  padding: 16px 20px;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Botão de fechar (X) */
.cookie-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.cookie-close-btn:hover {
  opacity: 1;
}

body.theme-dark .cookie-banner-content {
  background: #2E4832;
  color: #ffffff;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 24px; /* Espaço para o botão X */
}

.cookie-banner-text strong {
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.4;
}

.cookie-banner-text a {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.85;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.cookie-btn {
  padding: 6px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  cursor: pointer !important;
}

.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cookie-btn-accept {
  background: #ffffff;
  color: #2E4832;
  font-weight: 600;
}

.cookie-btn-accept:hover {
  background: #f0f0f0;
}

/* ESTILOS EXCLUSIVOS PARA MOBILE (centralizado) */
@media (max-width: 640px) {
  #cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    width: auto;
    margin: 0;
    max-width: none;
  }
  
  #cookie-consent-banner.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  .cookie-banner-content {
    position: relative;
    max-width: 90%;
    width: 320px;
    margin: 0 auto;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
  }
  
  .cookie-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
  }
  
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-right: 0;
  }
  
  .cookie-banner-text {
    text-align: center;
  }
  
  .cookie-banner-text strong {
    font-size: 16px;
  }
  
  .cookie-banner-text p {
    font-size: 12px;
  }
  
  .cookie-banner-buttons {
    justify-content: center;
    width: 100%;
    gap: 12px;
  }
  
  .cookie-btn {
    padding: 10px 20px;
    font-size: 14px;
    flex: 1;
    text-align: center;
    border-radius: 40px;
  }
}