/**
 * PisellEmail 组件样式
 * 基于 Figma 设计规范，与 SingleLineText 设计体系一致
 */

.pisell-email {
  &-edit {
    position: relative;
    width: 100%;
  }

  // 错误提示（与设计体系一致）
  &-edit-error {
    margin-top: 4px;
    font-size: 12px;
    color: #d92d20; // Error/600
    line-height: 1.5;
    animation: pisell-email-fadeIn 0.3s ease-in-out;
  }

  &-read {
    display: inline-flex;
    align-items: center;

    .pisell-lowcode-typography-link {
      cursor: pointer;
      transition: color 0.2s ease-in-out;

      &:hover {
        color: #6d48c4 !important;
      }

      &:active {
        color: #5f3da8 !important;
      }
    }
  }

  &-disabled {
    opacity: 0.4;
    cursor: not-allowed;

    * {
      cursor: not-allowed !important;
    }
  }
}

// AutoComplete 下拉样式
.pisell-email-autocomplete-dropdown {
  .pisell-lowcode-select-item-option-content {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

@keyframes pisell-email-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
