/* ==========================================================================
   MA Search Widget
   ========================================================================== */
/* Main Wrapper */
.jltma-search-wrapper {
  position: relative;
  width: 100%;
}

/* ==========================================================================
   Form Type Styles
   ========================================================================== */
.jltma-search-wrapper-form .jltma-search-form {
  width: 100%;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  position: relative;
  width: 100%;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-form-control {
  border: 1px solid #e6e6e6;
  box-shadow: none;
  flex: 1 1 0;
  height: 50px;
  text-transform: initial;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-form-control:focus {
  border-color: #e6e6e6;
  box-shadow: none;
  outline: 0;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-input-group-append {
  display: flex;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit {
  background: #4b00e7;
  border: 0;
  border-right: 1px solid #e6e6e6;
  color: #fff;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 50px;
  overflow: hidden;
  outline: 0;
  padding: 0 1.5rem;
  text-align: center;
  transition: all 0.25s ease-in-out;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit i,
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit .dashicons {
  font-size: 1.5rem;
  display: unset;
  vertical-align: middle;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit .dashicons {
  line-height: inherit;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit svg {
  vertical-align: middle;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit.jltma-text > span:not(.dashicons) {
  margin-right: 0.5rem;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit:hover {
  opacity: 0.85;
}
.jltma-search-wrapper-form .jltma-search-form .jltma-search-submit:focus {
  outline: 0;
}

/* ==========================================================================
   Icon Popup Type Styles
   ========================================================================== */
.jltma-search-wrapper-icon {
  display: inline-block;
}

/* Main wrap for icon trigger */
.jltma-search-main-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.jltma-search-wrap {
  display: inline-block;
}

/* Search trigger button */
.jltma-btn--search {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25em;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  transition: all 0.25s ease-in-out;
}
.jltma-btn--search:hover {
  opacity: 0.85;
  outline: none;
}
.jltma-btn--search:focus {
  outline: none;
}
.jltma-btn--search i,
.jltma-btn--search .dashicons {
  color: #fff;
  cursor: pointer;
}
.jltma-btn--search .dashicons {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 44px;
  height: 44px;
}
.jltma-btn--search .dashicons::before {
  line-height: 1;
}
.jltma-btn--search svg {
  fill: currentColor;
}

.jltma-btn--hidden {
  pointer-events: none;
  opacity: 0;
}

/* Search overlay container */
.jltma-search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: all 0.4s ease;
}
.jltma-search.search--open {
  opacity: 1;
  pointer-events: auto;
}

/* Full-screen overlay when JS is enabled */
.js .jltma-search {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
}
.js .jltma-search::before {
  content: "";
  background: rgba(40, 43, 47, 0.9);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}
.js .jltma-search.search--open::before {
  opacity: 1;
}

/* Close button */
.jltma-btn--search-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 50px;
  width: 50px;
  padding: 0;
  position: absolute;
  top: 3.25rem;
  left: 1.25rem;
  z-index: 1001;
}
.jltma-btn--search-close .jltma-icon--search {
  width: 50px;
  height: 50px;
}
.jltma-btn--search-close:focus {
  border: 0;
  outline: 0;
}
.jltma-btn--search-close:hover {
  opacity: 0.8;
}

/* Popup search form */
.jltma-search__form {
  margin: 5em 0;
  position: relative;
  width: 75%;
  max-width: 800px;
  z-index: 999;
}

.jltma-search__input {
  background: transparent;
  border: 0;
  border-bottom: 5px solid #fff;
  border-radius: 0;
  color: #fff;
  font-size: 6rem;
  line-height: 1;
  width: 100%;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.jltma-search__input:focus {
  outline: none;
}
.jltma-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.jltma-search__input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.jltma-search__input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.jltma-search__input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.jltma-search__info {
  color: #fdfdfd;
  display: block;
  font-size: 15px;
  font-weight: bold;
  margin: 0 auto;
  padding: 0.85em 0;
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   Transitions
   ========================================================================== */
.js .main-wrap {
  position: relative;
  transition: transform 0.5s;
}

.js .main-wrap--move .jltma-btn--search {
  pointer-events: none;
  opacity: 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media screen and (max-width: 768px) {
  .jltma-search__input {
    font-size: 3rem;
  }
  .jltma-search__form {
    width: 90%;
  }
}
@media screen and (max-width: 480px) {
  .jltma-search__input {
    font-size: 2rem;
    border-bottom-width: 3px;
  }
  .jltma-btn--search-close {
    top: 1.5rem;
    left: 1rem;
    height: 40px;
    width: 40px;
  }
  .jltma-btn--search-close .jltma-icon--search {
    width: 40px;
    height: 40px;
  }
}