/* Cart page specific styles
 * Restored from the former monolithic lottery-orders.css
 * Scope: only cart page visual layer
 * 2026-03-18: 空购物车页改为首页同款卡片式 empty state；未登录态同步纳入同一视觉系统，并保留卡片化登录入口。
 */

.lottery-orders--cart {
    --dc-kn-ball-gap: 8px;
    background: transparent !important;
    padding-top: 6px;
}

.lottery-orders--cart .pending-payment-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px !important;
    margin-bottom: 22px !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
    color: #0f172a !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05) !important;
}

.lottery-orders--cart .cart-icon {
    width: 26px;
    height: 26px;
    stroke: #c9a96e !important;
    stroke-width: 2;
}

.lottery-orders--cart .orders-table {
    display: flex;
    flex-direction: column;
    gap: 24px !important;
}

.lottery-orders--cart .lottery-card {
    border: 1px solid #dbe4ef !important;
    border-radius: 24px !important;
    padding: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06) !important;
}


.lottery-orders--cart .lo-empty-cart-card {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 48px 32px !important;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    text-align: center;
}

.lottery-orders--cart .lo-empty-cart-card::before,
.lottery-orders--cart .lo-empty-cart-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.lottery-orders--cart .lo-empty-cart-card::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -70px;
    background: radial-gradient(circle, rgba(201, 169, 110, .10) 0%, rgba(201, 169, 110, 0) 72%);
}

.lottery-orders--cart .lo-empty-cart-card::after {
    width: 260px;
    height: 260px;
    bottom: -110px;
    left: -70px;
    background: radial-gradient(circle, rgba(0, 153, 68, .08) 0%, rgba(0, 153, 68, 0) 74%);
}

.lottery-orders--cart .lo-empty-cart-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    border: 1px solid #dbe8fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 44px rgba(201, 169, 110, .10);
}

.lottery-orders--cart .lo-empty-cart-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(201, 169, 110, .22);
}

.lottery-orders--cart .lo-empty-cart-orbit--one {
    width: 168px;
    height: 168px;
}

.lottery-orders--cart .lo-empty-cart-orbit--two {
    width: 196px;
    height: 196px;
    border-color: rgba(0, 153, 68, .16);
}

.lottery-orders--cart .lo-empty-cart-icon {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    color: #c9a96e;
}

.lottery-orders--cart .lo-empty-cart-copy {
    position: relative;
    z-index: 1;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lottery-orders--cart .lo-empty-cart-copy h3 {
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.lottery-orders--cart .lo-empty-cart-copy p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
}


.lottery-orders--cart .lo-empty-cart-card--guest {
    gap: 24px;
}

.lottery-orders--cart .lo-empty-cart-copy--guest {
    max-width: 520px;
    gap: 12px;
}

.lottery-orders--cart .lo-empty-cart-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

.lottery-orders--cart .lo-empty-cart-login-button {
    min-width: 148px;
    min-height: 48px;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    border: 1px solid #d7e5fb !important;
    background: #ffffff !important;
    color: #c9a96e !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(201, 169, 110, .08) !important;
}

.lottery-orders--cart .lo-empty-cart-login-button:hover,
.lottery-orders--cart .lo-empty-cart-login-button:focus {
    background: #f7fbff !important;
    color: #0b5ed7 !important;
    border-color: #bfd5fb !important;
    transform: translateY(-1px);
}


.lottery-orders--cart template#lo-cart-empty-template {
    display: none !important;
}

.lottery-orders--cart .pay-now-module {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch !important;
    padding: 22px !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06) !important;
    margin-top: 24px !important;
}

.lottery-orders--cart .order-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e7eef7 !important;
    font-size: 15px !important;
    color: #334155 !important;
}

.lottery-orders--cart .header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lottery-orders--cart .header-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lottery-orders--cart .header-bottom span:last-child {
    color: #7b8ba1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.lottery-orders--cart .order-sequence {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.lottery-orders--cart .order-amount {
    font-weight: 600 !important;
    color: #009944 !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    background: rgba(0, 153, 68, .08) !important;
}

.lottery-orders--cart .selections-container {
    display: flex;
    flex-direction: column;
    gap: 14px !important;
}

.lottery-orders--cart .selection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px !important;
    background: #f8fbff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
}

.lottery-orders--cart .line-label {
    min-width: 74px;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.lottery-orders--cart .play-type {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: auto !important;
    padding: 0 12px !important;
    margin-right: 6px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 999px !important;
    background: #eef4fb !important;
    color: #1550b8 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center;
}

.lottery-orders--cart .order-footer {
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e7eef7 !important;
    text-align: center;
}

.lottery-orders--cart .delete-order {
    width: 100%;
    min-height: 46px;
    padding: 0 16px !important;
    background: #f3f4f6 !important;
    color: #ef4444 !important;
    border: 1px solid #dbe2ea !important;
    border-radius: 14px !important;
    cursor: pointer;
    text-align: center;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.lottery-orders--cart .delete-order i {
    margin-right: 5px;
    color: inherit !important;
}

.lottery-orders--cart .delete-order:hover {
    background: #eceff3 !important;
    border-color: #d1d9e3 !important;
    color: #dc2626 !important;
    transform: translateY(-1px);
}

.lottery-orders--cart .total-section {
    font-size: 18px !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.lottery-orders--cart .total-section .total-price {
    margin-left: 10px;
    color: #009944 !important;
    font-weight: 600 !important;
}

.pay-now-button,
.lottery-orders--cart .pay-now-button {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 20px !important;
    background: #c9a96e !important;
    background-color: #c9a96e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    box-shadow: 0 14px 30px rgba(201, 169, 110, .18) !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lottery-orders--cart .pay-now-button:hover:not(:disabled):not(.is-disabled) {
    background: #b8935a !important;
    background-color: #b8935a !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(51, 136, 255, .22) !important;
}

.lottery-orders--cart .pay-now-button:disabled,
.lottery-orders--cart .pay-now-button.is-disabled {
    background: var(--danger-color) !important;
    background-color: var(--danger-color) !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
    pointer-events: none;
}


.lottery-orders--cart .usd-wallet-hint {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 14px 0 6px !important;
    text-align: center !important;
}

.lottery-orders--cart .usd-wallet-hint strong,
.lottery-orders--cart .usd-wallet-hint .price-value {
    display: inline-block !important;
    text-align: center !important;
}

.lottery-orders--cart .usd-wallet-balance-msg {
    display: none;
    margin: 10px 0 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #52637a !important;
    font-weight: 500 !important;
    text-align: center !important;
}

.lottery-orders--cart .usd-wallet-balance-msg .ok {
    color: #009944 !important;
    font-weight: 600 !important;
}

.lottery-orders--cart .usd-wallet-balance-msg a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    margin-left: 8px !important;
    border-radius: 999px !important;
    background: #c9a96e !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(201, 169, 110, .18) !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.lottery-orders--cart .usd-wallet-balance-msg a:hover {
    background: #b8935a !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px rgba(51, 136, 255, .22) !important;
}

.lottery-orders--cart .usd-wallet-balance-msg a:visited,
.lottery-orders--cart .usd-wallet-balance-msg a:focus,
.lottery-orders--cart .usd-wallet-balance-msg a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.lottery-orders--cart .usd-wallet-balance-msg .insufficient,
.lottery-orders--cart .usd-wallet-balance-msg .warn,
.lottery-orders--cart .usd-wallet-balance-msg .error {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    text-align: center !important;
}

.discount-note-container {
    font-size: 13px;
}

#cart-modal .lottery-ball {
    margin: 0 1px !important;
}

@media (max-width: 767px) {
    #cart-modal .modal-content {
        padding: 24px 18px 20px !important;
    }

    #cart-modal .modal-title {
        margin-bottom: 12px !important;
    }

    #cart-modal #cart-modal-message {
        margin-bottom: 10px !important;
        font-size: 14px !important;
    }

    #cart-modal #selections-list {
        gap: 5px;
    }

    #cart-modal .modal-buttons {
        margin-top: 16px !important;
    }

    .lottery-orders--cart .pending-payment-title {
        width: 100%;
        justify-content: center;
        font-size: 22px !important;
        padding: 12px 16px !important;
    }

    .lottery-orders--cart .lottery-card,
    .lottery-orders--cart .pay-now-module {
        padding: 18px !important;
        border-radius: 22px !important;
    }

    .lottery-orders--cart .selection-item {
        padding: 10px 12px !important;
        border-radius: 16px !important;
    }

    .lottery-orders--cart .lo-empty-cart-card {
        min-height: 420px;
        gap: 22px;
        padding: 34px 18px !important;
    }

    .lottery-orders--cart .lo-empty-cart-visual {
        width: 180px;
        height: 180px;
    }

    .lottery-orders--cart .lo-empty-cart-orbit--one {
        width: 136px;
        height: 136px;
    }

    .lottery-orders--cart .lo-empty-cart-orbit--two {
        width: 160px;
        height: 160px;
    }

    .lottery-orders--cart .lo-empty-cart-icon {
        width: 80px;
        height: 80px;
    }

    .lottery-orders--cart .lo-empty-cart-copy h3 {
        font-size: 24px !important;
    }

    .lottery-orders--cart .lo-empty-cart-copy p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }


    .lottery-orders--cart .lo-empty-cart-login-button {
        width: 100%;
        max-width: 220px;
        min-height: 46px;
    }
}

/*
 * 修改说明（2026-03-18）：
 * 1) 美化 checkout-pause-modal：标题下方/按钮上方增加分割线。
 * 2) 将中间订单信息改为居中展示。
 * 3) 使用 ::after 为标签统一补冒号，避免模板与 JS 双份结构都要改文案。
 */
#checkout-pause-modal .modal-content {
    max-width: 540px;
    padding: 28px 0 24px !important;
    overflow: hidden;
}

#checkout-pause-modal .modal-title {
    margin: 0 !important;
    padding: 0 24px 16px !important;
    text-align: center !important;
}

#checkout-pause-modal .modal-body.centered-content {
    margin: 0 16px !important;
    padding: 18px 20px 8px !important;
    border-top: 1px solid #dbe5f2;
    border-bottom: 1px solid #dbe5f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center !important;
}

#checkout-pause-modal .checkout-pause-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#checkout-pause-modal .checkout-pause-meta .meta-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    text-align: center;
    line-height: 1.55;
}

#checkout-pause-modal .checkout-pause-meta .meta-label,
#checkout-pause-modal .checkout-pause-meta .meta-value {
    display: inline-block;
    float: none;
    text-align: center !important;
}

#checkout-pause-modal .checkout-pause-meta .meta-label::after {
    content: ':';
    margin-left: 2px;
}

#checkout-pause-modal .checkout-pause-note,
#checkout-pause-modal .checkout-pause-body {
    width: 100%;
    text-align: center !important;
}

#checkout-pause-modal .modal-buttons {
    margin-top: 0 !important;
    padding: 16px 24px 0 !important;
    justify-content: center !important;
}

#checkout-pause-modal .modal-button-group {
    justify-content: center;
}

@media (max-width: 767px) {
    #checkout-pause-modal .modal-content {
        max-width: calc(100vw - 28px);
        padding: 24px 0 20px !important;
    }

    #checkout-pause-modal .modal-title {
        padding: 0 18px 14px !important;
    }

    #checkout-pause-modal .modal-body.centered-content {
        margin: 0 12px !important;
        padding: 16px 14px 8px !important;
        gap: 10px;
    }

    #checkout-pause-modal .checkout-pause-meta .meta-row {
        font-size: 15px;
    }

    #checkout-pause-modal .modal-buttons {
        padding: 14px 18px 0 !important;
    }
}
