/* 摘要資料僅在結帳顯示，其他購物車保留原有內容。 */
.scie-order-summary-details { display: none; }
.wc-block-components-product-details > span:has(+ .scie-order-summary-details) > span[aria-hidden="true"] {
    display: none;
}

/* 購物車只保留選購資訊，不顯示商品介紹摘錄。 */
.wc-block-cart-items .wc-block-components-product-metadata__description {
    display: none !important;
}
/* 茶種、SKU、重量及包數完整換行，窄螢幕也不截字。 */
body .wc-block-cart-items .wc-block-components-product-name,
body .wc-block-cart-items .wc-block-components-product-metadata,
body .wc-block-cart-items .wc-block-components-product-details,
body .wc-block-cart-items .wc-block-components-product-details__name,
body .wc-block-cart-items .wc-block-components-product-details__value {
    max-height: none !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow-wrap: anywhere;
}

/* 每個商品只顯示一筆金額與整理後的內容，圖片與數量徽章沿用原樣。 */
.wc-block-components-order-summary-item__description > .wc-block-cart-item__prices,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item .wc-block-components-product-details > span:not(.scie-order-summary-details),
.wc-block-components-order-summary-item .wc-block-components-product-details:not(:has(.scie-order-summary-details)) {
    display: none !important;
}
.wc-block-components-order-summary-item .scie-order-summary-details,
.wc-block-components-order-summary-item .scie-order-summary-line {
    display: block;
}
.wc-block-components-order-summary-item .scie-order-summary-details .wc-block-components-product-details__name {
    display: none;
}
.wc-block-components-order-summary-item .scie-order-summary-line {
    margin: 0;
    line-height: 1.65;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: anywhere;
}
.wc-block-components-order-summary-item .wc-block-components-product-metadata {
    margin-top: .4rem;
}
