/**
 * FLOATING BUTTONS
 * Cookie Banner (inferior esquerdo) e WhatsApp (direita)
 */

/* Cookie Banner - Estilo Nio */
.cookies-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: calc(100% - 40px);
  max-width: 346px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #D8E1D1;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.12);
  z-index: 999999;
  padding: 9px 12px;
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookies-bar.hidden {
  display: none;
}

.cookies-bar__text {
  font-family: 'Degular', sans-serif;
  font-size: 11px;
  color: #333333;
  line-height: 150%;
  margin: 0;
}

.cookies-bar__text a {
  color: #685DA5;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.cookies-bar__text a:hover {
  text-decoration: underline;
}

.cookies-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #685da5;
  color: #FFFFFF;
  font-family: 'Degular', sans-serif;
  font-size: 0.75rem;
  height: 35px;
  padding: 0 15px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.cookies-bar__btn:hover {
  background-color: #28243F;
  transform: scale(1.05);
}

@media screen and (min-width: 620px) {
  .cookies-bar {
    left: 74px;
    bottom: 47px;
    max-width: 425px;
    padding: 16px;
  }
  
  .cookies-bar__text {
    font-size: 0.875rem;
  }
}

@media screen and (min-width: 620px) {
  .cookies-bar {
    left: 74px;
    bottom: 47px;
    max-width: 425px;
    padding: 16px;
  }
  
  .cookies-bar__text {
    font-size: 0.875rem;
  }
}

/* Botão do WhatsApp - Lado Direito */
.whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 999998;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-button:hover {
  background: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Animação de pulse para WhatsApp */
@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

/* Tooltip para WhatsApp */
.floating-tooltip {
  position: absolute;
  left: -130px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: 'Degular', sans-serif;
}

.whatsapp-button:hover .floating-tooltip {
  opacity: 1;
}

@media (max-width: 768px) {
  .floating-tooltip {
    display: none;
  }
  
  .whatsapp-button {
    right: 15px;
    bottom: 15px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-button svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .floating-tooltip {
    display: none;
  }
  
  .whatsapp-button {
    right: 15px;
    bottom: 15px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-button svg {
    width: 28px;
    height: 28px;
  }
}

/* Modal de Política de Privacidade */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  padding: 20px;
}

.privacy-modal.active {
  display: flex;
}

.privacy-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 50px 60px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.privacy-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #E4E4E4;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #333;
}

.privacy-modal-close:hover {
  background: #685DA5;
  color: white;
  transform: rotate(90deg);
}

.privacy-modal-content h1 {
  font-family: 'Degular', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #685DA5;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.privacy-modal-content > p:first-of-type {
  font-family: 'Degular', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
}

.privacy-modal-content h2 {
  font-family: 'Degular', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 36px 0 16px 0;
  line-height: 1.3;
}

.privacy-modal-content h3 {
  font-family: 'Degular', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 28px 0 12px 0;
}

.privacy-modal-content p {
  font-family: 'Degular', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

.privacy-modal-content ul {
  margin: 12px 0 20px 24px;
  padding: 0;
}

.privacy-modal-content li {
  font-family: 'Degular', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 10px;
}

.privacy-modal-content strong {
  color: #333;
  font-weight: 600;
}

.privacy-modal-content a {
  color: #685DA5;
  text-decoration: none;
  font-weight: 600;
}

.privacy-modal-content a:hover {
  text-decoration: underline;
}

/* Scrollbar personalizado */
.privacy-modal-content::-webkit-scrollbar {
  width: 8px;
}

.privacy-modal-content::-webkit-scrollbar-track {
  background: #F5F5F5;
  border-radius: 10px;
}

.privacy-modal-content::-webkit-scrollbar-thumb {
  background: #685DA5;
  border-radius: 10px;
}

.privacy-modal-content::-webkit-scrollbar-thumb:hover {
  background: #6C5CA6;
}

@media (max-width: 768px) {
  .privacy-modal-content {
    padding: 30px 24px;
    max-height: 90vh;
  }
  
  .privacy-modal-content h1 {
    font-size: 28px;
  }
  
  .privacy-modal-content > p:first-of-type {
    font-size: 16px;
    margin-bottom: 28px;
  }
  
  .privacy-modal-content h2 {
    font-size: 20px;
    margin: 28px 0 12px 0;
  }
  
  .privacy-modal-content h3 {
    font-size: 18px;
  }
  
  .privacy-modal-content p,
  .privacy-modal-content li {
    font-size: 14px;
  }
  
  .privacy-modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
