/* Approved black/champagne bottom sheets. Scoped to these three dialogs only. */
.modal.safe-sheet-modal{align-items:flex-end;padding:0!important}
.safe-sheet-modal>.mask{background:rgba(0,0,0,.72)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html .safe-sheet-modal>.sheet.safe-sheet{position:relative;top:auto;bottom:auto;width:100%;max-width:440px!important;margin:0 auto;padding:12px 20px max(18px,env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px));box-sizing:border-box;max-height:calc(100dvh - 24px - max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px)) - var(--tg-content-safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;border:1px solid #2b2b2b;border-bottom:0;border-radius:16px 16px 0 0;background:#141414!important;box-shadow:none!important;color:#eee;transform:none!important;scrollbar-width:thin;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Segoe UI',sans-serif}
.safe-sheet>.handle{width:36px;height:3px;margin:0 auto 20px;background:#444;border-radius:2px}
.safe-sheet .safe-sheet-header{position:relative;display:flex;align-items:flex-start;gap:12px;padding-right:36px;margin:0 0 24px}
.safe-sheet .safe-sheet-symbol{width:26px;height:28px;flex:0 0 26px;margin-top:1px;color:#e2c79e}
.safe-sheet svg{display:block;width:100%;height:100%}
.safe-sheet .safe-sheet-header h2{font-size:18px;line-height:26px;font-weight:650;letter-spacing:0;margin:0;color:#f3f0ea}
.safe-sheet .safe-sheet-header p{font-size:12px;line-height:19px;color:#8c8c8c;margin:5px 0 0}
html .safe-sheet .safe-close.close{position:absolute;top:0;right:0;left:auto;bottom:auto;display:grid;place-items:center;width:32px;height:32px;padding:8px;border:0;border-radius:50%;background:#262626;color:#aaa;box-shadow:none;font-size:0;min-height:0}
.safe-sheet .safe-field{margin:0 0 19px}
.safe-sheet .safe-field>label{display:block;margin:0 0 8px;font-size:13px;line-height:19px;font-weight:500;color:#e9e9e9}
.safe-sheet .safe-field>small{display:block;margin:-4px 0 8px;font-size:11px;line-height:16px;color:#8d8d8d}
.safe-sheet .safe-input-wrap{position:relative;display:flex;align-items:center;min-width:0;min-height:48px;border:1px solid #363636;border-radius:7px;background:#151515;box-shadow:none;transition:border-color .15s}
.safe-sheet .safe-input-wrap:focus-within{border-color:#a38b69}
html .safe-sheet .safe-input-wrap>.input{display:block;width:100%;min-width:0;min-height:46px;height:46px;padding:10px 46px 10px 12px;margin:0;background:transparent!important;border:0!important;border-radius:7px;outline:none!important;box-shadow:none!important;font-size:16px;line-height:24px;letter-spacing:.04em;color:#eee;box-sizing:border-box}
.safe-sheet .safe-input-wrap>.input::placeholder{font-size:12px;letter-spacing:0;color:#767676}
.safe-sheet .safe-eye{position:absolute;right:5px;top:4px;display:grid;place-items:center;width:38px;height:38px;padding:10px;background:none;border:0;border-radius:5px;color:#858585}
.safe-sheet .safe-eye[aria-pressed=true]{color:#e4d0af}
.safe-sheet .safe-address-wrap>.input{padding-right:98px!important;font-size:12px!important;letter-spacing:0}
.safe-sheet .safe-address-tools{position:absolute;top:4px;right:4px;display:flex;align-items:center;height:38px;background:#151515}
.safe-sheet .safe-paste{padding:0 10px;height:28px;border-left:1px solid #363636;background:none;font-size:12px;color:#dfc9a6}
.safe-sheet .safe-scan{display:grid;place-items:center;width:32px;height:36px;padding:7px;border:0;background:none;color:#dfc9a6}
.safe-sheet .safe-foot-hint{display:flex;gap:8px;align-items:center;color:#8d8d8d;margin:0 0 18px;font-size:11px;line-height:17px}
.safe-sheet .safe-foot-hint>svg{width:17px;height:19px;flex:0 0 17px;color:#dbc09a}
.safe-sheet .safe-notice{border-left:3px solid #bba17a;background:#1e1e1e;border-radius:5px;padding:10px 12px;margin:0 0 18px;color:#a6a6a6;font-size:11px;line-height:18px}
html .safe-sheet .btn.safe-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;height:48px;margin:0;padding:10px 14px;border:1px solid #ede0cb;border-radius:7px;background:#f0e5d3!important;color:#111!important;box-shadow:none!important;font-size:15px;line-height:22px;font-weight:650;letter-spacing:0;filter:none;text-shadow:none}
.safe-sheet .safe-primary:disabled{opacity:.42;cursor:default}
.safe-sheet .safe-secondary{display:block;width:100%;padding:12px 0 0;margin:0;border:0;background:none;color:#a3a3a3;font-size:12px;line-height:20px;text-align:center}
.safe-sheet .safe-footer-copy{margin:10px 0 0;text-align:center;color:#7b7b7b;font-size:10px;line-height:17px}
.safe-sheet .safe-rebate-hero{padding:0 0 20px}
.safe-sheet .safe-rebate-hero>span{color:#969696;font-size:12px;line-height:20px}
.safe-sheet .safe-rebate-hero>div{display:flex;align-items:baseline;gap:9px;margin-top:8px;line-height:1.2}
.safe-sheet .safe-rebate-hero .safe-currency{font-size:23px;color:#dfc49b}
html .safe-sheet .safe-rebate-hero #rebateAmt{font-size:38px!important;line-height:46px;font-weight:600!important;letter-spacing:-1px;color:#f0e5d3!important;font-variant-numeric:tabular-nums}
.safe-sheet .safe-rebate-rows{border-top:1px solid #303030}
.safe-sheet .safe-rebate-rows>div,.safe-sheet .safe-rebate-rows>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:11px 0;box-sizing:border-box;border:0;border-bottom:1px solid #303030;background:none;font-size:12px;line-height:20px;color:#969696;text-align:left}
.safe-sheet .safe-rebate-rows strong{font-size:13px;font-weight:500;color:#e1e1e1;font-variant-numeric:tabular-nums}
.safe-sheet .safe-rebate-rows>button>svg{width:16px;height:16px;flex:0 0 16px}
.safe-sheet .safe-rebate-status{font-size:11px;line-height:18px;color:#888;padding:13px 0 17px}
.safe-sheet .safe-text-action{padding:0 0 14px;font-size:12px;color:#dfc49b;background:none;border:0}
.safe-sheet .safe-rebate-history{padding:8px 0 0;max-height:180px;overflow:auto}
.safe-sheet .safe-rebate-history>div{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #282828;color:#c2c2c2;font-size:12px}
.safe-sheet .safe-rebate-history small{font-size:10px;color:#777;display:block;margin-top:4px}
.safe-sheet .safe-rebate-history p{font-size:11px;color:#888;line-height:18px;margin:5px 0}
.safe-sheet [hidden]{display:none!important}
.safe-sheet button:focus-visible{outline:1px solid #cbb18a;outline-offset:3px}
@media(max-height:550px){.safe-sheet>.handle{margin-bottom:12px}.safe-sheet .safe-sheet-header{margin-bottom:16px}.safe-sheet .safe-field{margin-bottom:12px}.safe-sheet .safe-rebate-hero{padding-bottom:12px}}
/* Legacy sheets use left:50% plus translation; release both as a flex child. */
html .modal.safe-sheet-modal.show{display:flex!important;justify-content:center;align-items:flex-end}
html .safe-sheet-modal>.sheet.safe-sheet{left:auto!important;right:auto!important;flex:0 1 440px;z-index:1}
