/**
 * Developed by Natiboo <info@natiboo.es>
 *
 * @license https://www.gnu.org/licenses/agpl-3.0.en.html GNU AFFERO GENERAL PUBLIC LICENSE
 * @link http://natiboo.es
 */
.search-popup {
  position: fixed;
  display: none; /* Changed via JS to flex */
  padding: 20px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgb(255 255 255 / 98%);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.search-popup.is-active {
  display: flex;
  opacity: 1;
}

.search-popup__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  transform: translateY(-20px);
  transition: transform 0.3s ease-out;
}

.search-popup.is-active .search-popup__content {
  transform: translateY(0);
}

.search-popup__close {
  position: absolute;
  padding: 10px;
  font-size: 50px;
  color: #004d80;
  top: -100px; /* Relative to content or fixed */
  right: 0;
  background: none;
  border: none;
  line-height: 1;
  cursor: pointer;
}

.search-popup__close span {
  font-size: 60px;
}

@media (max-width: 768px) {
  .search-popup__close {
    top: -60px;
    right: -10px;
    font-size: 40px;
  }
}

/* Specific positioning for "top right of screen" as requested */
.search-popup__close-fixed {
  position: fixed;
  display: flex;
  padding: 0;
  width: 32px;
  height: 32px;
  font-size: 32px;
  font-weight: normal;
  color: #000;
  top: 40px;
  right: 40px;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.search-popup__close-fixed span {
  display: block;
  line-height: 1;
}

.search-popup__text {
  margin-bottom: 20px;
}

.search-popup__text p {
  margin: 0;
  font-size: 16px;
  color: #898989;
  line-height: 1.4;
}

.search-popup__form {
  position: relative;
  width: 100%;
}

.search-popup__form .form-item-s {
  margin-bottom: 0;
}

.search-popup__form input[type='search'],
.search-popup__form input[type='text'] {
  padding: 10px 40px 10px 0;
  width: 100%;
  font-size: 32px;
  color: #333;
  border: none;
  border-bottom: 2px solid #c4d600;
  background: transparent;
  outline: none;
}

.search-popup__submit-icon {
  position: absolute;
  right: 0;
  bottom: 15px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.search-popup__submit-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(43%) sepia(91%) saturate(2329%)
    hue-rotate(177deg) brightness(91%) contrast(101%);
}

.search-popup__clear {
  position: absolute;
  display: none !important;
  padding: 0;
  font-size: 24px;
  color: #898989;
  right: 40px;
  bottom: 15px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.search-popup__clear:hover {
  color: #000;
}

@media (max-width: 768px) {
  .search-popup__form input[type='search'],
  .search-popup__form input[type='text'] {
    padding: 10px 60px 10px 0;
    font-size: 20px;
  }

  .search-popup__clear {
    right: 35px;
    bottom: 10px;
  }

  .search-popup__submit-icon {
    bottom: 10px;
  }
}

.search-popup__form .form-submit {
  display: none;
}

body.search-popup-open {
  overflow: hidden;
}
