/* Hide original cookie banner - Target all possible React cookie modals */
#root > div > div[style*="position: fixed"],
#root > div > div[style*="position:fixed"],
div[style*="position: fixed"] div:has(*:contains("Aviso de Cookies")),
div[style*="position: absolute"] div:has(*:contains("Aviso de Cookies")) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* More aggressive hiding for any overlay containing cookie text */
#root div[style*="fixed"] {
  display: none !important;
}

#root div[style*="absolute"][style*="z-index"] {
  display: none !important;
}

/* Custom Cookie Consent Banner Styles */
#custom-cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 220, 240, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#custom-cookie-banner {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  padding: 0;
  text-align: center;
  animation: slideUp 0.4s ease-out;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px 20px 0 0;
}

/* Countdown Timer */
.cookie-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 25px 20px 15px 20px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: 'Open Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1;
  min-width: 45px;
  text-align: center;
}

.countdown-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

.countdown-separator {
  font-size: 28px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 2px;
  padding-bottom: 15px;
}

.cookie-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 30px 25px 30px;
  line-height: 1.5;
}

.discount-highlight {
  color: #ef4444;
  font-weight: 800;
  font-size: 18px;
}

.cookie-accept-btn {
  background: #fbbf24;
  border: 3px solid #f59e0b;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 16px 50px;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 25px;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-accept-btn:hover {
  background: #f59e0b;
  color: #1e3a8a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

.cookie-accept-btn:active {
  transform: translateY(0);
}

/* Insurance Logos Scrolling Banner */
.insurance-logos-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(to right, #f5f5f5, #ffffff, #f5f5f5);
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.insurance-logos-scroll {
  display: flex;
  align-items: center;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.insurance-logos-scroll img {
  height: 40px;
  width: auto;
  margin: 0 25px;
  filter: grayscale(50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.insurance-logos-scroll img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 600px) {
  #custom-cookie-banner {
    max-width: 95%;
  }

  .cookie-countdown {
    margin: 20px 15px 12px 15px;
  }
  
  .countdown-number {
    font-size: 28px;
    min-width: 38px;
  }
  
  .countdown-label {
    font-size: 10px;
  }
  
  .countdown-separator {
    font-size: 24px;
  }

  .cookie-text {
    font-size: 14px;
    margin: 0 20px 20px 20px;
  }

  .cookie-accept-btn {
    padding: 14px 40px;
    font-size: 16px;
  }
  
  .discount-highlight {
    font-size: 17px;
  }

  .insurance-logos-scroll img {
    height: 30px;
    margin: 0 15px;
  }
}
