/* v1.1.24.6.56.93
 * File: lottery-orders.css
 * Updated: 2026-03-17
 * Notes:
 * - 第一轮物理拆分：将选号页共用样式拆到 assets/css/common/lottery-shared.css 与 assets/css/common/lottery-picker-base.css
 * - 本文件仅保留购物车 / 业务辅助 / 真正跨页面仍需留在全局的残余样式
 */
/* ========= 购物车 ========= */
.lottery-orders--cart {
    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 .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-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;
}

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

.lottery-orders--cart .usd-wallet-balance-msg a {
    color: #c9a96e !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.lottery-orders--cart .usd-wallet-balance-msg a:hover {
    text-decoration: underline !important;
}

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

/* ========= 业务辅助 ========= */
#cart-modal .lottery-ball {
    margin: 0 1px !important;
}

#wallet.lo-awins-mode .lsm-pager--wallet,
#wallet.lo-bwins-mode .lsm-pager--wallet {
    display: flex !important;
}

.lo-shortfall {
    color: #dc3545;
    font-weight: 700;
}

/* ========= 响应式（购物车残余） ========= */
@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 .usd-wallet-balance-msg{
    text-align: center !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;
}
