/* 精品雙欄預購彈窗：左介紹、右填單 — 單一滾輪（僅 shell 捲動） */
#preorderModal[aria-hidden="true"] {
    pointer-events: none !important;
}

#preorderModal[aria-hidden="false"] {
    pointer-events: auto;
}

.preorder-premium-modal.wm-modal,
#preorderModal.preorder-premium-modal.wm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    box-sizing: border-box;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    overflow: hidden !important;
    overscroll-behavior: none;
}

.preorder-premium-modal .wm-modal-close,
#preorderModal .wm-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    border: none;
    background: none;
}

.preorder-premium-modal .preorder-modal-shell,
.preorder-premium-modal .wm-modal-content.preorder-modal-shell,
.preorder-premium-modal .modal-content,
#preorderModal .preorder-modal-shell {
    position: relative;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

html.wx-preorder-modal-open {
    overflow: hidden !important;
    height: 100% !important;
    overscroll-behavior: none !important;
}

body.wx-preorder-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none;
}

.preorder-premium-modal .preorder-modal-shell,
.preorder-premium-modal .wm-modal-content.preorder-modal-shell,
.preorder-premium-modal .modal-content,
#preorderModal .preorder-modal-shell {
    max-width: 1280px;
    width: min(1280px, calc(100% - 20px));
    max-height: min(96dvh, 980px);
    height: min(96dvh, 980px);
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    overscroll-behavior: none;
    border-radius: 16px;
}

/* 唯一滾輪：僅 body 區塊捲動 */
.preorder-premium-modal .preorder-modal-body,
.preorder-premium-modal .modal-body,
#preorderModal .preorder-modal-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    padding: 22px 24px 18px;
    background: #ffffff;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

.preorder-premium-modal .preorder-modal-showcase {
    flex: 1 1 42%;
    max-width: 440px;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
}

.preorder-premium-modal .preorder-modal-hero-img-wrap {
    flex: 0 0 auto;
    width: 100%;
    min-height: 140px;
    height: 180px;
    max-height: 180px;
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eef2f7;
    position: relative;
}

.preorder-premium-modal .preorder-modal-hero-img-wrap.is-empty {
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.preorder-premium-modal .preorder-modal-hero-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    display: block;
}

.preorder-premium-modal .preorder-modal-hero-img.is-missing {
    display: none;
}

.preorder-premium-modal .preorder-modal-cover-note {
    margin: -4px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 0.04em;
}

.preorder-premium-modal .preorder-modal-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 0 0 auto;
}

.preorder-premium-modal .preorder-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    text-align: left;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    padding-bottom: 0 !important;
}

.preorder-premium-modal .preorder-modal-price {
    font-size: 22px;
    font-weight: 900;
    color: #dc2626;
    line-height: 1.15;
}

.preorder-premium-modal .preorder-modal-price.is-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--pos-highlight, var(--primary-color, #587493));
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--pos-highlight, var(--primary-color, #587493));
    letter-spacing: 0.06em;
}

.preorder-premium-modal .preorder-modal-specs {
    display: grid;
    grid-template-columns: 6.2em 1fr;
    column-gap: 12px;
    row-gap: 0;
    margin: 2px 0 0;
    padding: 2px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    flex: 0 0 auto;
}

.preorder-premium-modal .preorder-modal-specs[hidden] {
    display: none;
}

.preorder-premium-modal .preorder-modal-specs dt,
.preorder-premium-modal .preorder-modal-specs dd {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.preorder-premium-modal .preorder-modal-specs dt {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

.preorder-premium-modal .preorder-modal-specs dd {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.preorder-premium-modal .preorder-modal-variant-desc {
    padding: 10px 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}

.preorder-premium-modal .preorder-modal-variant-desc[hidden] {
    display: none;
}

.preorder-premium-modal .preorder-modal-variant-desc strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #9a3412;
}

.preorder-premium-modal .preorder-modal-variant-desc p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #7c2d12;
    white-space: pre-wrap;
}

.preorder-premium-modal .modal-detail-text,
#preorderModal .modal-detail-text {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
    display: block !important;
}

.preorder-premium-modal .preorder-modal-availability,
#preorderModal .preorder-modal-availability {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #166534;
}

.preorder-premium-modal .preorder-modal-availability.is-full,
#preorderModal .preorder-modal-availability.is-full {
    color: #be123c;
}

.wx-preorder-remain-row {
    margin-top: 6px;
}

.wx-preorder-remain-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.wx-preorder-remain-tag--full {
    color: #be123c;
    background: #ffe4e6;
    border-color: #fda4af;
}

.preorder-premium-modal .preorder-modal-form-col,
.preorder-premium-modal .form-right-content,
#preorderModal .preorder-modal-form-col {
    flex: 1 1 54%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.preorder-premium-modal .preorder-form--compact,
.preorder-premium-modal .preorder-modal-form-col form,
.preorder-premium-modal .form-right-content form,
#preorderModal .preorder-form--compact,
#preorderModal .preorder-modal-form-col form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden !important;
    padding-right: 0;
    margin-bottom: 0;
}

.preorder-premium-modal .preorder-bottom-bar,
#preorderModal .preorder-bottom-bar {
    flex-shrink: 0;
    overflow: visible !important;
}

.preorder-premium-modal .preorder-form--compact label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--pos-text-color, #334155);
    margin: 0 0 3px 0;
    letter-spacing: 0.02em;
}

.preorder-premium-modal .preorder-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
}

.preorder-premium-modal .preorder-row .form-group {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.preorder-premium-modal .preorder-row--product-qty {
    align-items: flex-end;
}

.preorder-premium-modal .preorder-row--product-qty .preorder-fg-product {
    position: relative;
    flex: 1 1 62%;
}

.preorder-premium-modal .preorder-row--product-qty .preorder-qty-stepper-group {
    flex: 0 0 38%;
    max-width: 200px;
}

.preorder-premium-modal .preorder-product-fixed {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    padding: 6px 0;
    min-height: 36px;
    border-bottom: 1px solid #cfd8dc;
    word-break: break-word;
}

.preorder-premium-modal .preorder-product-select-hidden,
#preorderModal .preorder-product-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.preorder-premium-modal .preorder-pickup-store-fixed {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    padding: 2px 0 0;
}

.preorder-premium-modal .preorder-qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #cfd8dc;
}

.preorder-premium-modal .preorder-qty-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    color: #334155;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 8px;
    line-height: 1;
    transition: background 0.15s ease;
}

.preorder-premium-modal .preorder-qty-btn:hover:not(:disabled):not(.is-disabled) {
    background: #e2e8f0;
}

.preorder-premium-modal .preorder-qty-btn:disabled,
.preorder-premium-modal .preorder-qty-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preorder-premium-modal .preorder-qty-stepper .preorder-field {
    flex: 1 1 auto;
    text-align: center;
    border-bottom: none !important;
    padding: 6px 4px !important;
    -moz-appearance: textfield;
}

.preorder-premium-modal .preorder-qty-stepper .preorder-field::-webkit-outer-spin-button,
.preorder-premium-modal .preorder-qty-stepper .preorder-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.preorder-premium-modal .preorder-fulfill-guide {
    margin: 6px 0 2px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e8eef4;
    border-radius: 10px;
}

.preorder-premium-modal .preorder-fulfill-guide__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.preorder-premium-modal .preorder-fulfill-guide__list {
    margin: 0;
    padding-left: 1.15em;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preorder-premium-modal .preorder-fulfill-guide__list li {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

.preorder-premium-modal .preorder-form--compact .wm-form-hint {
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.preorder-premium-modal .preorder-form--compact .submit-btn {
    margin-top: 4px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 900;
    border-radius: 10px;
    background: var(--pos-btn-bg, #778ca3) !important;
    cursor: pointer;
}

.preorder-premium-modal .preorder-bottom-bar {
    flex-shrink: 0;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    background: #fff;
}

.preorder-premium-modal .preorder-social-row {
    display: none !important;
}

.variant-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preorder-premium-modal .variant-btn {
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.3;
}

.preorder-premium-modal .variant-btn:hover {
    border-color: #94a3b8;
    background: #fff;
}

.preorder-premium-modal .variant-btn.active {
    border-color: var(--pos-highlight, #728B7E);
    background: #ecfdf5;
    color: #065f46;
    box-shadow: 0 0 0 2px rgba(0, 195, 0, 0.15);
}

.preorder-premium-modal .preorder-variant-group label {
    margin-bottom: 6px;
}

.preorder-premium-modal .preorder-modal-hero-img {
    transition: opacity 0.2s ease;
}

.preorder-premium-modal .preorder-modal-hero-img.is-swapping {
    opacity: 0.55;
}

@media (max-width: 767px) {
    .preorder-premium-modal .preorder-modal-shell,
    .preorder-premium-modal .wm-modal-content.preorder-modal-shell,
    .preorder-premium-modal .modal-content {
        max-height: min(96dvh, 820px);
        height: auto;
    }

    .preorder-premium-modal .preorder-modal-body,
    .preorder-premium-modal .modal-body,
    #preorderModal .preorder-modal-body {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 12px 10px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .preorder-premium-modal .preorder-modal-showcase {
        flex: 0 0 auto;
        overflow: visible;
    }

    .preorder-premium-modal .preorder-modal-hero-img-wrap {
        flex: 0 0 auto;
        min-height: 132px;
        height: 132px;
        max-height: 132px;
    }

    .preorder-premium-modal .preorder-modal-hero-img {
        height: auto;
        max-height: 132px;
    }

    .preorder-premium-modal .preorder-modal-form-col,
    .preorder-premium-modal .form-right-content {
        flex: 0 0 auto;
        overflow: visible !important;
    }
}

@media (min-width: 768px) {
    .preorder-premium-modal .preorder-modal-body,
    .preorder-premium-modal .modal-body,
    #preorderModal .preorder-modal-body {
        display: flex !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }

    .preorder-premium-modal .preorder-modal-form-col,
    .preorder-premium-modal .form-right-content,
    #preorderModal .preorder-modal-form-col {
        flex: 1 1 54% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}

/* 斬斷：form 區子層不得自行 overflow（封面舞台除外） */
#preorderModal .preorder-form--compact,
#preorderModal .preorder-bottom-bar,
#preorderModal .form-group,
#preorderModal .preorder-row {
    overflow: visible !important;
    max-height: none !important;
}

#preorderModal .preorder-modal-showcase {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
#preorderModal .preorder-modal-hero-img-wrap {
    overflow: hidden !important;
    flex: 0 0 auto !important;
    min-height: 140px !important;
    height: 180px !important;
    max-height: 180px !important;
}

@media (max-width: 767px) {
    #preorderModal .preorder-modal-hero-img-wrap {
        min-height: 132px !important;
        height: 132px !important;
        max-height: 132px !important;
    }
}

/* 官網預購：門市自取 / 7-11 雙軌切換 */
.preorder-premium-modal .preorder-shipping-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preorder-premium-modal .preorder-shipping-label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
}

.preorder-premium-modal .wx-ec-shipping-select,
#preorderModal #preorder-shipping-select {
    width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #d8dce3;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.preorder-premium-modal .ec-front-shipping-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preorder-premium-modal .ec-front-shipping-btn[hidden] {
    display: none !important;
}

.preorder-premium-modal .wx-ec-ship-mode-hint,
.preorder-premium-modal .wx-ec-preorder-pay-hint {
    margin: 0 0 6px;
    color: #9a3412;
    font-weight: 700;
}

.preorder-premium-modal .wx-ec-home-pay-hint {
    margin: 0 0 6px;
    color: #334155;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.45;
}

.preorder-premium-modal .ec-front-shipping-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 6px;
    border-radius: 6px;
    border: 2px solid #d8dce3;
    background: #fafbfc;
    color: #4a5568;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.preorder-premium-modal .ec-front-shipping-btn:hover {
    border-color: #c5cad3;
}

.preorder-premium-modal .ec-front-shipping-btn.active[data-type="pickup"] {
    border-color: #6b8096;
    background: #f2f4f7;
    color: #44586b;
}

.preorder-premium-modal .ec-front-shipping-btn.active[data-type="711"] {
    border-color: #6b8cae;
    background: #f0f5fa;
    color: #3d5a73;
}

.preorder-premium-modal .ec-front-shipping-btn.active[data-type="home"] {
    border-color: #7a9a6b;
    background: #f3f7ef;
    color: #3f5a36;
}

.preorder-premium-modal .preorder-shipping-slot {
    display: grid;
    align-items: start;
    min-height: 168px;
}

.preorder-premium-modal .preorder-shipping-slot > .preorder-shipping-panel {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.preorder-premium-modal .preorder-shipping-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preorder-premium-modal .preorder-shipping-panel[hidden] {
    display: none !important;
}

.preorder-premium-modal .preorder-shipping-slot > .preorder-shipping-panel[hidden] {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

.preorder-premium-modal .preorder-shipping-slot > .preorder-shipping-panel:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.preorder-premium-modal .wx-ec-711-pay-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.preorder-premium-modal .wx-ec-711-pay-panel[hidden] {
    display: none !important;
}

.preorder-premium-modal .wx-ec-pay-opt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    line-height: 1.4;
}

.preorder-premium-modal .preorder-pickup-hint,
.preorder-premium-modal .preorder-711-fee-hint {
    font-size: 12px;
    color: #7a8494;
    line-height: 1.45;
    margin: 0;
}

.preorder-premium-modal .preorder-711-fee-hint:not(.wx-ec-ship-mode-hint) {
    color: #64748b;
    font-weight: 800;
    font-size: 13px;
}

.preorder-premium-modal .preorder-711-map-hint {
    margin-top: 0;
    font-size: 11px;
    color: #9aa3af;
}

.preorder-premium-modal .ec-map-helper-bar {
    width: 100%;
    margin: 8px 0;
    padding: 6px 10px;
    border-radius: 4px;
    background: #eef2f7;
    line-height: 1.45;
}

.preorder-premium-modal .ec-map-helper-bar a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    text-decoration: none;
}

.preorder-premium-modal .ec-map-helper-bar a:hover {
    text-decoration: underline;
}

.preorder-premium-modal .ec-map-helper-bar .ec-map-helper-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    text-align: left;
    cursor: pointer;
    line-height: 1.45;
}

.preorder-premium-modal .ec-map-helper-bar .ec-map-helper-btn:hover {
    text-decoration: underline;
}

.preorder-premium-modal .preorder-phone-711-warn {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    color: #486480;
    background: #eaeef3;
    border: 1px solid #b9c8d7;
}

.preorder-premium-modal .wx-ec-ship-bl-hint {
    margin: 6px 0 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
}

.preorder-premium-modal .preorder-field.preorder-field--phone-invalid {
    border-color: #7090af !important;
    box-shadow: 0 0 0 2px rgba(112, 144, 175, 0.25);
}

.wx-member-auth-hidden {
    display: none !important;
}

#preorderModal.wx-member-logged-in .preorder-modal-form-col,
.preorder-modal-form-col.wx-member-logged-in {
    padding-bottom: 4px;
}

.wx-ec-711-fields-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.wx-ec-711-fields-row .wx-ec-711-field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.wx-ec-home-fields-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.wx-ec-home-fields-row .wx-ec-home-field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.preorder-premium-modal .preorder-home-fee-hint {
    color: #64748b;
    font-weight: 800;
    font-size: 13px;
}

/* 預購視窗的扣除點數（2026-10-06 精緻化，同購物車那張卡：白底細框、奶油標題帶、開關、「點」字尾） */
.preorder-premium-modal .preorder-points-block {
    margin: 2px 0 4px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.preorder-premium-modal .preorder-points-block .preorder-points-block__title {
    padding: 10px 12px 0;
    background: #fffbeb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
}

.preorder-premium-modal .preorder-points-block .preorder-points-block__sub {
    margin: 0;
    padding: 2px 12px 10px;
    background: #fffbeb;
    border-bottom: 1px solid #dbe3eb;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: #64748b;
}

.preorder-premium-modal .preorder-points-block .preorder-points-block__sub strong {
    font-weight: 800;
    color: #b45309;
}

.preorder-premium-modal .preorder-points-block .preorder-points-toggle {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.preorder-premium-modal .preorder-points-block .preorder-points-toggle input {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    position: relative;
    width: 40px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.18s ease;
}

.preorder-premium-modal .preorder-points-block .preorder-points-toggle input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transition: transform 0.18s ease;
}

.preorder-premium-modal .preorder-points-block .preorder-points-toggle input:checked {
    background: var(--button-color, #587493);
}

.preorder-premium-modal .preorder-points-block .preorder-points-toggle input:checked::after {
    transform: translateX(18px);
}

.preorder-premium-modal .preorder-points-block .preorder-points-toggle input:focus-visible {
    outline: 2px solid var(--button-color, #587493);
    outline-offset: 2px;
}

.preorder-premium-modal .preorder-points-block .preorder-points-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    margin: 0 12px;
    padding: 10px 0 12px;
    border-top: 1px solid #eef2f7;
}

.preorder-premium-modal .preorder-points-block .preorder-points-input-wrap[hidden],
.preorder-premium-modal .preorder-points-block .preorder-points-error[hidden] {
    display: none;
}

.preorder-premium-modal .preorder-points-block .preorder-points-input-wrap label {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #334155;
}

.preorder-premium-modal .preorder-points-block .preorder-points-input-wrap input[type="number"] {
    width: 116px;
    max-width: none;
    height: 38px;
    margin: 0;
    box-sizing: border-box;
    padding: 0 36px 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ctext x='0' y='13' font-size='13' font-weight='700' fill='%2394a3b8' font-family='sans-serif'%3E點%3C/text%3E%3C/svg%3E") no-repeat right 11px center;
    background-size: 16px 16px;
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    -moz-appearance: textfield;
    appearance: textfield;
}

.preorder-premium-modal .preorder-points-block .preorder-points-input-wrap input[type="number"]::-webkit-outer-spin-button,
.preorder-premium-modal .preorder-points-block .preorder-points-input-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.preorder-premium-modal .preorder-points-block .preorder-points-input-wrap input[type="number"]:focus {
    outline: none;
    border-color: var(--button-color, #587493);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(88, 116, 147, 0.18);
}

.preorder-premium-modal .preorder-points-block .preorder-points-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fef2f2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #b91c1c;
}

.preorder-premium-modal .preorder-points-empty {
    margin: 2px 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

