/* v1.1.24.6.56.55
 * File: lottery-orders.css
 * Updated: 2026-03-12
 * Notes:
 * - 收拢主 CSS：合并旧基础层 + 首页风格覆盖层 + 微调补丁
 * - 保留业务层规则：数字球颜色/灰球、3D hundreds/tens/units、wallet/cart 辅助规则
 * - 保留最终有效微调：centered-content 弹窗正文居中、adder SVG 按钮、disabled 主按钮灰态
 * - 不改业务逻辑 / 不改彩种专属结构 / 不改 PHP 模板
 * - 2026-03-12：仅优化选号确认弹窗内部留白与按钮区间距
 */

:root {
    --number-size: 24px;
    --success-color: #0D6EFD;
    --danger-color: #A0B0C0;
    --dc-kn-ball-gap: 8px;
}

/* ========= 基础容器 / 文字体系 ========= */
.lottery-orders {
    max-width: 1240px;
    margin: 32px auto 44px !important;
    padding: 0 16px 28px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0f172a;
    font-family: Inter, "Segoe UI", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
}

.lottery-orders * {
    box-sizing: border-box;
}

.lottery-orders h2 {
    margin: 0 0 12px !important;
    color: #0f172a !important;
    font-size: clamp(28px, 3.2vw, 40px) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.lottery-orders > p {
    margin: 0 0 24px !important;
    color: #52637a !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
}

.modules-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px !important;
    justify-content: space-between;
    align-items: stretch;
}

.lottery-card {
    flex: 1 1 30%;
    min-width: 280px;
    padding: 24px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06) !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lottery-card:hover {
    border-color: #c7d8ee !important;
    box-shadow: 0 22px 52px rgba(15, 23, 42, .08) !important;
}

.lottery-card h3,
.lottery-orders .line-title,
.lottery-orders .module-title,
.lottery-orders .section-title {
    margin: 0 0 16px !important;
    color: #0f172a !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-align: center;
}

.placeholder {
    flex: 1 1 30%;
    min-width: 280px;
    height: 20px;
    background: transparent;
}

/* ========= 玩法 / 价格胶囊 ========= */
.play-type,
.play-type-3d,
.price-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px !important;
    flex-wrap: wrap;
    margin-bottom: 16px !important;
    background: transparent !important;
    font-size: 13px;
}

.play-type label,
.play-type-3d label,
.price-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 999px !important;
    background: #f6f9fd !important;
    color: #334155 !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.play-type label:hover,
.play-type-3d label:hover,
.price-options label:hover {
    background: #eef4fb !important;
    border-color: #bfd3ea !important;
    transform: translateY(-1px);
}

.play-type input[type="radio"],
.play-type-3d input[type="radio"],
.price-options input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border: 1.5px solid #b9c9de !important;
    border-radius: 50% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    cursor: pointer;
    display: inline-grid !important;
    place-items: center !important;
    position: relative !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.play-type input[type="radio"]::before,
.play-type-3d input[type="radio"]::before,
.price-options input[type="radio"]::before {
    content: '';
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #0D6EFD !important;
    transform: scale(0) !important;
    transition: transform .18s ease !important;
    position: static !important;
}

.play-type input[type="radio"]:checked,
.play-type-3d input[type="radio"]:checked,
.price-options input[type="radio"]:checked {
    border-color: #0D6EFD !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .12) !important;
    background: #fff !important;
}

.play-type input[type="radio"]:checked::before,
.play-type-3d input[type="radio"]:checked::before,
.price-options input[type="radio"]:checked::before {
    transform: scale(1) !important;
}

.price-value {
    color: #d62839;
    font-weight: 600;
}

/* 结算页：USD Wallet 显示在价格选项下方 */
.usd-wallet-hint {
    text-align: center;
    font-size: 12px;
    margin: -6px 0 12px;
}

.usd-wallet-hint strong {
    font-weight: 700;
    margin-right: 6px;
}

/* ========= 按钮 / 状态条 ========= */
.buttons-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

.status-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 14px !important;
    background: #f7fbff !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    flex: 1;
}

.lottery-button.clear {
    min-height: 42px;
    padding: 0 16px !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 14px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    flex: 1;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lottery-button.clear:hover {
    background: #f6f9fd !important;
    border-color: #bfd3ea !important;
    transform: translateY(-1px);
}

.lottery-button.randomize,
.lottery-orders button.lottery-button.randomize {
    min-height: 48px;
    padding: 0 18px !important;
    background: #0D6EFD !important;
    background-color: #0D6EFD !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    box-shadow: 0 14px 30px rgba(13, 110, 253, .18) !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lottery-button.randomize:hover,
.lottery-orders button.lottery-button.randomize:hover {
    background: #3388FF !important;
    background-color: #3388FF !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(51, 136, 255, .22) !important;
}

.lottery-button#buy-button,
.lottery-orders button#buy-button {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 20px !important;
    margin-top: 22px !important;
    background: #0D6EFD !important;
    background-color: #0D6EFD !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    box-shadow: 0 14px 30px rgba(13, 110, 253, .18) !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
    filter: none !important;
}

.lottery-button#buy-button:hover:not(:disabled),
.lottery-orders button#buy-button:hover:not(:disabled) {
    background: #3388FF !important;
    background-color: #3388FF !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(51, 136, 255, .22) !important;
    filter: none !important;
}

.lottery-button#buy-button:disabled,
.lottery-orders button#buy-button:disabled,
.lottery-orders button#buy-button[aria-disabled="true"],
.lottery-orders button#buy-button.is-disabled,
.lottery-orders .lottery-button#buy-button:disabled,
.lottery-orders .lottery-button#buy-button[aria-disabled="true"],
.lottery-orders .lottery-button#buy-button.is-disabled {
    background: var(--danger-color) !important;
    background-color: var(--danger-color) !important;
    color: #fff !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
    pointer-events: none;
}

/* ========= 选号区通用 ========= */
.number-selection {
    position: relative;
    min-height: 150px;
    text-align: center;
    margin-bottom: 15px;
}

.card-number {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: #555555;
    opacity: 0.3;
    z-index: 10;
    pointer-events: none;
    font-family: Roboto, sans-serif;
    font-weight: 700;
    text-align: center;
}

.digit-rows {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.digit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 10px;
}

.digit-label {
    text-align: center;
    font-size: 10px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.number-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.number {
    width: var(--number-size);
    height: var(--number-size);
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    line-height: var(--number-size);
    margin: 0 0 2px;
    aspect-ratio: 1 / 1;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.number:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.number:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* ========= 球号统一 ========= */
.balls-container,
.lottery-orders--cart .digits-container,
.lottery-orders--cart .keno-numbers-container,
.lottery-orders--cart .double-color-balls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.lottery-ball {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: var(--number-size) !important;
    height: var(--number-size) !important;
    line-height: var(--number-size) !important;
    border-radius: 50% !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    position: relative;
    box-sizing: border-box;
    border: 2px solid transparent;
    color: #fff;
}

.lottery-ball.orange-ball {
    background-color: #FFA500;
    border-color: #FFA500;
}

.lottery-ball.green-ball,
.lottery-ball.keno-number {
    background-color: #00B08C;
    border-color: #00B08C;
}

.lottery-ball.red-ball {
    background-color: #FF2752;
    border-color: #FF2752;
}

.lottery-ball.blue-ball {
    background-color: #267aff;
    border-color: #267aff;
}

.lottery-ball.hx-ball-miss,
.lottery-ball.orange-ball.hx-ball-miss,
.lottery-ball.green-ball.hx-ball-miss,
.lottery-ball.keno-number.hx-ball-miss,
.lottery-ball.red-ball.hx-ball-miss,
.lottery-ball.blue-ball.hx-ball-miss {
    background: #fff !important;
    border-color: #cfcfcf !important;
    color: #9a9a9a !important;
    box-shadow: none !important;
}

/* 购物车 / 模态：按彩票类型上色 */
.lottery-orders--cart[data-lottery-type="3d"] .lottery-ball:not(.hx-ball-miss),
.lottery-orders--cart[data-lottery-type="3D"] .lottery-ball:not(.hx-ball-miss),
.modal-body[data-lottery-type="3d"] .lottery-ball:not(.hx-ball-miss),
.modal-body[data-lottery-type="3D"] .lottery-ball:not(.hx-ball-miss) {
    background-color: #FFA500;
    border-color: #FFA500;
    color: #fff;
}

.lottery-orders--cart[data-lottery-type="keno8"] .lottery-ball:not(.hx-ball-miss),
.modal-body[data-lottery-type="keno8"] .lottery-ball:not(.hx-ball-miss) {
    background-color: #00B08C;
    border-color: #00B08C;
    color: #fff;
}

.lottery-orders--cart[data-lottery-type="doublecolor"] .lottery-ball.red-ball:not(.hx-ball-miss),
.modal-body[data-lottery-type="doublecolor"] .lottery-ball.red-ball:not(.hx-ball-miss) {
    background-color: #FF2752;
    border-color: #FF2752;
    color: #fff;
}

.lottery-orders--cart[data-lottery-type="doublecolor"] .lottery-ball.blue-ball:not(.hx-ball-miss),
.modal-body[data-lottery-type="doublecolor"] .lottery-ball.blue-ball:not(.hx-ball-miss) {
    background-color: #267aff;
    border-color: #267aff;
    color: #fff;
}

/* 3D 位数标签 */
.lottery-orders--cart[data-lottery-type="3d"] .digits-container .lottery-ball:nth-child(1)::before,
.lottery-orders--cart[data-lottery-type="3D"] .digits-container .lottery-ball:nth-child(1)::before,
.modal-body[data-lottery-type="3d"] .digits-container .lottery-ball:nth-child(1)::before,
.modal-body[data-lottery-type="3D"] .digits-container .lottery-ball:nth-child(1)::before {
    content: 'hundreds: ';
    color: #000;
    font-size: 14px;
    font-weight: 400;
    margin-right: 2px;
    display: inline-block;
    vertical-align: middle;
}

.lottery-orders--cart[data-lottery-type="3d"] .digits-container .lottery-ball:nth-child(2)::before,
.lottery-orders--cart[data-lottery-type="3D"] .digits-container .lottery-ball:nth-child(2)::before,
.modal-body[data-lottery-type="3d"] .digits-container .lottery-ball:nth-child(2)::before,
.modal-body[data-lottery-type="3D"] .digits-container .lottery-ball:nth-child(2)::before {
    content: 'tens: ';
    color: #000;
    font-size: 14px;
    font-weight: 400;
    margin-right: 2px;
    display: inline-block;
    vertical-align: middle;
}

.lottery-orders--cart[data-lottery-type="3d"] .digits-container .lottery-ball:nth-child(3)::before,
.lottery-orders--cart[data-lottery-type="3D"] .digits-container .lottery-ball:nth-child(3)::before,
.modal-body[data-lottery-type="3d"] .digits-container .lottery-ball:nth-child(3)::before,
.modal-body[data-lottery-type="3D"] .digits-container .lottery-ball:nth-child(3)::before {
    content: 'units: ';
    color: #000;
    font-size: 14px;
    font-weight: 400;
    margin-right: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* ========= 结果 / 说明 ========= */
.expected-result {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    padding: 16px 18px !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%) !important;
    border: 1px solid #dbe4ef !important;
    border-left: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04) !important;
    text-align: left;
}

.expected-result p {
    margin: 8px 0 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

.expected-result span,
.lottery-orders strong,
.lottery-orders b {
    font-weight: 600 !important;
    color: #009944 !important;
}

.instructions,
.lottery-info {
    padding: 16px 18px !important;
    background: #f8fbff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #52637a !important;
    font-weight: 500 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04) !important;
}

/* ========= 弹窗 ========= */
.lottery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .48) !important;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.modal-content {
    width: min(92vw, 540px) !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    padding: 24px 22px 22px !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18) !important;
    animation: modalFadeIn .22s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close:hover {
    color: #000;
}

.modal-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: #0f172a !important;
    text-align: center;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.modal-subtitle {
    margin: 12px 0 8px !important;
    text-align: center;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #52637a !important;
    font-weight: 500 !important;
}

.modal-body {
    text-align: left;
    margin: 14px 0 !important;
    padding: 0 !important;
    line-height: 1.7 !important;
    color: #52637a !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* centered-content 弹窗正文居中 */
.centered-content,
.lottery-modal .modal-body.centered-content {
    text-align: center !important;
    text-indent: 0;
    padding: 0 !important;
}

.lottery-modal .modal-body.centered-content p,
.lottery-modal .modal-body.centered-content .confirm-message,
.lottery-modal .modal-body.centered-content .topup-placeholder-text,
.lottery-modal .modal-body.centered-content .modal-subtitle {
    margin: 0 auto !important;
    text-align: center !important;
}

.modal-button {
    min-height: 48px;
    padding: 0 18px !important;
    border: none;
    border-radius: 14px !important;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #fff;
    text-decoration: none !important;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.modal-button:hover,
.modal-button:focus,
.modal-button:active {
    color: #fff;
    text-decoration: none;
}

.modal-button.confirm-button,
.modal-button.single-button,
.single-button {
    background: #0D6EFD !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 14px 30px rgba(13, 110, 253, .18) !important;
}

.modal-button.confirm-button:hover,
.modal-button.single-button:hover,
.single-button:hover {
    background: #3388FF !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(51, 136, 255, .22) !important;
}

.modal-button.cancel-button {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #dbe4ef !important;
    box-shadow: none !important;
}

.modal-button.cancel-button:hover {
    background: #f6f9fd !important;
    color: #0f172a !important;
    border-color: #bfd3ea !important;
    transform: translateY(-1px);
}

.modal-button-group {
    display: flex;
    gap: 12px !important;
    justify-content: center;
}

.modal-buttons.single-button-container {
    display: flex;
    justify-content: center;
}

#cart-modal .modal-content {
    padding: 28px 28px 24px !important;
}

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

#cart-modal .modal-body {
    margin: 0 !important;
    padding: 0 !important;
}

#cart-modal #cart-modal-message {
    margin: 0 0 10px !important;
    text-align: center !important;
    line-height: 1.65 !important;
}

#cart-modal .modal-subtitle {
    margin: 0 0 6px !important;
    min-height: 0 !important;
}

#cart-modal .modal-body > div {
    margin-top: 6px !important;
}

#cart-modal #selections-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}

#cart-modal #selections-list .selection-line {
    margin: 0 !important;
    line-height: 1.85 !important;
}

#cart-modal .modal-buttons {
    margin-top: 18px !important;
    padding-top: 2px !important;
}

#cart-modal .modal-button-group {
    gap: 12px !important;
}

#cart-modal .modal-button {
    min-width: 88px;
}

/* ========= Add card / 加号按钮 ========= */
.lottery-orders .lottery-card--adder .add-card__inner {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    position: relative !important;
    margin: 0 auto 10px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: visible !important;
}

.lottery-orders .lottery-card--adder .add-card__inner::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 30px !important;
    height: 30px !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 30px 30px !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20t%3D%221773163072374%22%20viewBox%3D%220%200%201024%201024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20p-id%3D%221631%22%3E%3Cpath%20d%3D%22M512%200C229.232731%200%200%20229.230924%200%20512S229.232731%201024%20512%201024c282.767269%200%20512-229.232731%20512-512S794.767269%200%20512%200z%20m268.803387%20550.394807H550.394807v230.40858c0%2027.160122-11.250941%2038.396613-38.394807%2038.396613-27.160122%200-38.412869-11.236491-38.412869-38.396613V550.394807H243.194807c-27.160122%200-38.394807-11.236491-38.394807-38.394807%200-27.143866%2011.236491-38.396613%2038.394807-38.396613h230.392324V243.196613c0-27.14206%2011.252747-38.396613%2038.412869-38.396613%2027.143866%200%2038.394807%2011.252747%2038.394807%2038.396613v230.406774h230.40858c27.143866%200%2038.394807%2011.252747%2038.394807%2038.396613%200%2027.158316-11.250941%2038.394807-38.394807%2038.394807z%22%20fill%3D%22%230D6EFD%22%20p-id%3D%221632%22/%3E%3C/svg%3E") !important;
}

/* ========= 购物车 ========= */
.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: #0D6EFD !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: #0D6EFD !important;
    background-color: #0D6EFD !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(13, 110, 253, .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: #3388FF !important;
    background-color: #3388FF !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: #0D6EFD !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: 768px) {
    .price-options {
        flex-direction: column;
        gap: 8px !important;
    }
}

@media (max-width: 767px) {
    .lottery-orders {
        margin: 24px auto 34px !important;
        padding: 0 14px 24px !important;
    }

    .modules-wrapper {
        gap: 16px !important;
    }

    .lottery-card {
        padding: 20px !important;
        border-radius: 22px !important;
    }

    .lottery-card h3,
    .lottery-orders .line-title,
    .lottery-orders .module-title,
    .lottery-orders .section-title {
        font-size: 22px !important;
    }

    .play-type,
    .play-type-3d,
    .price-options {
        gap: 10px !important;
    }

    .play-type label,
    .play-type-3d label,
    .price-options label {
        min-height: 38px;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .buttons-container {
        gap: 10px !important;
    }

    .status-display,
    .lottery-button.clear {
        min-height: 40px;
        font-size: 12px !important;
    }

    .lottery-button.randomize,
    .lottery-button#buy-button,
    .lottery-orders button.lottery-button.randomize,
    .lottery-orders button#buy-button,
    .lottery-orders--cart .pay-now-button {
        min-height: 48px;
        font-size: 14px !important;
    }

    .modal-content {
        width: min(92vw, 540px) !important;
        padding: 22px 16px 18px !important;
    }

    #cart-modal .modal-content {
        padding: 24px 18px 20px !important;
    }

    .modal-title {
        font-size: 22px !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;
    }
}

/* 2026-03-11：修正 Quick Pick 按钮样式 */
.lottery-orders .buttons-container .lottery-button.randomize,
.lottery-orders .buttons-container button.lottery-button.randomize{
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    min-height: 42px !important;
    line-height: 1 !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    background: #0D6EFD !important;
    background-color: #0D6EFD !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 14px 30px rgba(13,110,253,.18) !important;
}

.lottery-orders .buttons-container .lottery-button.randomize:hover,
.lottery-orders .buttons-container button.lottery-button.randomize:hover{
    background: #3388FF !important;
    background-color: #3388FF !important;
}
/* 2026-03-11：付款按钮上方余额不足提示居中 */
.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;
}