.lottery-bet-page.has-amount-presets{padding-bottom:240px}
.lottery-bet-bar.has-amount-presets{display:grid;grid-template-columns:minmax(0,1fr) 88px;grid-template-rows:36px 24px 42px;gap:10px 12px;padding:12px;align-items:center}
.lottery-bet-bar>.lottery-amount-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;grid-column:1/-1;grid-row:1;min-width:0}
.lottery-amount-presets button{min-width:0;height:36px;padding:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #36394c;border-radius:7px;background:#222432;color:#e8e9f1;font-size:12px;cursor:pointer}
.lottery-amount-presets button.active{border-color:#ff526a;background:#ee4059;color:#fff}
.lottery-amount-presets .amount-preset-edit{border-color:#484459;background:#2a293b;color:#e8e9f1;font-weight:700}
.amount-preset-dialog{width:calc(100% - 32px);max-width:360px;max-height:85vh;overflow:auto;box-sizing:border-box;padding:20px;border:1px solid #36394c;border-radius:14px;background:#20212e;color:#f7f7fb}
.amount-preset-dialog::backdrop{background:#0009}
.amount-preset-dialog h3{margin:0 0 10px;font-size:17px}
.amount-preset-dialog p{font-size:12px;color:#aeb0be;line-height:1.6}
.amount-preset-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.amount-preset-fields label{font-size:12px;color:#aeb0be}
.amount-preset-fields input{display:block;box-sizing:border-box;width:100%;height:40px;margin-top:6px;padding:8px;border:1px solid #36394c;border-radius:7px;background:#171824;color:#fff;font-size:16px}
.amount-preset-dialog .amount-preset-error{min-height:19px;color:#ff6378}
.amount-preset-actions{display:flex;gap:10px}
.amount-preset-actions button{flex:1;height:40px;border:0;border-radius:8px;background:#303243;color:#fff;cursor:pointer}
.amount-preset-actions button[type=submit]{background:#ed4059}

/* 快捷金额、合计及操作各占一行；输入与确认按钮底边对齐。 */
.lottery-bet-bar.has-amount-presets>.lottery-clear{grid-column:2;grid-row:2;justify-self:end;width:auto;height:24px;padding:0 4px;white-space:nowrap;background:transparent;color:#aeb0be;font-size:12px}
.lottery-bet-bar.has-amount-presets>.lottery-confirm{grid-column:2;grid-row:3;width:100%;height:42px;padding:0;font-size:14px;border-radius:8px}
.lottery-bet-bar.has-amount-presets>div:not(.lottery-amount-presets){display:contents}
.lottery-bet-bar.has-amount-presets>div:not(.lottery-amount-presets)>span{grid-column:1;grid-row:2;line-height:24px;white-space:nowrap;font-size:12px}
.lottery-bet-bar.has-amount-presets label{grid-column:1;grid-row:3;display:grid;grid-template-columns:max-content 30px minmax(0,64px) 30px;gap:4px;align-items:center;margin:0;min-width:0}
.lottery-bet-bar.has-amount-presets .amount-input-label{font-size:11px;white-space:nowrap;color:#b8bac9}
.lottery-bet-bar.has-amount-presets label input{width:100%;min-width:0;height:42px;box-sizing:border-box;padding:0 3px;border:1px solid #36394c;border-radius:7px;font-size:14px;background:#242635}
.lottery-bet-bar.has-amount-presets label button{height:42px;padding:0;border:1px solid #36394c;border-radius:7px;font-size:21px;line-height:1;cursor:pointer}
@media(max-width:360px){.lottery-bet-bar.has-amount-presets{padding:12px 10px;column-gap:8px;grid-template-columns:minmax(0,1fr) 80px}.lottery-bet-bar>.lottery-amount-presets{gap:6px}.lottery-bet-bar.has-amount-presets label{grid-template-columns:max-content 28px minmax(0,64px) 28px;gap:3px}}
