/* Base style */
.ibk-textfield {
  width: 100%;
  box-sizing: border-box;
}

.ibk-textfield * { box-sizing: border-box; }

.ibk-textfield__label {
  font-family: var(--fontGeometria);
  font-size: 14px;
  padding-bottom: 5px;
  display: block;
  font-weight: 500;
  color: var(--gray1);
}

.ibk-textfield__subtitle {
  font-family: var(--fontMontserrat);
  color: var(--grayText);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 7px;
  display: block;
}

.ibk-textfield__input {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--gray4);
  border-radius: 4px;
  height: 48px;
  transition: var(--fast);
  /* overflow: hidden; */
  background-color: white;
}

@media screen and (max-width: 360px) {
  .ibk-textfield__input { height: 44px; }
}

.ibk-textfield__input:hover { border-color: var(--gray3); }

.ibk-textfield__value {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  display: block;
  height: 100%;
  padding: 0 15px;
  font-family: var(--fontGeometria);
  font-size: 16px;
  font-weight: 500;
  color: var(--grayText);
  background-color: transparent;
}

.ibk-textfield__value::placeholder {
  color: var(--gray2);
  font-weight: 400;
}

.ibk-textfield__value::-ms-reveal, .ibk-textfield__value::-ms-clear { display: none; }
.ibk-textfield__value::-webkit-outer-spin-button, .ibk-textfield__value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Focus */
.ibk-textfield--focus .ibk-textfield__input {
  border-color: var(--primaryGreen1);
  box-shadow: inset 0 0 0 0.5px var(--primaryGreen1);
}

/* Icons */
.ibk-textfield__trailing-icon {
  padding-right: 15px;
  color: var(--primaryGreen1);
  cursor: text;
}

.ibk-textfield__leading-icon {
  padding-left: 15px;
  color: var(--primaryGreen1);
  cursor: text;
}

.ibk-textfield--erasable .ibk-textfield__trailing-icon { color: var(--gray1); }

.ibk-textfield--password .ibk-textfield__trailing-icon,
.ibk-textfield--erasable .ibk-textfield__trailing-icon { cursor: pointer; }
.ibk-textfield--password .ibk-textfield__trailing-icon:active,
.ibk-textfield--erasable .ibk-textfield__trailing-icon:active { transform: translateY(1px); }

/* Error */
.ibk-textfield--error .ibk-textfield__input { border-color: var(--extendedWatermelon1); }
.ibk-textfield--error.ibk-textfield--focus .ibk-textfield__input { box-shadow: inset 0 0 0 0.5px var(--extendedWatermelon1); }

.ibk-textfield--error .ibk-textfield__trailing-icon,
.ibk-textfield--error .ibk-textfield__leading-icon { color: var(--extendedWatermelon1); }

.ibk-textfield__error-message {
  font-family: var(--fontMontserrat);
  font-size: 12px;
  color: var(--extendedWatermelon1);
  font-weight: 500;
  margin-top: 7px;
  display: block;
  min-height: 15px;
}

/* Disable */
.ibk-textfield--disabled {
  cursor: default;
  pointer-events: none;
}

.ibk-textfield--disabled .ibk-textfield__input {
  background-color: var(--gray5);
}