.custom-input-wrapper {
  position: relative;

  display: grid;
  height: 48px;
  padding: 4px 16px;
  align-items: center;
  gap: 12px;
  align-self: stretch;

  border-radius: 8px;
  border: 1px solid var(--Colors-Gray-Gray-100, #cbced2);
  background: var(--Colors-Base-White, #fff);

  :has(.custom-input-toggle:checked) .custom-input-placeholder {
    font-size: 12px;
    font-weight: 500;
    line-height: 16px; /* 133.333% */
  }

  :has(.custom-input-toggle:checked) .custom-input-value {
    display: block;
  }

  &.has-error {
    border-radius: 8px;
    border: 1px solid #ff3939;
    background: var(--Colors-Base-White, #fff);
  }
}

.custom-input-box {
  display: grid;
}

.custom-input-toggle {
  display: none;
}

.custom-input-password-toggle {
  display: none;
}

.custom-input-value {
  all: unset;
  display: none;
  overflow: hidden;
  color: var(--Colors-Base-Black, #17191c);
  text-overflow: ellipsis;
  font-family: Mulish;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;

  &.has-error {
    color: #ff3939;
  }
}

.custom-input-placeholder {
  color: var(--Colors-Gray-Gray-500, #505760);
  font-family: Mulish;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;

  &.has-error {
    color: #ff3939;
  }
}

.custom-input-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  height: 20px;
  width: 20px;

  > svg {
    position: absolute;

    &.clear {
      visibility: hidden;
    }

    &.show {
      visibility: visible;
    }

    &.hide {
      visibility: hidden;
    }
  }
}

.custom-input-error {
  display: flex;
  gap: 8px;
  align-items: center;

  > svg {
    width: 12px;
    height: 12px;
  }

  > span {
    color: #ff3939;
    font-family: Mulish;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
  }
}
