
/* BANNER DE COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(239, 56, 26, 0.9); /* fundo semi-transparente */
  color: #F9F0D5;
  font-family: var(--font-primary);
  display: flex;
  flex-direction: row;      /* default desktop */
  justify-content: center;  /* centraliza conteúdo horizontalmente */
  align-items: center;
  padding: 16px 24px;
  gap: 24px;                /* espaço entre texto e botão */
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

/* Texto do banner */
.cookie-banner p {
  margin: 0;
  text-align: center;
  line-height: 1.4;
  max-width: 600px; /* evita que o texto fique muito largo */
}

/* Banner visível */
.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner button:hover {
  background-color: #e6d9b0;
}

/* Botão Aceitar cookies */
.cookie-banner button#accept-cookies {
  background-color: #F9F0D5;
  color: #EF381A;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  font-family: var(--font-primary);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-banner button#accept-cookies:hover {
  background-color: #e6d9b0; /* cor ao passar o mouse */
  transform: scale(1.05);    /* leve aumento ao hover */
}

/* MOBILE */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;   /* texto acima do botão */
    gap: 12px;                /* espaço entre texto e botão */
    padding: 12px 16px;
  }

  .cookie-banner p {
    text-align: center;
    font-size: 14px;
  }

  /* Botão menor e centralizado */
  .cookie-banner button#accept-cookies {
    width: auto;              /* largura automática */
    min-width: 120px;         /* largura mínima confortável */
    padding: 8px 20px;        /* mantém bom padding interno */
    text-align: center;
    margin: 0 auto;           /* centraliza horizontalmente */
    display: block;
  }
}

/* Container dos botões */
.cookie-buttons {
  display: flex;
  gap: 12px; /* espaço entre os botões */
  flex-wrap: wrap; /* garante que no mobile fiquem empilhados se necessário */
  justify-content: center;
}

/* Botão Aceitar */
.cookie-banner button#accept-cookies {
  background-color: #F9F0D5;
  color: #EF381A;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  font-family: var(--font-primary);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-banner button#accept-cookies:hover {
  background-color: #e6d9b0;
  transform: scale(1.05);
}

/* Botão Recusar */
.cookie-banner button#decline-cookies {
  background-color: transparent;
  color: #F9F0D5;
  border: 2px solid #F9F0D5;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  font-family: var(--font-primary);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cookie-banner button#decline-cookies:hover {
  background-color: #F9F0D5;
  color: #EF381A;
  transform: scale(1.05);
}

/* MOBILE - botões lado a lado */
@media (max-width: 768px) {
  .cookie-buttons {
    flex-direction: row; /* mantém os botões na horizontal */
    gap: 12px;           /* espaço entre eles */
    justify-content: center; /* centraliza na tela */
  }

  .cookie-banner button#accept-cookies,
  .cookie-banner button#decline-cookies {
    width: auto;         /* largura automática */
    min-width: 100px;    /* largura mínima confortável */
    margin: 0;           /* sem margem extra */
  }
}
