/* POPUP */

.evo-displayer-popup {
  position: fixed !important;
  z-index: 9999 !important;
  background: #f5f5f5;
  padding: 1em !important;
  border: 1px solid black;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  left: 50% !important;
  width: 90% !important;
}

#evo-displayer-popup-close {
  font-weight: bold;
  cursor: pointer;
  display: block;
  max-width: 50px;
  position: absolute;
  z-index: 1;
  top: 1em;
  left: 1em;
}

#evo-displayer-popup-close {
  color: transparent;
  background-image: url('/profiles/evo/modules/custom/evo_displayer/assets/close-button.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#evo-displayer-popup-close:hover {
  opacity: 0.8;
}

#evo-displayer-background-dim {
  display: block;
  width: 100vw;
  background: rgb(0, 0, 0) none repeat scroll 0% 0%;
  opacity: 0;
  height: 100vh;
  position: fixed;
  left: 0;
  right: 0;
  top: 0px;
  bottom: 0;
  overflow: hidden;
  z-index: 9999;
}

#dnda:hover {
  opacity: 0.8;
}

.evo-displayer-popup .card-body {
  margin-top: 0 !important;
  padding-bottom: 0.5rem !important;
}

.evo-displayer-popup .h3 {
  font-weight: bold;
}


/* SLIDEUP */

.evo-displayer-slideup {
  background: #f5f5f5;
  padding: 1em 3em !important;
  position: fixed !important;
  bottom: -150%;
  height: auto !important;
  width: 100% !important;
  left: 0 !important;
  animation-name: slideup;
  animation-delay: 1s;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  margin: 0 !important;
  z-index: 9999 !important;
}

@keyframes slideup {
  0% {
    bottom: -150%;
  }
  100% {
    bottom: 0;
  }
}

@keyframes slidedown {
  0% {
    bottom: 0;
  }
  100% {
    bottom: -150%;
  }
}

#evo-displayer-slideup-close {
  font-weight: bold;
  cursor: pointer;
  display: block;
  max-width: 50px;
}

#evo-displayer-slideup-close:hover {
  opacity: 0.8;
}

form[id*="webform-225"] {
  display: none;
}

.evo-displayer-slideup .h3 {
  font-weight: bold;
}


/* POPUP STYLE 0 */

.evo-displayer-popup-style-0,
.evo-displayer-slideup-style-0 {
  display: none !important;
}


/* POPUP STYLE 1 */

form[id*="webform-225"].evo-displayer-popup-style-1 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 60% !important;
  min-width: 350px !important;
  border: none !important;
}

.evo-displayer-popup-style-1 #edit-opening-text {
  width: 100%;
  text-align: center;
}

.evo-displayer-popup-style-1 .card-header {
  display: none;
}

.evo-displayer-popup-style-1 .card {
  background-color: transparent;
  border: none;
}

.evo-displayer-popup-style-1 .card-body {
  padding: 0;
}

.evo-displayer-popup-style-1 #edit-fieldset-your-information {
  width: 100%;
  margin-bottom: 0 !important;
}

.evo-displayer-popup-style-1 #edit-submit {
  width: 100%;
}

.evo-displayer-popup-style-1 #edit-actions {
  width: 100%;
}

.evo-displayer-popup-style-1 .webform-required {
  position: relative;
  left: 2rem;
  top: -6px;
}

.evo-displayer-popup-style-1 #edit-opening-text {
  margin-bottom: 0;
}


/* POPUP STYLE 2 */

form[id*="webform-225"].evo-displayer-popup-style-2 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 50% !important;
  min-width: 350px !important;
  border: none !important;
}

.evo-displayer-popup-style-2 #edit-opening-text {
  width: 100%;
  text-align: center;
}

.evo-displayer-popup-style-2 .card-header {
  display: none;
}

.evo-displayer-popup-style-2 .card {
  background-color: transparent;
  border: none;
}

.evo-displayer-popup-style-2 .card-body {
  padding: 0;
}

.evo-displayer-popup-style-2 #edit-fieldset-your-information {
  width: 100%;
  margin-bottom: 0 !important;
}

.evo-displayer-popup-style-2 #edit-submit {
  width: 100%;
}

.evo-displayer-popup-style-2 #edit-actions {
  width: 100%;
}

.evo-displayer-popup-style-2 .card-header {
  display: none;
}

.evo-displayer-popup-style-2-title-area {
  text-align: center;
  line-height: 1;
}

.evo-displayer-popup-style-2 #evo-displayer-popup-close {
  position: absolute;
  top: 1em;
  left: 1em;
}

.evo-displayer-popup-style-2 #edit-fieldset-your-information {
  background: transparent;
  border: none;
}

.evo-displayer-popup-style-2 .card-body.fieldset-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}

.evo-displayer-popup-style-2 .card-body.fieldset-wrapper .form-item {
  width: 100%;
  padding: 0;
  margin-bottom: 0.5em;
}

form[id*="webform-225"].evo-displayer-popup-style-2 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.evo-displayer-popup-style-2 #edit-opening-text {
  width: 100%;
  margin-bottom: 0.5em;
}

.evo-displayer-popup-style-2 fieldset {
  width: 80%;
}

.evo-displayer-popup-style-2 #edit-actions {
  width: 100%;
}

.evo-displayer-popup-style-2 label {
  margin-bottom: 0;
}

.evo-displayer-popup-style-2 #edit-submit {
  width: 100%;
}

.evo-displayer-popup-style-2 .webform-required {
  position: relative;
  left: 2rem;
  top: -6px;
}


/* POPUP STYLE 3 */

form[id*="webform-225"].evo-displayer-popup-style-3 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 60% !important;
  min-width: 350px !important;
  border: none !important;
  background: #333 !important;
  color: white !important;
}

.evo-displayer-popup-style-3 #edit-opening-text {
  width: 100%;
  text-align: center;
}

.evo-displayer-popup-style-3 .card-header {
  display: none;
}

.evo-displayer-popup-style-3 .card {
  background-color: transparent;
  border: none;
}

.evo-displayer-popup-style-3 .card-body {
  padding: 0;
}

.evo-displayer-popup-style-3 #edit-fieldset-your-information {
  width: 100%;
  margin-bottom: 0 !important;
}

.evo-displayer-popup-style-3 #edit-submit {
  width: 100%;
}

.evo-displayer-popup-style-3 #edit-actions {
  width: 100%;
}

.evo-displayer-popup-style-3 {
  background: #222;
  color: white;
}

.evo-displayer-popup-style-3 .form-control {
  color: white;
  background-color: black;
  border: none;
}

.evo-displayer-popup-style-3 #evo-displayer-popup-close {
  filter: invert(1);
}

.evo-displayer-popup-style-3 .webform-required {
  position: relative;
  left: 2rem;
  top: -6px;
}

.evo-displayer-popup-style-3 a:link {
  color: #fffb00;
}

.evo-displayer-popup-style-3 .form-required::before {
  color: #fffb00 !important;
}

.evo-displayer-popup-style-3 #edit-opening-text {
  margin-bottom: 0;
}

.evo-displayer-popup-style-3 .h3 {
  color: white;
}


/* POPUP STYLE 4 */

form[id*="webform-225"].evo-displayer-popup-style-4 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 50% !important;
  min-width: 350px !important;
  border: none !important;
  padding: 0 !important;
}

.evo-displayer-popup-style-4 #edit-opening-text {
  width: 100%;
  text-align: center;
}

.evo-displayer-popup-style-4 .card-header {
  display: none;
}

.evo-displayer-popup-style-4 .card {
  background-color: transparent;
  border: none;
}

.evo-displayer-popup-style-4 .card-body {
  padding: 0;
}

.evo-displayer-popup-style-4 #edit-fieldset-your-information {
  width: 100%;
  margin-bottom: 0 !important;
}

.evo-displayer-popup-style-4 #edit-submit {
  width: 100%;
}

.evo-displayer-popup-style-4 #edit-actions {
  width: 100%;
}

.evo-displayer-popup-style-4 .card-header {
  display: none;
}

.evo-displayer-popup-style-4-title-area {
  text-align: center;
  line-height: 1;
}

.evo-displayer-popup-style-4 #evo-displayer-popup-close {
  position: absolute;
  top: 1em;
  left: 1em;
}

.evo-displayer-popup-style-4 #edit-fieldset-your-information {
  background: transparent;
  border: none;
  padding: 1em;
}

.evo-displayer-popup-style-4 .card-body.fieldset-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}

.evo-displayer-popup-style-4 .card-body.fieldset-wrapper .form-item {
  width: 100%;
  padding: 0;
  margin-bottom: 0.5em;
}

form[id*="webform-225"].evo-displayer-popup-style-4 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.evo-displayer-popup-style-4 #edit-opening-text {
  width: 100%;
  margin-bottom: 0.5em;
}

.evo-displayer-popup-style-4 fieldset {
  width: 80%;
}

.evo-displayer-popup-style-4 #edit-actions {
  width: 100%;
}

.evo-displayer-popup-style-4 label {
  margin-bottom: 0;
}

.evo-displayer-popup-style-4 .evo-displayer-popup-image-area {
  width: 100%;
  position: relative;
  margin-bottom: 1em;
}

.evo-displayer-popup-style-4 .evo-displayer-popup-image-area img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.evo-displayer-popup-style-4 #edit-submit {
  width: 50%;
  position: relative;
  left: 50%;
  transform: translatex(-50%);
  margin-bottom: 1em;
}

.evo-displayer-popup-style-4 #evo-displayer-popup-close {
  position: absolute;
  z-index: 3;
  background-color: white;
  width: 30px;
  height: 30px;
  background-size: 15px;
  border-radius: 50%;
  left: -15px;
  top: 5px;
  border: 2px solid #333;
}

.evo-displayer-popup-style-4 #evo-displayer-popup-close {
  height: 30px !important;
  color: transparent !important;
}

.evo-displayer-popup-style-4 .webform-required {
  position: relative;
  left: 1rem;
  top: -6px;
}

.evo-displayer-popup-style-4 details {
  position: relative;
  left: 1rem;
}

.evo-displayer-popup-style-4 #edit-opening-text {
  margin-bottom: 0;
}


/*******************
SLIDEUP STYLES
****************/


/* SLIDEUP STYLE 1 */

.evo-displayer-slideup-style-1 .card-header {
  display: none;
}

.evo-displayer-slideup-style-1-title-area {
  text-align: center;
  line-height: 1;
}

.evo-displayer-slideup-style-1 #evo-displayer-slideup-close {
  position: absolute;
  top: 1em;
  left: 1em;
}

.evo-displayer-slideup-style-1 #edit-fieldset-your-information {
  background: transparent;
  border: none;
}

.evo-displayer-slideup-style-1 .card-body.fieldset-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}

.evo-displayer-slideup-style-1 .card-body.fieldset-wrapper .form-item {
  width: calc(33% - 1em);
  padding: 0;
  margin-bottom: 0;
}

form[id*="webform-225"].evo-displayer-slideup-style-1 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.evo-displayer-slideup-style-1 #edit-opening-text {
  width: 100%;
  margin-bottom: 0;
}

.evo-displayer-slideup-style-1 fieldset {
  width: 80%;
}

.evo-displayer-slideup-style-1 #edit-actions {
  width: 20%;
}

.evo-displayer-slideup-style-1 label {
  margin-bottom: 0;
}

.evo-displayer-slideup-style-1 #edit-submit {
  width: 100%;
}

@media(max-width: 640px) {
  .evo-displayer-slideup-style-1 fieldset {
    width: 100%;
  }
  .evo-displayer-slideup-style-1 #edit-actions {
    width: 100%;
  }
  .evo-displayer-slideup-style-1 .card-body.fieldset-wrapper .form-item {
    width: 100%;
  }
}


/* SLIDEUP STYLE 2 */

.evo-displayer-slideup-style-2 .card-header {
  display: none;
}

.evo-displayer-slideup-style-2-title-area {
  text-align: center;
  line-height: 1;
}

.evo-displayer-slideup-style-2 #evo-displayer-slideup-close {
  position: absolute;
  top: 1em;
  left: 1em;
}

.evo-displayer-slideup-style-2 #edit-fieldset-your-information {
  background: transparent;
  border: none;
}

.evo-displayer-slideup-style-2 .card-body.fieldset-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}

.evo-displayer-slideup-style-2 .card-body.fieldset-wrapper .form-item {
  width: calc(33% - 1em);
  padding: 0;
  margin-bottom: 0;
}

form[id*="webform-225"].evo-displayer-slideup-style-2 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.evo-displayer-slideup-style-2 #edit-opening-text {
  width: 100%;
  margin-bottom: 0;
}

.evo-displayer-slideup-style-2 fieldset {
  width: 80%;
}

.evo-displayer-slideup-style-2 #edit-actions {
  width: 20%;
}

.evo-displayer-slideup-style-2 label {
  margin-bottom: 0;
}

.evo-displayer-slideup-style-2 #edit-submit {
  width: 100%;
}

.evo-displayer-slideup-style-2 #edit-actions {
  position: relative;
  top: -10px;
}

@media(max-width: 640px) {
  .evo-displayer-slideup-style-2 fieldset {
    width: 100%;
  }
  .evo-displayer-slideup-style-2 #edit-actions {
    width: 100%;
  }
  .evo-displayer-slideup-style-2 .card-body.fieldset-wrapper .form-item {
    width: 100%;
  }
}


/** SLIDEUP STYLE 3 **/

.evo-displayer-slideup-style-3 .card-header {
  display: none;
}

.evo-displayer-slideup-style-3-title-area {
  text-align: center;
  line-height: 1;
}

.evo-displayer-slideup-style-3 #evo-displayer-slideup-close {
  position: absolute;
  top: 1em;
  left: 1em;
}

.evo-displayer-slideup-style-3 #edit-fieldset-your-information {
  background: transparent;
  border: none;
}

.evo-displayer-slideup-style-3 .card-body.fieldset-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}

.evo-displayer-slideup-style-3 .card-body.fieldset-wrapper .form-item {
  width: calc(33% - 1em);
  padding: 0;
  margin-bottom: 0;
}

form[id*="webform-225"].evo-displayer-slideup-style-3 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.evo-displayer-slideup-style-3 #edit-opening-text {
  width: 100%;
  margin-bottom: 0;
}

.evo-displayer-slideup-style-3 fieldset {
  width: 80%;
}

.evo-displayer-slideup-style-3 #edit-actions {
  width: 20%;
}

.evo-displayer-slideup-style-3 label {
  margin-bottom: 0;
}

.evo-displayer-slideup-style-3 #edit-submit {
  width: 100%;
}

.evo-displayer-slideup-style-3 {
  background: #222;
  color: #ffffff;
}

.evo-displayer-slideup-style-3 .form-control {
  color: #ffffff;
  background-color: black;
  border: none;
}

.evo-displayer-slideup-style-3 #evo-displayer-slideup-close {
  filter: invert(1);
}

@media(max-width: 640px) {
  .evo-displayer-slideup-style-3 fieldset {
    width: 100%;
  }
  .evo-displayer-slideup-style-3 #edit-actions {
    width: 100%;
  }
  .evo-displayer-slideup-style-3 .card-body.fieldset-wrapper .form-item {
    width: 100%;
  }
}


/* SLIDEUP STYLE 4 */

.evo-displayer-slideup-style-4 .card-header {
  display: none;
}

.evo-displayer-slideup-style-4-title-area {
  text-align: center;
  line-height: 1;
}

.evo-displayer-slideup-style-4 #edit-fieldset-your-information {
  background: transparent;
  border: none;
}

.evo-displayer-slideup-style-4 .card-body.fieldset-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}

.evo-displayer-slideup-style-4 .card-body.fieldset-wrapper .form-item {
  width: calc(33% - 1em);
  padding: 0;
  margin-bottom: 0;
}

form[id*="webform-225"].evo-displayer-slideup-style-4 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.evo-displayer-slideup-style-4 fieldset {
  width: 80%;
  padding-left: 2.5em;
  padding-right: 2.5em;
}

.evo-displayer-slideup-style-4 #edit-actions {
  width: 20%;
}

.evo-displayer-slideup-style-4 label {
  margin-bottom: 0;
}

.evo-displayer-slideup-style-4 .evo-displayer-slideup-image-area img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.evo-displayer-slideup-style-4 .evo-displayer-slideup-image-area {
  width: 20%;
  position: relative;
}

.evo-displayer-slideup-style-4 {
  padding: 0 !important;
}

.evo-displayer-slideup-style-4>#edit-opening-text {
  display: none;
}

.evo-displayer-slideup-style-4>#edit-actions {
  display: none;
}

.evo-displayer-slideup-style-4 .form-control {
  width: 95%;
}

.evo-displayer-slideup-style-4 #edit-submit {
  width: 30%;
  position: relative;
  left: 50%;
  transform: translatex(-52.5%);
  top: 0.5em;
}

.evo-displayer-slideup-style-4 #evo-displayer-slideup-close {
  position: absolute;
  z-index: 3;
  background-color: white;
  width: 30px;
  height: 30px;
  background-size: 15px;
  border-radius: 50%;
  left: auto;
  right: 2em;
  top: 15px;
  border: 2px solid #333;
}

@media(max-width: 980px) {
  .evo-displayer-slideup-style-4 fieldset {
    width: 100%;
  }
  .evo-displayer-slideup-style-4 #edit-actions {
    width: 100%;
  }
  .evo-displayer-slideup-style-4 .card-body.fieldset-wrapper .form-item {
    width: 100%;
  }
  .evo-displayer-slideup-style-4-title-area h3 {
    font-size: 1.2em;
    padding: 0.5em;
    transform: translateY(5px);
  }
  .evo-displayer-slideup-style-4 .evo-displayer-slideup-image-area {
    width: 100%;
    position: relative;
    height: 50px;
  }
  .evo-displayer-slideup-style-4 .evo-displayer-slideup-image-area img {
    width: 100%;
    max-height: 50px;
    object-fit: cover;
  }
  .evo-displayer-slideup-style-4 .form-control {
    width: 100%;
  }
}


/** END SLIDEUP STYLES **/

#edit-slideup-url-image-save-button,
#edit-popup-url-image-save-button {
  margin-left: 0;
  background: #d6f2d6;
  margin-right: 0;
}

.evo-displayer-slideup .btn-primary:hover {
  opacity: 0.8;
}


/** CUSTOM POPUP **/

#evo-displayer-custom-popup #evo-displayer-popup-close {
  max-width: 25px;
  top: -3px;
  left: 3px;
  height: 25px;
}

.evo-displayer-popup .btn-primary:hover {
  opacity: 0.8;
}


/** CLOSE **/

#evo-displayer-slideup-close {
  color: transparent;
  background-image: url('/profiles/evo/modules/custom/evo_displayer/assets/close-button.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/** SETTINGS **/

#dim-slider-val {
  position: relative;
  top: -6px;
  left: 1em;
  font-weight: bold;
  text-align: left;
  display: inline-block;
}
