.cookie-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: black; 
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-float:hover {
  background: #a0522d;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cookie-float:active {
  transform: scale(0.95);
}

.cookie-float i {
  animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}


@media (max-width: 768px) {
  .cookie-float {
    left: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .whatsapp-float {
    right: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}


@media (max-width: 480px) {
  .cookie-float,
  .whatsapp-float {
    bottom: 80px; 
  }
}


.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.cookie-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  margin: auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #222;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: #f0f0f0;
  color: #222;
}


.modal-body {
  padding: 2rem;
}

.cookie-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}


.cookie-type {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}


.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle 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: 26px;
}

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

.cookie-toggle input:checked + .cookie-slider {
  background-color: #1a73e8;
}

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

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

.cookie-type .cookie-description {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
}

.cookie-type .cookie-description strong {
  color: #333;
  font-weight: 600;
}

.cookie-type .cookie-description em {
  display: block;
  margin-top: 0.5rem;
  color: #888;
  font-style: italic;
}


.cookie-info-box {
  background: #f0f7ff;
  border-left: 4px solid #1a73e8;
  padding: 1.25rem;
  border-radius: 4px;
}

.cookie-info-box p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

.cookie-info-box p:first-child {
  margin-top: 0;
}

.cookie-info-box p:last-child {
  margin-bottom: 0;
}

.cookie-info-box strong {
  color: #1a73e8;
  font-weight: 600;
}


.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}

.powered-by {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

.footer-buttons {
  display: flex;
  gap: 0.75rem;
}


.cookie-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-close {
  background: #f0f0f0;
  color: #333;
}

.btn-close:hover {
  background: #e0e0e0;
}

.btn-details {
  background: #1a73e8;
  color: white;
}

.btn-details:hover {
  background: #1557b0;
}


@media (max-width: 768px) {
  .cookie-modal {
    padding: 1rem;
  }

  .modal-content {
    max-width: 100%;
    margin: 1rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.25rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .footer-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .powered-by {
    text-align: center;
    order: 2;
  }

  .footer-buttons {
    order: 1;
  }
}

@media (max-width: 480px) {
  .cookie-type {
    padding: 1rem;
  }

  .cookie-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cookie-info-box {
    padding: 1rem;
  }
}