.rebate-open-button{background:#fff;color:#5268c3;border:1px solid #dfe4f3;border-radius:12px;padding:11px 18px;font:inherit;font-size:14px;cursor:pointer;min-height:44px}
.rebate-open-button:hover{background:#f5f7ff;border-color:#a8b6e6}
#app-shell[data-rebate-enabled="false"] [data-rebate-open],#app-shell[data-rebate-enabled="false"] .journey-card-quote{display:none!important}
#rebate-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 40px));max-width:none;height:min(760px,90dvh);max-height:90dvh;border:1px solid #e8ebf3;border-radius:24px;padding:0;background:#fff;color:#303644;box-shadow:0 24px 90px #19244130;overflow:hidden}
#rebate-dialog[open]{display:flex;flex-direction:column}#rebate-dialog::backdrop{background:#24283766;backdrop-filter:blur(5px)}
#rebate-dialog *{box-sizing:border-box}#rebate-dialog button,#rebate-dialog select{font:inherit;font-size:13px;cursor:pointer;border:1px solid #e2e6f0;border-radius:10px;padding:8px 12px;min-height:40px;background:#fff;color:#5a6580}
#rebate-dialog button:focus-visible,#rebate-dialog select:focus-visible,.rebate-open-button:focus-visible{outline:2px solid #8399f0;outline-offset:2px}
#rebate-dialog button:disabled{cursor:wait;opacity:.6}
.rebate-header{display:flex;align-items:center;justify-content:space-between;padding:24px 28px 16px;flex-shrink:0}.rebate-header small{font-size:12px;color:#8d94a2;display:block;margin-bottom:7px}.rebate-header h2{font-size:24px;line-height:1.4;margin:0}
#rebate-dialog .rebate-close{width:42px;height:42px;padding:0;border:0;border-radius:50%;font-size:28px;color:#8d94a2;background:#f5f6f9}
.rebate-body{display:flex;flex-direction:column;flex:1;padding:0 28px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}.rebate-totals{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex-shrink:0}
.rebate-total{border:1px solid #e8ebf4;border-radius:17px;padding:20px;background:#fbfcff;min-width:0}.rebate-total span{display:block;font-size:13px;color:#717c90}.rebate-total strong{display:block;font-size:30px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:7px 0;color:#384763}.rebate-total:last-child strong{color:#425fbd}.rebate-total small{font-size:11px;color:#8b93a2}
.rebate-note{font-size:12px;line-height:1.8;min-height:3.6em;color:#858d9b;margin:12px 0 18px;flex-shrink:0}.rebate-toolbar{display:flex;align-items:center;gap:9px;border-top:1px solid #edf0f5;padding-top:16px;flex-shrink:0}.rebate-toolbar label{font-size:13px;color:#6e788b}.rebate-toolbar button{margin-left:auto}.rebate-status{font-size:12px;color:#939aa8;line-height:1.8;min-height:22px;margin:12px 0;flex-shrink:0}.rebate-status button{margin-left:10px}
.rebate-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rebate-order{padding:16px;border:1px solid #e6eaf1;border-radius:15px;min-width:0;background:#fff;display:flex;flex-direction:column;gap:8px}.rebate-order-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#949bab;font-size:12px}.rebate-state{background:#f1f4fa;color:#667695;padding:3px 7px;border-radius:6px;font-size:11px}.rebate-order[data-state="available"] .rebate-state{background:#edf6f0;color:#508068}.rebate-order[data-state="invalid"] .rebate-state{background:#f7f1f1;color:#ad7e7e}.rebate-order h3{font-size:14px;font-weight:600;line-height:1.65;margin:2px 0 0;overflow-wrap:anywhere}.rebate-order-id{font-size:11px;color:#959caa;overflow-wrap:anywhere;margin:0}.rebate-order-amount{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto;padding-top:5px}.rebate-order-amount span{font-size:12px;color:#818b9d}.rebate-order-amount strong{font-size:22px;color:#576cb0;font-variant-numeric:tabular-nums}.rebate-order-note{font-size:12px;color:#7d8798;line-height:1.7;margin:0}.rebate-order small{font-size:11px;line-height:1.6;color:#959cac}
.rebate-empty{grid-column:1/-1;text-align:center;padding:38px 18px;color:#858e9f;background:#fafbfe;border:1px dashed #e4e8f1;border-radius:16px}.rebate-empty strong{font-size:15px;font-weight:500}.rebate-empty p{font-size:12px;line-height:1.8;max-width:370px;margin:10px auto 0}
#rebate-dialog .rebate-more{display:block;margin:18px auto 0;min-width:130px}#rebate-dialog .rebate-more[hidden]{display:none}.rebate-footer{padding:14px 28px;border-top:1px solid #edf0f5;font-size:11px;line-height:1.8;color:#9bA2af;flex-shrink:0}
@media(max-width:600px){#rebate-dialog{width:100%;margin:auto 0 0;max-height:94dvh;border-radius:22px 22px 0 0;border-bottom:0}.rebate-header{padding:20px 18px 14px}.rebate-header h2{font-size:22px}.rebate-body{padding:0 18px 20px}.rebate-total{padding:16px 12px}.rebate-total strong{font-size:26px}.rebate-total small{font-size:10px}.rebate-list{grid-template-columns:1fr}.rebate-footer{padding:12px 18px max(14px,env(safe-area-inset-bottom))}#rebate-dialog select{font-size:16px}.rebate-toolbar label{display:none}}

/* Keep the frame still while results change; only the order area scrolls. */
.rebate-results{display:flex;flex-direction:column;flex:1;min-height:180px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;padding-right:4px;margin-top:10px}
.rebate-results>.rebate-list,.rebate-results>.rebate-more{flex-shrink:0}
.rebate-results [hidden]{display:none!important}
.rebate-waiting{flex:1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;text-align:center;color:#747f94}
.rebate-waiting>.nz-loader{--nz-size:68px;margin-bottom:4px}
.rebate-loading-image{width:68px;height:82px;object-fit:contain;margin-bottom:4px}
.rebate-waiting strong{font-size:14px;font-weight:500;line-height:1.6;color:#626f86}
.rebate-waiting>span:last-child{font-size:12px;line-height:1.6;color:#969eac}
.rebate-results[data-view="error"] .rebate-status{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;min-height:160px}
.rebate-results[data-view="error"] .rebate-status button{margin-left:0}
.rebate-results .rebate-empty{background:none;border:0;padding:32px 18px}
.rebate-totals[data-loading="true"] strong{position:relative;color:transparent}
.rebate-totals[data-loading="true"] strong::after{content:'';position:absolute;left:0;top:50%;width:100px;max-width:100%;height:28px;transform:translateY(-50%);border-radius:7px;background:linear-gradient(100deg,#edf0f7 25%,#f8f9fc 50%,#edf0f7 75%);background-size:200% 100%;animation:rebate-balance-pulse 1.8s ease-in-out infinite}
@keyframes rebate-balance-pulse{to{background-position:-200% 0}}
@media(max-width:600px){#rebate-dialog{height:90dvh}.rebate-waiting>.nz-loader{--nz-size:60px}}
@media(max-height:720px){.rebate-header{padding-top:14px;padding-bottom:10px}.rebate-header small{display:none}.rebate-total{padding:12px}.rebate-note{margin:8px 0}.rebate-toolbar{padding-top:10px}.rebate-body{padding-bottom:12px}}
@media(prefers-reduced-motion:reduce){.rebate-totals[data-loading="true"] strong::after{animation:none}}
.nz-page-hidden .rebate-totals[data-loading="true"] strong::after{animation-play-state:paused}
