/**
 * PisellPhone 组件样式
 * 基于 Figma 设计规范，覆盖时使用 pisell-lowcode-xxx
 */

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

  &-error {
    margin-top: 4px;
    font-size: 12px;
    color: #d92d20; // Error/600
    line-height: 1.5;
    animation: pisell-phone-fadeIn 0.3s ease-in-out;
  }

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

  &-flag {
    font-size: 18px;
    line-height: 1;
  }

  &-country-code {
    line-height: 1.5;
  }

  &-clickable {
    transition: color 0.2s ease-in-out;

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

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

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

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