.pisell-sku-detail-modal,
.pisell-sku-detail-drawer {

  // 让 Procedure 的 content 在 modal body 的高度内进行布局，子元素可使用 min-height:0 正常滚动
  .pisell-procedure-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  // Procedure 本体撑满 modal body 高度（否则内部 100% 高度链条断开）
  .pisell-sku-procedure,
  .pisell-procedure {
    height: 100%;
    min-height: 0;
  }

  // 右侧内容区作为 SKUOptionsSelection 的 scroll parent（真正发生滚动的容器）
  .sku-detail-right-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    /**
     * @description
     * 让滚动条不要贴着内容（尤其是 macOS overlay scrollbar 会覆盖内容）
     */
    box-sizing: border-box;
    padding-right: 12px;
    scrollbar-gutter: stable;
  }

  .sku-detail-product-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 4px 4px 16px;
    border-bottom: 1px solid #eaecf0;
  }

  .sku-detail-product-summary__cover {
    display: flex;
    width: 104px;
    height: 104px;
    flex: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f4f7;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .sku-detail-product-summary__cover-text {
    color: #667085;
    font-size: 24px;
    font-weight: 600;
  }

  .sku-detail-product-summary__content {
    min-width: 0;
    flex: 1;
  }

  .sku-detail-product-summary__title {
    display: -webkit-box;
    overflow: hidden;
    color: #101828;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .sku-detail-product-summary__subtitle {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #667085;
    font-size: 14px;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  /**
   * 商品详情完整布局。
   * 紧凑摘要仍由 sku-detail-product-summary 负责；本样式只服务于“商品详情”内容区。
   */
  .sku-detail-product-details {
    padding: 0 4px 8px;
    color: #101828;
  }

  .sku-detail-product-details__cover {
    display: flex;
    width: 100%;
    min-height: 180px;
    max-height: 420px;
    aspect-ratio: 16 / 7;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f4f7;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .sku-detail-product-details__cover-text {
    color: #667085;
    font-size: 42px;
    font-weight: 600;
  }

  .sku-detail-product-details__title {
    margin-top: 20px;
    color: #101828;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    word-break: break-word;
  }

  .sku-detail-product-details__subtitle {
    margin-top: 12px;
    color: #667085;
    font-size: 16px;
    line-height: 24px;
    word-break: break-word;
  }

  .sku-detail-product-details__price {
    margin-top: 12px;
    color: #d92d20;
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
  }

  .sku-detail-product-details__description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
  }

  .sku-detail-product-details__description-title {
    margin-bottom: 12px;
    color: #101828;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }

  /**
   * @description 商品描述（可能为富文本 HTML）展示样式
   * - 约束图片/长文本不溢出容器
   * - 给常见块级元素提供合理间距
   */
  .sku-detail-right-content-detail-description {
    color: #344054;
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;

    .sku-detail-right-content-detail-subtitle {
      margin-bottom: 8px;
    }

    .sku-detail-right-content-detail-description-html {
      p {
        margin: 0 0 8px 0;
      }

      ul,
      ol {
        margin: 0 0 8px 18px;
        padding: 0;
      }

      li {
        margin: 0 0 4px 0;
      }

      a {
        color: #7f56da;
        text-decoration: underline;
        text-underline-offset: 2px;
      }

      img {
        max-width: 100%;
        height: auto;
        display: block;
      }
    }
  }

  // 抽屉宽度较窄时收紧字号和间距，结构与 Kiosk 保持一致而不单独维护另一套 DOM。
  &.pisell-sku-detail-drawer {
    .sku-detail-product-details__cover {
      min-height: 150px;
      aspect-ratio: 16 / 9;
    }

    .sku-detail-product-details__title {
      margin-top: 16px;
      font-size: 22px;
      line-height: 30px;
    }

    .sku-detail-product-details__subtitle {
      margin-top: 8px;
      font-size: 14px;
      line-height: 22px;
    }

    .sku-detail-product-details__price {
      margin-top: 8px;
      font-size: 24px;
      line-height: 32px;
    }

    .sku-detail-product-details__description {
      margin-top: 16px;
      padding-top: 16px;
    }
  }

  // Kiosk 的商品详情图横向居中展示，并限制占用宽度。
  &.pisell-sku-detail--kiosk {
    .sku-detail-product-details__cover {
      width: 100%;
      max-width: 400px;
      min-height: 0;
      max-height: none;
      margin-right: auto;
      margin-left: auto;
      aspect-ratio: 16 / 9;
    }
  }

  .pisell-sku-procedure {
    .pisell-procedure-content {
      padding-top: 0 !important;
      padding-bottom: 0;
      height: 100% !important;
    }
    .pisell-batch-selector {
      padding-top: 0 !important;
    }
    .pisell-product-select__tabs-wrapper {
      padding-top: 0 !important;
    }
    .pisell-lowcode-layout {
      background: #fff!important;
    }
    .pisell-procedure-footer {
      border-top: 1px solid #e8e8e8 !important;
      background: #fff!important;
    }
    .pisell-procedure-sider-content-top{
      height: 100% !important;
    }
  }
  .pisell-lowcode-modal-body {
    border-radius: 16px;
    padding: 0!important;
    gap: 0!important;
  }
  .sku-detail-left-close {
    font-size: 20px;
    color: #7958d3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    margin-left: 100px;
  }

  /**
   * @description Header 左侧返回按钮（非第一步显示） + 第一页占位
   * 第一页必须渲染一个空 div 占位，避免 header 左右布局抖动
   */
  .sku-detail-left-back {
    font-size: 20px;
    color: #7958d3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    margin-right: 100px;
  }

  .sku-detail-left-back-placeholder {
    width: 66px;
    height: 24px;
    margin-right: 100px;
  }

  .product-image {
    width: 100%;
    height: 124px;
    flex-shrink: 0; // 关键：不让 flex 把它压小
    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 {
    display: flex;
    flex-direction: column;
  }

  .sku-detail-loading-panel {
    width: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
  }

  .sku-detail-loading-card {
    width: min(360px, 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .sku-detail-loading-image,
  .sku-detail-loading-line {
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(90deg, #f2f4f7 25%, #eaecf0 37%, #f2f4f7 63%);
    background-size: 400% 100%;
    animation: sku-detail-loading 1.2s ease-in-out infinite;
  }

  .sku-detail-loading-image {
    height: 124px;
  }

  .sku-detail-loading-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sku-detail-loading-line {
    height: 14px;
  }

  .sku-detail-loading-line-title {
    width: 68%;
    height: 18px;
  }

  .sku-detail-loading-line-short {
    width: 42%;
  }

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

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

      .product-name {
        color: #1B1B1B;
        font-size: 14px;
        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 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;

    .quantity-section-title {
      color: #000;
      font-size: 14px;
      font-weight: 600;
    }

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

  .note-section {
    margin-top: 8px;
    color: #7f56da;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 6px;

    .note-label {
      flex-shrink: 0;
    }

    .note-text {
      width: fit-content;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
      word-break: break-word;
    }
  }

  .sku-detail-side-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
  }

  .note-section-right {
    margin-top: 0;
    justify-content: flex-start;
    max-width: 100%;
  }

  .quantity-section-right {
    margin-bottom: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    .quantity-section-title {
      color: #344054;
      font-size: 14px;
      font-weight: 400;
      flex-shrink: 0;
    }
  }

  .selected-specification-section {

    .selected-specification-list,
    .selected-specification-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .selected-specification-group-children {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding-top: 4px;
    }

    .selected-specification-item {
      display: flex;
      align-items: flex-start;
      border-radius: 10px;
      background: #fff;
      border: 1px solid rgba(127, 86, 218, 0.08);
    }

    .selected-specification-item-main {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      width: 100%;
    }

    .selected-specification-item-label {
      color: #344054;
      font-size: 16px;
      line-height: 20px;
      font-weight: 500;
      word-break: break-word;
    }

    .selected-specification-item-meta {
      flex-shrink: 0;
      color: #6941c6;
      font-size: 14px;
      line-height: 18px;
      font-weight: 600;
      white-space: nowrap;
    }

    .selected-specification-item-option,
    .selected-specification-item-variant,
    .selected-specification-item-bundle,
    .selected-specification-group-bundle {
      padding: 4px 5px;
    }

    .selected-specification-item-variant {
      background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
      border-color: rgba(127, 86, 218, 0.14);
    }

    .selected-specification-item-bundle .selected-specification-item-label {
      font-weight: 600;
    }

    .selected-specification-item-option .selected-specification-item-label {
      color: #475467;
    }

    .selected-specification-item-bundleOption .selected-specification-item-label {
      color: #475467;
      font-size: 15px;
    }

    .selected-specification-group-bundle {
      gap: 0;
      border-radius: 10px;
      background: #fff;
      border: 1px solid rgba(127, 86, 218, 0.16);

      .selected-specification-item {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
      }

      .selected-specification-item-bundleOption {
        background: rgba(255, 255, 255, 0.72);
      }

      .selected-specification-group-children {
        border-top: 1px dashed rgba(127, 86, 218, 0.16);
        padding-left: 8px;
      }
    }
  }

  .price-summary-section {
    padding-top: 0;
    flex-shrink: 0;

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

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

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

      &-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: 4px;
      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-confirm-btn {
    width: 200px;
  }

  .sku-detail-content-footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

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

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

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

        .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-side-actions {
    margin-top: 4px;
    flex-shrink: 0;

    .sku-detail-side-actions-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 8px;
    }

    .sku-detail-side-actions-btn {
      flex: 1 1 0;
      min-width: 120px;
      padding: 0 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 44px;
    }

    .sku-detail-side-actions-primary {
      display: flex;
      gap: 8px;

      .sku-detail-side-actions-btn {
        min-width: 0;
      }
    }

    .sku-detail-side-actions-price-btn {
      .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-side-actions-confirm-btn {
      min-width: 140px;
    }
  }

  &.aside-full {
    width: 55% !important;
    // 260423 如果没有sku aside 占满
    .pisell-sku-procedure {
      .pisell-procedure-content {
        display: none;
      }
      .pisell-procedure-sidebar {
        width: 100% !important;
        max-width: 100% !important;
      }
    }

    .sku-detail-side-actions {
      display: flex;
      gap: 8px;

      .sku-detail-side-actions-list,
      .sku-detail-side-actions-primary {
        display: contents;
      }

      .sku-detail-side-actions-btn {
        flex: 1 1 0;
        min-width: 0;
        height: 48px;
      }

      .sku-detail-side-actions-confirm-btn {
        min-width: 0;
      }
    }
  }

  .sku-detail-left {
    padding-left: 14px;
    /**
     * 让左侧内容成为垂直 flex 容器，便于把底部价格汇总“贴底”
     * 前提：父级侧边栏容器具备可用高度（PisellProcedure 内部通常已设置）
     */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .sku-detail-left-top {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 8px;
    gap: 12px;
  }

  .sku-detail-left-bottom {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    margin-top: 4px;
  }
}

.pisell-sku-detail-modal {
  height: 95%;
  max-height: 884px;
 
  &--smallTablet,
  &--tablet {
    width: 95% !important;
    max-height: 95% !important;
  }
}

.pisell-sku-detail-drawer {
  // Drawer 的顶部步骤和底部结算区现在使用 FloatingLayer 的真实
  // Header / Footer 插槽；去掉外层默认间距，继续沿用原 SKU Detail 间距。
  .pisell-lowcode-floating-layer-header,
  .pisell-lowcode-drawer-header {
    display: block;
    min-height: 0;
    padding: 0;

    > .pisell-procedure-header {
      width: 100%;
      box-sizing: border-box;
    }
  }

  .pisell-lowcode-floating-layer-footer,
  .pisell-lowcode-drawer-footer {
    // 保留按钮四周原有的安全间距；中间内容区的白边由 Layout 的
    // 纵向 padding 产生，不能通过删除 Footer 留白来处理。
    padding: 0 8px 8px;
    border-top: 0;
    background: #fff;

    .sku-detail-left {
      height: auto;
    }
  }

  .pisell-lowcode-floating-layer-content,
  .pisell-lowcode-drawer-content {
    height: auto;
    max-height: inherit;
  }

  /**
   * 手机版 H5 开启 Header / Footer 滚动吸附时，FloatingLayer 本身是唯一
   * 的纵向滚动容器。下面只解除 SKU Detail 旧布局里的固定高度和内部滚动，
   * 让 SKU、日期、时间、资源等异步内容按真实高度撑开同一条长列表。
   * Kiosk 没有开启该 FloatingLayer class，因此继续沿用原来的半屏布局。
   */
  .pisell-lowcode-floating-layer-content-auto-hide-header-footer {
    height: 100%;

    > .pisell-lowcode-floating-layer-body,
    > .pisell-lowcode-drawer-body {
      height: auto;
      max-height: none;
      overflow: visible;
    }

    .pisell-sku-procedure,
    .pisell-procedure,
    .pisell-procedure-content,
    .pisell-procedure-body,
    .pisell-procedure-body > .pisell-lowcode-layout,
    .pisell-procedure-body > .ant-layout,
    .sku-detail-selection-flow-scroll-shell,
    .sku-detail-right-content {
      height: auto !important;
      max-height: none;
      flex: 0 0 auto;
    }

    .pisell-procedure-body,
    .pisell-procedure-body > .pisell-lowcode-layout,
    .pisell-procedure-body > .ant-layout,
    .sku-detail-selection-flow-scroll-shell,
    .sku-detail-right-content {
      overflow: visible;
    }
  }

  .pisell-lowcode-floating-layer-body,
  .pisell-lowcode-drawer-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
    padding: 0;
    overflow: hidden;
  }

  .pisell-lowcode-layout-content {
    padding: 0;
  }

  .pisell-procedure--modal .pisell-procedure-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: unset !important;
  }

  .pisell-sku-procedure,
  .pisell-procedure {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: inherit;
    min-height: 0;
  }

  .pisell-procedure-content {
    display: flex;
    height: 100% !important;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    // 实际滚动由内部 .sku-detail-right-content 承担。这里允许横向溢出，
    // 使滚动提示可以跨过布局容器的横向 padding，铺满整个 Drawer。
    overflow: visible;
  }

  .pisell-procedure-body {
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;

    > .pisell-lowcode-layout,
    > .ant-layout {
      min-height: 0;
      flex: 1 1 auto;
      overflow: hidden;
    }
  }

  .pisell-procedure-body {
    .pisell-lowcode-layout {
      gap: 0px !important;
    }

    // Drawer 原本沿用 Procedure 的四向 padding。左右收窄到 8px；上下间距
    // 已分别由真实 Header / Footer 管理，因此中间 Layout 不再重复保留。
    > .pisell-lowcode-layout,
    > .ant-layout {
      // Procedure 默认给 Layout 保留上下 padding。Header / Footer 移到
      // FloatingLayer 插槽后，这两段 padding 会留在可滚动区边缘：顶部
      // 看起来偏下，收起 Footer 后底部还会出现一条白边。
      padding-top: 0;
      padding-bottom: 0;
      padding-right: 8px;
      padding-left: 8px;
    }
  }

  .pisell-procedure-header {
    display: grid;
    // 左右两列保持相同宽度：即使第一步没有 Back、右侧仍有 Close，
    // 中间步骤也会按整个 Drawer 的几何中心对齐，而不是被右侧操作区挤歪。
    // 中间列继续允许收缩，避免较长的 Date & Time 被 Ant Steps 裁掉。
    grid-template-columns:
      minmax(80px, 1fr)
      minmax(0, 480px)
      minmax(80px, 1fr);
    gap: 8px;
    padding: 12px 16px;

    .pisell-procedure-header__left {
      grid-column: 1;
      justify-self: start;
    }

    .pisell-procedure-header__center {
      grid-column: 2;
      justify-self: center;
      width: 100%;
      max-width: 480px;
      min-width: 0;
      padding: 0;
      text-align: center;
    }

    .pisell-procedure-header__right {
      grid-column: 3;
      justify-self: end;
    }

    .pisell-steps-mobile-current {
      justify-content: center;
    }

    .pisell-steps-mobile-current__info {
      align-items: center;
    }

    .pisell-steps-mobile-current__number,
    .pisell-steps-mobile-current__title {
      display: block;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .sku-detail-left-close,
  .sku-detail-left-back,
  .sku-detail-left-back-placeholder {
    margin-left: 0;
    margin-right: 0;
  }

  .sku-detail-left-close,
  .sku-detail-left-back {
    white-space: nowrap;
  }

  .sku-detail-left {
    padding-left: 0;
  }

  .sku-detail-left-top {
    display: none;
  }

  &.aside-full {
    width: 100% !important;

    .sku-detail-left-top {
      display: flex;
    }
  }

  .sku-detail-right-content {
    flex: 1 1 auto;
    // Drawer 外层 Layout 自带左右 8px padding。让真正的滚动容器向外覆盖
    // 这段留白，再把相同间距放回容器内部：普通内容仍按原对齐线展示，
    // 折叠面板的 -8px 满宽分隔条也不会再撑大横向滚动范围。
    margin-right: -8px;
    margin-left: -8px;
    padding-right: 8px;
    padding-left: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    // 隐藏滚动条外观，但保留鼠标滚轮和触摸滚动能力。
    scrollbar-gutter: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }
  }

  .sku-detail-mobile-weighing {
    margin-bottom: 16px;
  }

  .pisell-procedure-sidebar,
  .sku-detail-left {
    flex: 0 0 auto !important;
    height: auto !important;
  }

  .sku-detail-left-bottom {
    margin-top: 4px;
  }
}

// 手机与 Kiosk 共用 phone Drawer：备注、取消、确认统一排列在同一行。
.pisell-sku-detail-drawer {
  .pisell-lowcode-floating-layer-footer,
  .pisell-lowcode-drawer-footer {
    .sku-detail-side-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      gap: 8px;

      .sku-detail-side-actions-list,
      .sku-detail-side-actions-primary {
        display: contents;
      }

      .sku-detail-side-actions-cancel-btn {
        order: 1;
      }

      .sku-detail-side-actions-note-btn {
        order: 2;
      }

      .sku-detail-side-actions-confirm-btn {
        order: 3;
      }

      .sku-detail-side-actions-note-btn,
      .sku-detail-side-actions-cancel-btn,
      .sku-detail-side-actions-confirm-btn {
        min-width: 0;
        flex: 1 1 0;
      }

      // 若页面同时开放手动改价，仍将其放在第二行，保证三个主要按钮
      // 的触控宽度稳定。
      .sku-detail-side-actions-price-btn {
        order: 4;
        flex: 1 0 100%;
      }
    }
  }
}

// 价格调整覆盖层样式 - 现在通过 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; // 确保键盘在遮罩之上
}

.sku-detail-right-content-detail-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #667085;

  p {
    margin: 0;
    text-align: center;
    font-size: 16px;
  }
}

@keyframes sku-detail-loading {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}
