/* Estilos para o Banner de Cookies */
#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 15px;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.cookie-text a {
  color: #c9a236;
  text-decoration: none;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons .btn {
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-buttons .btn-primary {
  background-color: #c9a236;
  color: white;
  border: none;
}

.cookie-buttons .btn-primary:hover {
  background-color: #b38d29;
}

.cookie-buttons .btn-outline {
  background-color: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.cookie-buttons .btn-outline:hover {
  background-color: #f5f5f5;
}

/* Estilos para o Modal de Configurações */
#cookieSettingsModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cookie-modal-content {
  background-color: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #333;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cookie-modal-body {
  padding: 20px 25px;
}

.cookie-option {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-option-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-option-header h3 {
  margin: 0 0 0 15px;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #333;
}

.cookie-option p {
  margin: 0 0 0 50px;
  font-size: 14px;
  color: #666;
}

.cookie-modal-footer {
  padding: 15px 25px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Switch de cookies */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: #c9a236;
}

input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

/* Responsividade */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .cookie-option p {
    margin-left: 0;
    margin-top: 10px;
  }

  .cookie-modal-footer {
    flex-direction: column-reverse;
  }

  .cookie-modal-footer .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== DARK MODE STYLES - ADDED 2025-07-26 18:04:21 ===== */
body.dark-mode #cookieConsent {
  background-color: #222;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cookie-text p {
  color: #e0e0e0;
}

body.dark-mode .cookie-text a {
  color: #d5b55d;
}

body.dark-mode .cookie-text a:hover {
  color: #e6c97e;
}

body.dark-mode .cookie-buttons .btn-outline {
  color: #bbb;
  border-color: #444;
}

body.dark-mode .cookie-buttons .btn-outline:hover {
  background-color: #333;
}

body.dark-mode .cookie-modal-content {
  background-color: #222;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cookie-modal-header {
  border-bottom-color: #444;
}

body.dark-mode .cookie-modal-header h2 {
  color: #e0e0e0;
}

body.dark-mode .cookie-modal-close {
  color: #aaa;
}

body.dark-mode .cookie-modal-close:hover {
  color: #fff;
}

body.dark-mode .cookie-option {
  border-bottom-color: #444;
}

body.dark-mode .cookie-option-header h3 {
  color: #e0e0e0;
}

body.dark-mode .cookie-option p {
  color: #aaa;
}

body.dark-mode .cookie-modal-footer {
  border-top-color: #444;
}

body.dark-mode .cookie-slider {
  background-color: #444;
}

body.dark-mode .cookie-slider:before {
  background-color: #ddd;
}

body.dark-mode input:checked + .cookie-slider {
  background-color: #d5b55d;
}

body.dark-mode input:disabled + .cookie-slider {
  opacity: 0.4;
}

body.dark-mode #cookieSettingsModal {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Para garantir que o botão primário mantenha a cor correta em dark mode */
body.dark-mode .cookie-buttons .btn-primary,
body.dark-mode .cookie-modal-footer .btn-primary {
  background-color: #c9a236;
  color: white;
}

body.dark-mode .cookie-buttons .btn-primary:hover,
body.dark-mode .cookie-modal-footer .btn-primary:hover {
  background-color: #b38d29;
}

/* Para garantir que os botões secundários do modal em dark mode fiquem estilizados corretamente */
body.dark-mode .cookie-modal-footer .btn-outline {
  color: #bbb;
  border-color: #444;
  background-color: transparent;
}

body.dark-mode .cookie-modal-footer .btn-outline:hover {
  background-color: #333;
}
