/* Overlay styles */
#cfth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black */
  z-index: 1099;
  /* Slightly lower than the popup */
  display: none;
  /* Hidden by default */
}

/* Popup styles */
#cfth-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  min-width: 540px;
  max-width: 700px;
  background: #f7f7f7;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 44px 50px;
  z-index: 1100;
  /* Higher than the overlay */
  /* border-bottom-left-radius: 30px; */
  /* border-bottom-right-radius: 30px; */
  border-radius: 30px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

@media only screen and (max-width: 768px) {
  #cfth-popup {
    width: 90%;
    min-width: 340px;
    max-width: 740px;
    gap: 15px;
  }
}

#cfth-popup.show {
  display: flex;
  /* Make it visible when needed */
}

#cfth-popup h2 {
  margin: 0;
  color: #28232A;
  font-family: 'Anek Kannada';
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
}

@media only screen and (max-width: 768px) {
  #cfth-popup h2 {
    font-size: 24px;
  }
}

#cfth-popup p {
  margin: 0;
  color: #292929;
  font-family: Lexend;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.67;
}

@media only screen and (max-width: 768px) {
  #cfth-popup p {
    font-size: 16px;
  }
}

@media only screen and (max-width: 768px) {
  #cfth-popup .cfth-popup-icon {
    max-width: 35px;
    margin-bottom: 15px;
  }
}

@media only screen and (max-width: 768px) {
  #cfth-popup .cfth-popup-file {
    font-size: 16px;
  }
}

#cfth-popup .cfth-close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #E0EFF1;
  border: none;
  color: #0B3562;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-top-right-radius: 30px;
  border-bottom-left-radius: 30px;
  transition: background-color 0.3s ease;
}

#cfth-popup .cfth-close-popup:hover {
  background: var(--wpex-accent-alt);
  color: #fff;
}

/* Reopen button */
#cfth-reopen-popup-btn {
  position: fixed;
  bottom: 20px;
  right: 80px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #E0EFF1;
  /* Background color */
  color: #0b3562;
  /* Text color */
  border: none;
  /* No border */
  border-radius: 50px;
  /* Rounded edges */
  cursor: pointer;
  z-index: 1001;
  /* Above everything else */
  font-size: 16px;
  gap: 10px;
  /* Space between image and text */
  transition: background-color 0.3s ease;
}

@media only screen and (max-width: 768px) {
  #cfth-reopen-popup-btn {
    bottom: 20px;
    left: 20px;
    right: initial;
  }
}

#cfth-reopen-popup-btn:hover {
  background-color: #0b3562;
  color: #E0EFF1;
  /* Darker blue on hover */
}

/* Button image */
#cfth-reopen-popup-btn img {
  max-width: 24px;
  /* Adjust image size */
  height: auto;
  display: inline-block;
}

/* Button text */
#cfth-reopen-popup-btn span {
  font-size: 16px;
  font-weight: 700;
}