/* Long content and constrained viewports; kept local to each theme. */
.hm-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; max-width:100%; padding:16px 12px; box-sizing:border-box; }
.hm-pagination a { display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; padding:6px 10px; box-sizing:border-box; white-space:nowrap; }
.hm-pagination .pagination-summary { flex-basis:100%; text-align:center; font-size:12px; color:var(--sub,#64748b); }
.description-table-scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; margin:12px 0; }
.description-table-scroll>table { display:table!important; max-width:none!important; min-width:560px; margin:0!important; }
.description-table-scroll:focus-visible { outline:2px solid var(--c1,#4a6ee0); outline-offset:2px; }
:is(.native-description,.d-intro-body,.hm-intro) pre { display:block; max-width:100%; overflow:auto; white-space:pre; overflow-wrap:normal; word-break:normal; padding:12px; box-sizing:border-box; }
#noticePopupTitle { max-height:5.6em; overflow:auto; overflow-wrap:anywhere; line-height:1.4; }
#noticePopupBox button:focus-visible,.notice-dialog button:focus-visible { outline:2px solid var(--c1,#4a6ee0); outline-offset:2px; }
.front-modal { padding:16px; box-sizing:border-box; }
.front-modal .front-dialog { max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; margin:auto; }
.front-modal .front-dialog>div:first-child { position:sticky; top:0; z-index:1; background:var(--card,#fff); }
.front-modal .front-dialog>div:first-child button { min-width:36px; min-height:36px; }
.order-summary-row { gap:16px; }
.order-summary-row>span:first-child { flex-shrink:0; }
.order-summary-row>span:last-child { min-width:0; overflow-wrap:anywhere; text-align:right; }
a[data-payment-link][aria-disabled=true] { opacity:.55; pointer-events:none; }
.pay-item:focus-within { outline:2px solid var(--c1,#4a6ee0); outline-offset:2px; }

.description-table-scroll.has-overflow::before { content:"表格可左右滑动查看"; display:block; position:sticky; left:0; width:100%; box-sizing:border-box; padding:6px 0; color:var(--sub,#64748b); font-size:12px; }
.description-table-scroll>table th,.description-table-scroll>table td { padding:8px 10px; border:1px solid var(--border,#e2e8f0); text-align:left; }

/* Catalog cards present fulfilment and stock, with full descriptions on product pages. */
.product-card .product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.5}
.product-card .product-badges{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.product-card .product-delivery{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:6px;background:rgba(16,185,129,.09);color:#047857;font-size:11px;font-weight:600;line-height:1.5}
.product-card .product-delivery.is-manual{background:rgba(245,158,11,.1);color:#a16207}
.product-card .product-bottom{margin-top:auto;gap:8px}
.product-card .product-stock{overflow-wrap:anywhere}
.announcement .announcement-text{min-width:0;flex:1}
.announcement .announcement-title{display:block;margin-bottom:4px;font-weight:600;color:inherit}
.announcement .announcement-content{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}
@media(max-width:480px){.product-card .tag-hot{top:7px;left:7px;padding:3px 6px;font-size:10px}.product-card .tag-sales{top:auto;bottom:7px;right:7px;font-size:10px}.product-card .product-badges{margin-bottom:9px}}

.announcement .announcement-text{white-space:normal}
