.pisell-kiosk-sale {
  --pisell-kiosk-cart-capsule-width: 95%;
  --pisell-kiosk-cart-capsule-bottom: 60px;
  --pisell-kiosk-cart-capsule-min-height: 76px;
  --pisell-kiosk-cart-capsule-content-gap: 20px;
  --pisell-kiosk-catalog-promotion-reserved-space: 132px;
  --pisell-kiosk-cart-capsule-reserved-space: calc(
    var(--pisell-kiosk-cart-capsule-bottom)
    + var(--pisell-kiosk-cart-capsule-min-height)
    + var(--pisell-kiosk-cart-capsule-content-gap)
  );

  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f2f4f7;
}

// Kiosk 连续加购使用顶部轻提示，避免居中的 Square Toast 遮住商品加减按钮。
.pisell-square-toast-modal.pisell-kiosk-add-to-cart-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  left: 50%;
  width: max-content !important;
  min-width: 0;
  min-height: 0;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding-bottom: 0;
  transform: translateX(-50%);

  .pisell-square-toast {
    min-width: 0;
    max-width: calc(100vw - 32px);
    flex-direction: row;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.92);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
  }

  .pisell-square-toast-icon-wrapper {
    flex: 0 0 auto;
    margin-bottom: 0;

    .pisell-square-toast-icon {
      width: 24px;
      height: 24px;
      font-size: 24px;
    }
  }

  .pisell-square-toast-content {
    min-width: 0;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }

  .sales-sdk-add-toast-wrap {
    display: flex;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 98px);
    align-items: baseline;
    gap: 6px;
    text-align: left;
  }

  .sales-sdk-add-toast-title {
    overflow: hidden;
    min-width: 0;
    margin-bottom: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sales-sdk-add-toast-quantity {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.pisell-kiosk-sale__catalog {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;

  > .pisell-big-sale-product-list-wrapper {
    height: 100%;
    background: #fff;
  }

  .pisell-big-sale-product-list {
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
    border-radius: 0;
    background: #fff;
  }

  // 左侧分类 Header 是 List 横向布局中的 flex item。必须明确限制到商品区高度，
  // 否则分类内容会把 Header 自身撑高，内部 Tabbar 就不会形成可滚动的 overflow。
  .pisell-big-sale-product-list.pisell-list-tabs-left
    > .pisell-list-header--left {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .list-content-vertical {
    box-sizing: border-box;
    padding-bottom: var(--pisell-kiosk-cart-capsule-reserved-space);
    transition: padding-bottom 260ms cubic-bezier(0.22, 1, 0.36, 1);

    .pisell-list-header--top {
      // 分类栏自身已经有垂直 padding，不再额外增加顶部间距，
      // 保持分类内容上、下留白一致。
      padding-top: 0;
    }
  }

  .pisell-big-sale-product-list-search {
    padding: 12px 12px 0;

    .ant-input-affix-wrapper,
    .pisell-lowcode-input-affix-wrapper {
      height: 44px;
      min-height: 44px;
      border-radius: 8px;
      font-size: 14px;
    }
  }

  .list-content-grid {
    .list-items,
    .list-group-items {
      align-content: start;
    }

    .list-item {
      transition: transform 200ms ease;

      &:active {
        transform: scale(0.99);
      }
    }

    @media (hover: none) {
      .list-items .list-item:hover {
        box-shadow: none;
      }
    }
  }

  .pisell-big-sale-product-list--motion-exiting {
    .list-items,
    .pisell-list-empty-state {
      pointer-events: none;
      animation: pisell-kiosk-products-exit 110ms ease-in both;
      will-change: opacity, transform;
    }
  }

  .pisell-big-sale-product-list--motion-entering {
    .list-items,
    .pisell-list-empty-state {
      pointer-events: none;
      animation: pisell-kiosk-products-enter 170ms ease-out both;
      will-change: opacity, transform;
    }
  }

  .pisell-big-sale-product-list-category-title {
    position: sticky;
    z-index: 12;
    top: 0;
    display: flex;
    min-height: 64px;
    align-items: center;
    box-sizing: border-box;
    padding: 12px 64px 12px 20px;
    color: #101828;
    background: #fff;

    h2 {
      overflow: hidden;
      margin: 0;
      font-size: 28px;
      font-weight: 700;
      line-height: 36px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

}

.pisell-kiosk-sale[data-catalog-promotion='visible']
  .pisell-kiosk-sale__catalog
  .list-content-vertical {
  padding-bottom: calc(
    var(--pisell-kiosk-cart-capsule-reserved-space)
    + var(--pisell-kiosk-catalog-promotion-reserved-space)
  );
}

.pisell-kiosk-sale[data-variant='phone'] {
  .pisell-kiosk-sale__catalog .pisell-big-sale-product-list-search {
    position: sticky;
    z-index: 13;
    top: 0;
    height: 56px;
    box-sizing: border-box;
    background: #fff;
    transition:
      opacity 140ms ease,
      transform 160ms ease;
    will-change: opacity, transform;
  }

  .pisell-kiosk-sale__catalog
    .pisell-list-header--top.pisell-list-header-sticky {
    top: 56px;
    transition: top 160ms ease;
  }

  .pisell-kiosk-sale__catalog
    .pisell-big-sale-product-list-wrapper--touch-scrolling
    .pisell-big-sale-product-list-search {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
  }

  .pisell-kiosk-sale__catalog
    .pisell-big-sale-product-list-wrapper--touch-scrolling
    .pisell-list-header--top.pisell-list-header-sticky {
    top: 0;
  }

  .pisell-kiosk-sale__catalog .list-content-vertical {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;

    .pisell-list-header-sticky {
      background: #fff;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .pisell-list-group-title {
      margin: 16px 0 12px;

      &:first-child {
        margin-top: 0;
      }
    }

    .list-group-items:not(:last-child) {
      margin-bottom: 8px;
    }

    .list-group-items {
      row-gap: 4px !important;
    }
  }

  .pisell-kiosk-sale__catalog
    .pisell-plus-sales-product-card__content
    > .pisell-price-text {
    color: var(
      --pisell-sales-product-card-price-color,
      var(--ps-color-text, #1b1b1b)
    );
    font-size: var(--pisell-sales-product-card-price-font-size, 18px);
    font-weight: 500;
    line-height: 28px;

    .pisell-price-text-prefix-text,
    .pisell-price-text-suffix-text {
      font-size: 0.75em !important;
    }
  }
}

// 手机版商品列表滚动时，底部 catalog 胶囊与顶部搜索框同时让出可视区域。
// 只改变视觉和点击状态，不删除原来的底部预留空间；滚动停止后可无跳动恢复。
.pisell-kiosk-sale[data-variant='phone'][data-view='catalog'][data-catalog-scrolling='true']
  .pisell-kiosk-cart-capsule--catalog {
  opacity: 0;
  pointer-events: none;
  translate: 0 calc(100% + 16px);
}

.pisell-kiosk-sale__catalog-promotions {
  position: absolute;
  z-index: 99;
  bottom: calc(
    var(--pisell-kiosk-cart-capsule-bottom)
    + var(--pisell-kiosk-cart-capsule-min-height)
    + 12px
  );
  left: 50%;
  width: var(--pisell-kiosk-cart-capsule-width);
  box-sizing: border-box;
  margin: 0;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transform-origin: bottom center;
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear;

  .pisell-sale-detail,
  .pisell-sale-detail-tmpl-a,
  .pisell-sale-detail-tmpl-body,
  .pisell-sale-detail-tmpl-content,
  .pisell-sale-detail-inline-layout,
  .pisell-sale-detail-main {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #fff;
  }

  .pisell-sale-detail-main {
    display: block;
    flex: none;
    padding: 0;
  }

  .pisell-sale-detail-footer {
    display: none;
  }
}

.pisell-kiosk-sale[data-catalog-promotion='hidden']
  .pisell-kiosk-sale__catalog-promotions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.98);
  transition:
    opacity 160ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 260ms;
}

.pisell-kiosk-sale[data-view='catalog'] .pisell-kiosk-sale__catalog {
  animation: pisell-kiosk-catalog-enter 300ms ease-out both;
}

.pisell-kiosk-sale__screen {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.pisell-kiosk-sale__cart-screen {
  flex-direction: column;
  color: #101828;
  background: #fff;
  animation: pisell-kiosk-cart-enter 320ms
    cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pisell-kiosk-sale__cart-header {
  display: flex;
  min-height: 56px;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(8px, env(safe-area-inset-top)) 24px 8px;
  border-bottom: 1px solid #eaecf0;
  background: #fff;

  h1 {
    margin: 0;
    color: #101828;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
  }
}

.pisell-kiosk-sale__cart-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  // Summary 上方是 main 的 8px 底部内边距加自身 4px 外边距；
  // 这里直接预留同样的 12px，避免继承后已计算的 reserved-space 仍保留 20px。
  padding-bottom: calc(
    var(--pisell-kiosk-cart-capsule-bottom)
    + var(--pisell-kiosk-cart-capsule-min-height)
    + 12px
  );
  background: #fff;

  .pisell-sale-detail,
  .pisell-sale-detail-tmpl-a,
  .pisell-sale-detail-tmpl-body,
  .pisell-sale-detail-main {
    background: #fff;
  }

  .pisell-sale-detail-cart-items__empty {
    color: #101828;
  }

  .pisell-cart-sku-card {
    &__product-footer,
    &__specs,
    &-product-item-discount-reason {
      font-size: 16px;
      line-height: 24px;
    }

    &__footer-discount,
    &__footer-origin-total,
    &__promotion-tag-item {
      font-size: 16px;
      line-height: 24px;
    }
  }

  .pisell-cart-sku-card__basic-info {
    .product-info .product-name {
      display: -webkit-box;
      overflow: hidden;
      white-space: normal;
      text-overflow: ellipsis;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-clamp: 2;
    }

    .product-info .product-name,
    .product-info .product-price {
      font-size: 20px;
      line-height: 28px;
    }
  }

  .pisell-product-card-inline-actions__item--delete {
    min-width: 44px;
    justify-content: flex-end;
    padding-right: 0;

    > div > span:first-child {
      margin-right: 0 !important;
      font-size: 24px !important;
      line-height: 1;
      transform: translateY(-2px);

      .pisell-icon,
      .iconfont {
        font-size: inherit !important;
      }
    }

    > div > span:last-child {
      position: absolute;
      overflow: hidden;
      width: 1px;
      height: 1px;
      padding: 0;
      border: 0;
      margin: -1px;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }
  }

  .pisell-product-card-inline-actions__item:not(
      .pisell-product-card-inline-actions__item--delete
    ) {
    // 普通商品的非删除操作项当前只承载数量选择器。
    // 宽度跟随内容，同时禁止与删除按钮并排时被 flex 压窄。
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding-left: 0;
  }

  .pisell-sale-detail-cart-items__quantity-selector {
    // 根据减号、数量和加号的实际内容计算宽度，不写死具体像素值；
    // 同时禁止 flex 压缩，避免右侧加号被裁切。
    width: max-content;
    flex: 0 0 auto;

    .pisell-number-selector-number {
      font-size: 18px;
    }
  }

  .pisell-sale-detail-cart-items__numeric-stepper {
    &.numeric-stepper-separated {
      grid-template-columns: max-content max-content max-content;
      justify-content: end;
    }

    .numeric-stepper-display {
      font-size: 18px;
    }
  }

  .pisell-sale-detail-amount-details__summary {
    border-bottom: 0;
  }

  .pisell-sale-detail-amount-details__summary-left {
    font-size: 22px;
    line-height: 32px;
  }

  .pisell-sale-detail-amount-details {
    margin-top: 4px;

    .pisell-lowcode__subtotal-item {
      .pisell-lowcode__subtotal-item-label,
      .pisell-lowcode__subtotal-item-value {
        font-size: 18px;
        line-height: 28px;
      }
    }

    .pisell-lowcode__subtotal-item-label {
      > span {
        display: inline-flex;
        align-items: center;
      }

      .pisell-icon,
      .iconfont {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        font-size: 16px;
      }
    }
  }

  .pisell-sale-detail-promotion-wallet-panels,
  .pisell-sale-detail-amount-details {
    width: var(--pisell-kiosk-cart-capsule-width);
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
  }

  .pisell-sale-detail-promotion-wallet-panels {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  .pisell-sale-detail-promotion-wallet-panels__sections {
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px;
    overflow: hidden;
  }

  .pisell-sale-detail-promotion-wallet-panel__banner {
    min-height: 64px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .pisell-sale-detail-promotion-wallet-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;

    &__summary {
      width: calc(100% - 2px);
      margin: 1px;
      border: 1px solid var(--panel-border);
      border-radius: 9px;
      box-shadow: inset 0 0 0 1px rgba(var(--panel-accent-rgb), 0.06);
    }

    &--applied {
      background: #fff;
    }

    &--applied &__summary {
      background:
        linear-gradient(
          90deg,
          var(--panel-applied-bg),
          transparent 66%
        ),
        #fff;
    }

    &--expanded {
      flex: 1 1 auto;
    }

    &__summary,
    &__toolbar {
      flex: none;
    }

    &--expanded &__body {
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
    }

    &__body-inner {
      display: flex;
      min-height: 0;
      flex-direction: column;
      overflow: hidden;
    }

    &__groups {
      min-height: 0;
      flex: 1 1 auto;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;

      &::-webkit-scrollbar {
        display: none;
      }
    }
  }

  .pisell-sale-detail-tmpl-a .pisell-sale-detail-footer {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .pisell-sale-detail-amount-details__details-trigger {
    display: none;
  }

  .pisell-sale-detail-amount-details__divider {
    display: none;
  }
}

.pisell-kiosk-sale__checkout-loading {
  position: absolute;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.48);
}

.pisell-kiosk-sale[data-variant='phone'] {
  .pisell-kiosk-sale__cart-body
    .pisell-sale-detail-amount-details__details-trigger {
    display: flex;
  }

  .pisell-kiosk-sale__cart-body
    .pisell-sale-detail-amount-details__details-icon {
    transform: rotate(180deg);

    &--open {
      transform: rotate(0deg);
    }
  }
}

.pisell-kiosk-sale__success-screen {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px 28px max(40px, env(safe-area-inset-bottom));
  color: #101828;
  background: #fff;
  text-align: center;
  animation: pisell-kiosk-result-screen-enter 320ms ease-out both;

  .payment-result-toast-v2__hero-copy,
  .payment-result-toast-v2__description,
  .payment-result-toast-v2__session,
  .payment-result-toast-v2__actions {
    animation: pisell-kiosk-result-copy-enter 320ms 90ms ease-out both;
  }

  .payment-result-toast-v2__action-btn {
    transition:
      color 220ms ease,
      background-color 220ms ease,
      border-color 220ms ease,
      box-shadow 220ms ease,
      transform 180ms ease;

    &:active:not(:disabled) {
      transform: scale(0.97);
    }
  }

  h1 {
    margin: 28px 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
  }

  p {
    max-width: 560px;
    margin: 0;
    color: #667085;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.5;
  }
}

.pisell-kiosk-sale__success-screen--success {
  .payment-result-toast-v2__hero-check {
    animation: pisell-kiosk-success-icon-enter 480ms
      cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

.pisell-kiosk-sale__success-screen--failure {
  .payment-result-toast-v2__hero-check {
    animation: pisell-kiosk-failure-icon-enter 320ms ease-out both;
  }
}

.pisell-kiosk-sale__failure-icon {
  color: #f04438;
  font-size: clamp(88px, 16vw, 148px);
}

.pisell-kiosk-sale__result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.pisell-kiosk-sale__result-action {
  min-width: 220px;
  height: 52px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
}

// Kiosk 弹窗通过 rootClassName 局部放大操作区，不影响其它业务页面的 Modal。
.pisell-kiosk-modal {
  .pisell-lowcode-floating-layer-close,
  .ant-modal-close {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 22px;
    transition:
      color 220ms ease,
      background-color 220ms ease,
      transform 180ms ease;

    &:active {
      transform: scale(0.95);
    }
  }

  .pisell-lowcode-floating-layer-close {
    right: 8px;
  }

  .pisell-lowcode-floating-layer-close-icon,
  .pisell-lowcode-floating-layer-close-icon::before,
  .pisell-lowcode-floating-layer-close-icon::after {
    width: 22px;
  }

  .pisell-lowcode-floating-layer-close-icon {
    height: 22px;
  }

  .pisell-lowcode-floating-layer-default-footer,
  .pisell-kiosk-modal__actions {
    display: flex;
    width: 100%;
    gap: 12px;
  }

  .pisell-kiosk-modal__button,
  .note-modal-content .action-buttons > .delete-btn,
  .note-modal-content .action-buttons > .confirm-btn {
    width: auto;
    min-width: 0;
    min-height: 56px;
    height: auto;
    flex: 1 1 50%;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 24px;
    transition:
      color 220ms ease,
      background-color 220ms ease,
      border-color 220ms ease,
      box-shadow 220ms ease,
      transform 180ms ease;

    &:active:not(:disabled) {
      transform: scale(0.98);
    }
  }

  .note-modal-content .action-buttons {
    width: 100%;
    gap: 12px;
  }

  .note-modal-content .action-buttons > .delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    .ant-btn-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
  }

  .template-modal-content .template-input-section {
    flex-wrap: wrap;

    .template-input,
    .template-confirm-btn {
      width: 100%;
      flex: 1 1 100%;
    }

    .template-confirm-btn {
      min-height: 56px;
      height: auto;
      padding: 12px 24px;
      border-radius: 999px;
      font-size: 18px;
      line-height: 24px;
    }
  }
}

@keyframes pisell-kiosk-products-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes pisell-kiosk-products-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pisell-kiosk-catalog-enter {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pisell-kiosk-cart-enter {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pisell-kiosk-result-screen-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pisell-kiosk-success-icon-enter {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }

  72% {
    transform: scale(1.06);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pisell-kiosk-failure-icon-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pisell-kiosk-voucher-reminder-modal {
  .ant-modal-content {
    border-radius: 24px;
  }

  .ant-modal-body {
    padding: 10px 12px 18px;
  }

  .pisell-kiosk-modal__actions {
    flex-direction: column;
  }

  .pisell-kiosk-modal__button {
    width: 100%;
    flex: none;
  }
}

.pisell-kiosk-voucher-reminder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 16px;
  text-align: center;
}

.pisell-kiosk-voucher-reminder__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #8b5cf6, #6941c6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(105, 65, 198, 0.24);
  font-size: 34px;
}

.pisell-kiosk-voucher-reminder__title {
  margin: 20px 0 0;
  color: #101828;
  font-size: 26px;
  font-weight: 700;
  line-height: 34px;
}

.pisell-kiosk-voucher-reminder__description {
  max-width: 440px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 17px;
  line-height: 26px;
}

// Confirm 返回首页时，目标页已开始渲染；立即结束旧 Modal 的离场动画，
// 避免 Portal 遮罩继续覆盖在 Home 页面上。普通打开和取消动画保持不变。
.pisell-kiosk-exit-modal--returning {
  .pisell-lowcode-modal-mask,
  .pisell-lowcode-modal,
  .ant-modal-mask,
  .ant-modal {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes pisell-kiosk-result-copy-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pisell-kiosk-sale,
  .pisell-kiosk-modal {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@media (max-width: 560px) {
  .pisell-kiosk-sale {
    // 保持胶囊自身上下内边距对称，将 iPhone/微信安全区用于整体定位。
    --pisell-kiosk-cart-capsule-bottom: max(
      20px,
      env(safe-area-inset-bottom, 0px)
    );
    --pisell-kiosk-cart-capsule-min-height: 64px;
  }

  .pisell-kiosk-sale__cart-body {
    .pisell-cart-sku-card {
      &__product-footer,
      &__specs,
      &-product-item-discount-reason {
        font-size: 16px;
        line-height: 24px;
      }

      &__footer-discount,
      &__footer-origin-total,
      &__promotion-tag-item {
        font-size: 14px;
        line-height: 20px;
      }
    }

    .pisell-cart-sku-card__basic-info {
      .product-info .product-name,
      .product-info .product-price {
        font-size: 16px;
        line-height: 24px;
      }
    }

    .pisell-product-card-inline-actions__item--delete {
      > div > span:first-child {
        font-size: 22px !important;
      }
    }

    .pisell-sale-detail-cart-items__quantity-selector {
      .pisell-number-selector-number {
        font-size: 16px;
      }
    }

    .pisell-sale-detail-cart-items__numeric-stepper {
      .numeric-stepper-display {
        font-size: 16px;
      }
    }

    .pisell-sale-detail-amount-details__summary-left {
      font-size: 18px;
      line-height: 28px;
    }

    .pisell-sale-detail-amount-details {
      .pisell-lowcode__subtotal-item {
        .pisell-lowcode__subtotal-item-label,
        .pisell-lowcode__subtotal-item-value {
          font-size: 16px;
          line-height: 24px;
        }
      }

      .pisell-lowcode__subtotal-item-label {
        .pisell-icon,
        .iconfont {
          font-size: 14px;
        }
      }
    }
  }

  .pisell-kiosk-modal {
    .pisell-kiosk-modal__button,
    .note-modal-content .action-buttons > .delete-btn,
    .note-modal-content .action-buttons > .confirm-btn,
    .template-modal-content .template-confirm-btn {
      min-height: 52px;
      padding-block: 10px;
      font-size: 16px;
      line-height: 22px;
    }
  }

  .pisell-kiosk-note-modal .template-modal-content {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .pisell-kiosk-voucher-reminder__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 30px;
  }

  .pisell-kiosk-voucher-reminder__title {
    margin-top: 16px;
    font-size: 22px;
    line-height: 30px;
  }

  .pisell-kiosk-voucher-reminder__description {
    font-size: 15px;
    line-height: 22px;
  }
}
