/* compare_promobanner.css */

.cmp-promo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cmp-promo-inner {
  position: relative;
  background: #000;
  border-radius: 12px;
  width: 100%;
  max-width: 800px; /* desktop limit */
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden; 
}

@media (max-width: 420px) {
  .cmp-promo-inner {
    max-width: 95vw; /* scale modal to screen */
    border-radius: 8px;
  }

  .cmp-promo-text {
    padding: 12px 16px;
  }
}

.cmp-promo-inner picture img {
  width: 100%;
  height: auto;
  display: block;
}

.cmp-promo-text {
  padding: 16px 20px;
  text-align: center;
  color: #fff;
}

.cmp-promo-text h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.cmp-promo-text p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.cmp-promo-cta {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: #000;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.cmp-promo-cta:hover {
  background: #eee;
}



.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .cmp-promo-inner {
    max-width: 96vw;
    border-radius: 8px;
  }

  .cmp-promo-text h4 {
    font-size: 17px;
  }

  .cmp-promo-text p {
    font-size: 14px;
  }

  .cmp-promo-cta {
    font-size: 15px;
    padding: 8px 14px;
  }
}
.cmp-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.cmp-promo-close:hover {
  background: rgba(0, 0, 0, 0.9);
}
@media (max-width: 400px) {
  .cmp-promo-modal {
    max-width: 340px;
    padding: 10px;
  }

  .cmp-promo-modal img {
    width: 100%;
    height: auto;
  }

  .cmp-promo-text h4 {
    font-size: 1rem;
  }

  .cmp-promo-text p {
    font-size: 0.85rem;
  }

  .cmp-promo-cta {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .cmp-promo-close {
    top: 6px;
    right: 8px;
    font-size: 1.1rem;
  }
}
#cmp-promo-modal {
  display: none;
}

#cmp-promo-modal.open {
  display: flex;
}