/*----------------------------------------------------------------------------------------------------
General styling
----------------------------------------------------------------------------------------------------*/
@-webkit-keyframes fstAnimationEnter {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -1em, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}

@-moz-keyframes fstAnimationEnter {
  from {
    opacity: 0;
    -moz-transform: translate3d(0, -1em, 0);
  }

  to {
    opacity: 1;
    -moz-transform: translate3d(0, 0, 0);
  }
}

@keyframes fstAnimationEnter {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -1em, 0);
    -moz-transform: translate3d(0, -1em, 0);
    -ms-transform: translate3d(0, -1em, 0);
    -o-transform: translate3d(0, -1em, 0);
    transform: translate3d(0, -1em, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}


.fstElement {
  /* display: inline-block; */
  position: relative;
  border: 1px solid var(--akaya-gris-oscuro);
  box-sizing: border-box;
  /* color: var(--akaya-gris-oscuro); */
  font-size: 0.9rem;
  background-color: transparent;
  border-radius: 4px;
}

.fstElement:hover{
  border: 2px solid var(--akaya-morado);
}

.fstElement:active {
  border: 1px solid var(--akaya-morado);
  color: var(--akaya-gris-oscuro);
}
.fstElement:focus {
  border: 1px solid var(--akaya-morado);
  color: var(--akaya-gris-oscuro);
}

.fstElement>select,
.fstElement>input {
  position: absolute;
  left: -999em;
}

.fstToggleBtn {
  font-family: "CircularStd-Book";
  font-size: 12pt;
  display: block;
  position: relative;
  box-sizing: border-box;
  padding: 10px;
  min-width: 14.28571em;
  cursor: pointer;
  /* color: var(--akaya-gris-oscuro); */
  position: relative;
  appearance: none; /* Quitar el estilo del selector por defecto */
}

.fstNoneSelected{
  color: var(--akaya-gris-oscuro);
}


.fstToggleBtn:after {
  content: "\f078"; /* Flecha hacia abajo */
  font-family: 'Font Awesome 6 Pro';
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6c757d;
}

/* Cambia el icono cuando .fstElement tiene la clase `focused` */
.fstElement.fstActive .fstToggleBtn:after {
  content: "\f077"; /* Flecha hacia arriba */
  font-family: 'Font Awesome 6 Pro';
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--akaya-morado);

}

.fstElement.fstActive .fstToggleBtn {
  color: var(--akaya-gris-oscuro);

}

.fstQueryInput {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  outline: none;
  box-sizing: border-box;
  background: transparent;
  border: 0;
}

.fstResults {
  position: absolute;
  left: -1px;
  top: 100%;
  right: -1px;
  max-height: 30em;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--akaya-gris-oscuro);
  border-top: 0;
  background-color: #FFF;
  display: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}


.fstResultItem {
  font-size: 0.9rem;
  display: block;
  padding: 8px 14px;
  margin: 0;
  cursor: pointer;
  border-top: 1px solid #fff;
}



.fstResultItem.fstUserOption {
  color: #707070;
}

.fstResultItem.fstFocused {
  color: var(--akaya-rojo);
  /* background-color: var(--akaya-rojo); */
  /* border-color: var(--akaya-rojo); */
}

.fstResultItem:active {
  color: var(--akaya-blanco);
  background-color: var(--akaya-rojo);
  border-color: var(--akaya-rojo);
}

.fstResultItem.fstSelected {
  color: var(--akaya-negro);
  background-color: var(--akaya-gris-medio);
  /* border-color: var(--akaya-rojo); */
  padding: 8px 14px;
}

.fstGroupTitle {
  font-size: 0.9rem;
  display: block;
  padding: 0.5em 0.71429em;
  margin: 0;
  font-weight: bold;
}

.fstGroup {
  padding-top: 1em;
}

.fstGroup:first-child {
  padding-top: 0;
}

.fstNoResults {
  font-size: 0.9rem;
  display: block;
  padding: var(--rem-4);
  margin: 0;
  color: var(--akaya-gris-oscuro);
}



/*----------------------------------------------------------------------------------------------------
Single Mode
----------------------------------------------------------------------------------------------------*/
.fstSingleMode .fstControls {
  position: absolute;
  left: -1px;
  right: -1px;
  top: 100%;
  padding: 0.5em;
  border: 1px solid #D7D7D7;
  background-color: #fff;
  display: none;
  color: var(--akaya-negro);
}
.fstSingleMode .fstQueryInput:focus{
  border: 1px solid var(--akaya-morado);
}
.fstSingleMode .fstQueryInput {
  font-size: 0.9rem;
  display: block;
  width: 100%;
  padding: 8px 14px;
  color: var(--akaya-negro);
  border: 1px solid #D7D7D7;
  border-radius: 4px;
}

.fstSingleMode.fstActive {
  z-index: 100;
  border: 2px solid var(--akaya-morado);
  color: var(--akaya-gris-oscuro);
}

.fstSingleMode.fstActive.fstElement,
.fstSingleMode.fstActive .fstControls,
.fstSingleMode.fstActive .fstResults {
  box-shadow: 0 0.2em 0.2em rgba(0, 0, 0, 0.1);
}

.fstSingleMode.fstActive .fstControls {
  display: block;
  margin-top: 8px;
  /* border-radius: 4px; */
  border-left-color: var(--akaya-gris-oscuro);
  border-right-color: var(--akaya-gris-oscuro);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-top-color: var(--akaya-gris-oscuro);
  border-bottom-color: var(--akaya-gris-dark);
 
}

.fstSingleMode.fstActive .fstResults {
  display: block;
  z-index: 10;
  margin-top: 1px;
}

/*----------------------------------------------------------------------------------------------------
Multiple mode
----------------------------------------------------------------------------------------------------*/
.fstChoiceItem {
  display: inline-block;
  font-size: 0.9rem;
  position: relative;
  margin: 0 0.41667em 0.41667em 0;
  padding:4px 20px 4px 8px;
  float: left;
  border-radius: 0.25em;
  border: 1px solid var(--akaya-rojo);
  cursor: auto;
  color: #fff;
  background-color: var(--akaya-rojo);
  -webkit-animation: fstAnimationEnter 0.2s;
  -moz-animation: fstAnimationEnter 0.2s;
  animation: fstAnimationEnter 0.2s;
}

.fstChoiceItem.mod1 {
  background-color: #F9F9F9;
  border: 1px solid #D7D7D7;
  color: #232323;
}

.fstChoiceItem.mod1>.fstChoiceRemove {
  color: #a4a4a4;
}

.fstChoiceRemove {
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  font-size: 1.16667em;
  position: absolute;
  /* left: 0; */
  right: 0;
  top: 50%;
  width: 1.28571em;
  line-height: 1.28571em;
  margin-top: -0.64286em;
  text-align: center;
  color: #fff;
}

.fstChoiceRemove::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.fstMultipleMode .fstControls {
  box-sizing: border-box;
  padding: 0.5em 0.5em 0em 0.5em;
  overflow: hidden;
  /* width: 20em; */
  cursor: text;
}

.fstMultipleMode .fstQueryInput {
  font-size: 0.9rem;
  float: left;
  padding: 0.28571em 0;
  margin: 0 0 0.35714em 0;
  width: 2em;
  color: #999;
}

.fstMultipleMode .fstQueryInputExpanded {
  float: none;
  width: 100%;
  padding: 0.28571em 0.35714em;
}

.fstMultipleMode .fstFakeInput {
  font-size: 0.9rem;
}

.fstMultipleMode.fstActive,
.fstMultipleMode.fstActive .fstResults {
  box-shadow: 0 0.2em 0.2em rgba(0, 0, 0, 0.1);
}

.fstMultipleMode.fstActive .fstResults {
  display: block;
  z-index: 10;
  border-top: 1px solid #D7D7D7;
}