.pisell-sku-detail-modal {
  .sku-detail-content {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
  }

  .sku-detail-content-main {
    display: flex;
    flex-direction: row;
    gap: 32px;
  }

  .sku-detail-left {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .product-image {
    width: 220px;
    height: 124px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      background: lightgray 50% / cover no-repeat;
    }

    .product-cover-text {
      width: 100%;
      height: 100%;
      background-color: #dedede;
      color: #747474;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 40px;
      font-weight: 600;
      line-height: 1;
      user-select: none;
    }
  }

  .product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;

    .add-note-btn {
      width: 100%;
      height: 48px;
    }
  }

  .sku-detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .product-info {
    display: flex;
    flex-direction: row;

    .product-info-left {
      flex: 1;
      display: flex;
      flex-direction: column;

      .product-name {
        color: var(--00_Pisell-pp, #7f56da);
        font-size: 20px;
        font-weight: 600;
      }

      .product-spec {
        color: #344054;
        font-size: 14px;
        font-weight: 400;
      }
    }

    .item-price {
      color: #7f56da;
      font-size: 20px;
      font-weight: 600;
      text-align: right;
    }
  }

  .quantity-section {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    span {
      color: #000;
      font-size: 14px;
      font-weight: 600;
    }
  }

  .note-section {
    min-height: 94px;
    margin-top: 8px;
    color: #7f56da;
    font-size: 14px;
    font-weight: 400;

    .note-text {
      margin-top: 16px;
      width: fit-content;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
    }
  }

  .price-summary-section {
    margin-top: 16px;

    .price-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      font-size: 14px;

      div {
        &:first-child {
          color: #344054;
          font-size: 14px;
          font-weight: 400;
        }

        &:last-child {
          color: #344054;
          font-size: 14px;
          font-weight: 600;
        }
      }

      &-danger {
        color: #f04438 !important;
      }

      .price-item-override {
        color: #7f56da;
        font-size: 14px;
        font-weight: 400;
        cursor: pointer;
        // 兼容性更好的下划线解决方案
        text-decoration: none;
        border-bottom: 1px solid #7f56da;
        padding-bottom: 1px;
      }
    }

    .price-item-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 18px;
      font-weight: 600;
      color: #722ed1;
      padding-top: 8px;
      border-top: 1px solid rgba(0, 0, 0, 0.3);

      div {
        &:first-child {
          color: #344054;
          font-size: 16px;
          font-weight: 600;
        }

        &:last-child {
          color: #7f56da;
          font-size: 24px;
          font-weight: 600;
        }
      }

      .price-item-total-gst {
        color: #344054;
        font-size: 14px;
        font-weight: 400;
      }
    }

    .price-divider {
      height: 1px;
      background: #e8e8e8;
      margin: 12px 0;
    }
  }

  .sku-detail-content-footer {
    margin-top: 32px;
    margin-bottom: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    .sku-detail-content-footer-remove-btn {
      width: 120px;
      height: 48px;
    }

    .modal-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;

      .sku-detail-content-footer-price-btn {
        width: 140px;
        height: 48px;

        .sku-detail-content-footer-price-btn-text {
          width: 100%;
          text-align: center;
          // 支持换行显示
          white-space: wrap;
          font-size: 16px;
          font-weight: 400;
          line-height: 20px;
        }
      }

      .sku-detail-content-footer-confirm-btn {
        width: 200px;
        height: 48px;
      }
    }
  }
}

// 价格调整覆盖层样式 - 现在通过 Portal 渲染到 document.body
.pisell-price-adjust-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999; // 由于现在渲染到 document.body，使用更高的 z-index
  display: flex;
  align-items: center;
  justify-content: center;
}

.pisell-price-adjust-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent; // 纯透明遮罩
  cursor: pointer; // 显示点击手势
}

.pisell-price-adjust-container {
  position: relative;
  z-index: 10000; // 确保键盘在遮罩之上
}
