.pisell-hdl-kiosk {
  .hdl-customization-screen {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #303948;
  }

  .hdl-customization-hero {
    display: grid;
    flex: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 13px;
    background: #d9dee7;
  }

  .hdl-customization-product,
  .hdl-customization-weight {
    overflow: hidden;
    border: 1px solid #d0d5dd;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 17px 37px rgba(17, 24, 39, 0.08);
  }

  .hdl-customization-product {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .hdl-customization-product__media {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    flex: none;
    overflow: hidden;
    background: #330c0a;
  }

  .hdl-customization-product__media img,
  .hdl-customization-product__media svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hdl-customization-product__copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-width: 0;
    padding: 15px 22px 17px;
    background: linear-gradient(#e5c0c0dd, #ffffffe0);
  }

  .hdl-customization-product__copy p {
    margin: 0 0 4px;
    color: #667085;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .hdl-customization-product__copy h1 {
    margin: 0;
    color: #111827;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-align-last: right;
  }

  .hdl-customization-product__price {
    display: inline-block;
    margin: 0;
    color: #b20d12;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
  }

  .hdl-customization-product__price small {
    font-size: 1em;
  }

  .hdl-customization-weight {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 11px;
  }

  // Keep the grid row sized by the product card, even with long rich text.
  .hdl-customization-description {
    position: relative;
    min-height: 0;
    padding: 0;
  }

  .hdl-customization-description__content {
    position: absolute;
    inset: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    font-size: 24px;
    line-height: 1.5;

    h2 {
      margin: 0 0 16px;
      font-size: 28px;
    }

    p {
      margin: 0 0 12px;
    }
    > p:last-child {
      margin-bottom: 0;
    }
  }

  .hdl-customization-description__body {
    &,
    * {
      // 商品编辑器可在富文本内指定字体，这里只覆盖字体族。
      font-family: var(--hdl-kiosk-font-family) !important;
      overflow-wrap: anywhere !important;
    }
    // The product editor emits white-space: pre on spans; preserve its line
    // breaks while allowing long ingredient lists to wrap in this column.
    [style*='white-space'],
    pre {
      white-space: pre-wrap !important;
    }
    img,
    video {
      max-width: 100%;
      height: auto;
    }
    table {
      max-width: 100%;
    }
    ul,
    ol {
      padding-left: 1.5em;
    }
    > :last-child {
      margin-bottom: 0;
    }
  }

  .hdl-customization-weight__status {
    display: flex;
    min-height: 54px;
    flex: none;
    align-items: center;
    gap: 12px;
    padding: 0 6px 4px;
  }

  .hdl-customization-weight__dot {
    width: 12px;
    height: 12px;
    flex: none;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
  }

  .hdl-customization-weight__dot.is-stable {
    background: #12b76a;
    box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.16);
  }

  .hdl-customization-weight__dot.is-error {
    background: #f04438;
    box-shadow: 0 0 0 5px rgba(240, 68, 56, 0.16);
  }

  .hdl-customization-weight__status > div {
    min-width: 0;
    flex: 1;
  }

  .hdl-customization-weight__status strong,
  .hdl-customization-weight__status small {
    display: block;
  }

  .hdl-customization-weight__status strong {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
  }

  .hdl-customization-weight__status small {
    margin-top: 2px;
    overflow: hidden;
    color: #667085;
    font-size: 15px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hdl-customization-weight__status > svg {
    width: 26px;
    height: 26px;
    flex: none;
    fill: none;
    stroke: #b20d12;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .hdl-customization-weight dl {
    display: grid;
    min-height: 0;
    flex: 1;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
  }

  .hdl-customization-weight dl > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e1e4ea;
    border-radius: 15px;
    padding: 11px 17px;
    background: #fff;
  }

  .hdl-customization-weight dl > div.is-featured {
    border-color: #b20d12;
    background: linear-gradient(180deg, #b20d12, #8e080d);
    color: #fff;
  }

  .hdl-customization-weight dt {
    color: #667085;
    font-size: 16px;
    font-weight: 400;
  }

  .hdl-customization-weight .is-featured dt {
    color: rgba(255, 255, 255, 0.82);
  }

  .hdl-customization-weight dd {
    margin: 5px 0 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
  }

  .hdl-customization-weight dd small {
    font-size: 1em;
  }

  .hdl-customization-options {
    min-height: 0;
    flex: 1;
    overflow: auto;
    padding: 35px 11px var(--hdl-bottom-bar-clearance);
    scrollbar-width: thin;
  }

  .hdl-customization-options__loading {
    min-height: 194px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 22px;
    padding: 43px;
    color: #fff;
    font-size: 26px;
    font-weight: 400;
  }

  .hdl-customization-options > .hdl-inline-error {
    margin-top: 26px;
  }

  .hdl-customization-skip {
    position: absolute;
    right: 26px;
    bottom: calc(100% + 16px);
    max-width: calc(100% - 52px);
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 10px 24px;
    background: rgba(17, 24, 39, 0.86);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background 160ms, transform 160ms;

    &:focus-visible {
      outline: 3px solid #2563eb;
      outline-offset: 4px;
    }

    &:not(:disabled):hover {
      background: rgba(178, 13, 18, 0.92);
      transform: translateY(-2px);
    }

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

    &:disabled {
      border-color: transparent;
      background: #ebe6e1;
      color: #847b75;
      cursor: not-allowed;
    }

    @media (prefers-reduced-motion: reduce) {
      transition: none;

      &:not(:disabled):hover,
      &:not(:disabled):active {
        transform: none;
      }
    }
  }
}
