.reference-goods .checkout-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 999;
    overflow: hidden;
    max-width: 480px;
    margin-inline: auto;
    border-radius: 18px 18px 0 0;
    background: #f4f5f7;
    color: #1b2029;
    transition: transform .3s ease;
}
.checkout-panel .checkout-scroll {
    display: grid;
    gap: 8px;
    max-height: min(66vh, 540px);
    max-height: min(70dvh, 540px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 9px;
}
.checkout-card { border-radius: 14px; background: #fff; box-shadow: 0 1px 4px #1e293008; }
.checkout-product { overflow: hidden; }
.checkout-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    background: linear-gradient(110deg, #593d27, #362017);
    color: #fff2e5;
    font-size: 13px;
    font-weight: 600;
}
.checkout-topline button { border: 0; border-radius: 50%; width: 30px; height: 30px; background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
.checkout-product-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 11px; }
.checkout-product-row img { width: 78px; height: 78px; object-fit: cover; border-radius: 9px; }
.checkout-product-description { display: grid; gap: 3px; align-content: start; }
.checkout-product-description > strong { font-size: 14px; line-height: 1.35; }
.checkout-limit { justify-self: start; padding: 2px 5px; border-radius: 4px; background: #eef0f2; color: #5d6774; font-size: 11px; }
.checkout-product-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; }
.checkout-product-price .price { color: inherit; font-size: 22px; font-weight: 700; }
.checkout-product-price .number-input { display: flex; align-items: center; overflow: hidden; border: 1px solid #d8dce1; border-radius: 5px; }
.checkout-product-price .number-input > * { width: 31px; height: 30px; padding: 0; border: 0; background: #fff; color: inherit; font: inherit; text-align: center; }
.checkout-product-price .number-input button { cursor: pointer; }
.checkout-product-price .number-input button:disabled { color: #898e96; cursor: default; }
.checkout-specs { padding: 0 11px 10px; }
.checkout-specs .selected-spec { color: #5d6774; font-size: 12px; }
.checkout-specs .popup-spec-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.checkout-specs button { border: 1px solid #ddd; border-radius: 5px; padding: 5px 9px; background: #fff; color: inherit; cursor: pointer; }
.checkout-delivery { padding: 12px 14px 10px; }
.checkout-offer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; }
.checkout-offer output { color: #cc2441; font-size: 15px; }
.checkout-delivery button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.checkout-delivery strong { font-size: 16px; }
.checkout-address-label { display: flex; align-items: center; gap: 8px; }
.checkout-address-icon { position: relative; width: 11px; height: 11px; margin-inline: 2px; border-radius: 65% 65% 65% 0; background: #626b76; transform: rotate(-45deg); }
.checkout-address-icon::after { position: absolute; inset: 4px; border-radius: 50%; background: #fff; content: ''; }
.checkout-delivery button > span:last-child { color: #6d7886; font-size: 20px; }
.checkout-delivery-meta { margin-top: 10px; color: #087749; font-size: 13px; }
.checkout-note { padding: 13px 14px; }
.checkout-note summary { display: flex; justify-content: space-between; gap: 6px; cursor: pointer; list-style: none; }
.checkout-note summary::-webkit-details-marker { display: none; }
.checkout-note summary span { color: #697383; font-size: 13px; }
.checkout-note textarea { box-sizing: border-box; width: 100%; margin-top: 8px; padding: 8px; border: 1px solid #d8dce1; border-radius: 6px; font: inherit; }
.checkout-methods { min-width: 0; margin: 0; padding: 1px 14px; border: 0; }
.checkout-method-row { display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; gap: 8px; align-items: center; min-height: 43px; font-size: 14px; cursor: pointer; }
.checkout-method-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; }
.checkout-alipay { background: #176df0; }
.checkout-help-pay { background: #31a6ce; }
.checkout-monthly { background: #2aafab; }
.checkout-wechat { background: #56b854; }
.checkout-method-row small { display: block; margin-top: 2px; color: #767676; font-size: 11px; }
.checkout-method-row input { width: 17px; height: 17px; margin: 0; accent-color: #e32945; }
.checkout-method-row.is-unavailable { color: #767676; cursor: default; }
.checkout-method-row.is-unavailable .checkout-method-icon { opacity: .48; }
.checkout-footer { display: flex; align-items: center; gap: 14px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; }
.checkout-footer > div { display: flex; align-items: baseline; gap: 2px; color: #c32139; white-space: nowrap; }
.checkout-footer strong { font-size: 19px; }
.checkout-submit { flex: 1; min-height: 44px; padding: 0 15px; border: 0; border-radius: 25px; background: linear-gradient(90deg,#ff595f,#f83240); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.checkout-submit:disabled { opacity: .56; cursor: wait; }
.checkout-link-page { margin: 0; background: #f4f5f7; color: #1b2029; font: 15px/1.5 system-ui, sans-serif; }
.checkout-link-receipt { box-sizing: border-box; width: calc(100% - 20px); max-width: 480px; margin: 16px auto; padding: 16px; border-radius: 14px; background: #fff; }
.checkout-link-receipt h1 { margin-top: 0; font-size: 20px; }
.checkout-link-receipt strong { font-size: 28px; }
.checkout-link-receipt .checkout-submit { width: 100%; }
.checkout-link-receipt form { margin-bottom: 12px; }
.voucher-information .voucher-badges { flex-wrap: nowrap; overflow-x: auto; }
.voucher-badges span { white-space: nowrap; }
.voucher-delivery-title, .voucher-info-label { display: flex; align-items: center; gap: 8px; }
.voucher-delivery-title::before { width: 11px; height: 14px; margin-inline-end: 2px; background: currentColor; clip-path: polygon(60% 0, 7% 57%, 41% 57%, 28% 100%, 94% 39%, 57% 39%); content: ''; }
.voucher-delivery .voucher-delivery-meta { padding-inline-start: 21px; font-size: 12px; }
.voucher-delivery-meta > span { padding: 0 3px; color: #848484; }
.voucher-info-label::before { box-sizing: border-box; width: 11px; height: 10px; margin-inline-end: 2px; border: 1px solid currentColor; border-radius: 2px; color: #555; content: ''; }
.voucher-delivery-label::before { transform: rotate(-10deg); }
.voucher-spec-label::before { width: 9px; height: 12px; margin-inline-end: 4px; }
.voucher-shop-panel .voucher-shop-card-top { min-height: 21px; }
.voucher-shop-highlight { display: block; margin-top: 3px; color: #f4c9a4; font-size: 13px; font-weight: 600; }
.voucher-shop-card-main .voucher-shop-highlight + p { margin-top: 2px; }
.detail-price-meta .detail-store-link { color: inherit !important; text-decoration: none; }
.detail-shop-strip .detail-shop-strip-services { flex: 1; border-left: 1px solid #ffffff32; padding-inline-start: 8px; }
.detail-shop-strip-services, .detail-shop-strip > span:last-child { white-space: nowrap; }
.voucher-shop-card-label { display: flex; min-width: 0; align-items: center; gap: 8px; }
.voucher-shop-card-top a { white-space: nowrap; }
.voucher-shop-brand { padding-inline-start: 8px; border-inline-start: 1px solid #ffffff45; color: #efcdae; font-size: 12px; font-weight: 400; white-space: nowrap; }
@media (max-width: 359px) {
    .detail-shop-strip { gap: 6px; padding-inline: 8px; }
    .detail-shop-strip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .detail-shop-strip .detail-shop-strip-services { padding-inline-start: 6px; font-size: 11px; }
}
