/* Separate exploration: Fibonacci × 4. Existing payment behavior is unchanged. */
:root{--fib-1:4px;--fib-2:8px;--fib-3:12px;--fib-5:20px;--fib-8:32px;--fib-13:52px;--motion-tap:160ms;--motion-select:260ms;--motion-grow:420ms;--ease-grow:cubic-bezier(.22,1,.36,1)}
.phone:not(.pix-mode) .blank-card{padding:var(--fib-5);border-radius:var(--fib-5);box-shadow:0 12px 32px #2424380d,0 1px 4px #24243805}
.wallet-unified .panel-heading{margin-bottom:var(--fib-5);gap:var(--fib-2)}
.wallet-unified .panel-heading h1{font-size:20px;line-height:28px;letter-spacing:-.5px}
.wallet-unified .wallet-deck{--stack-step:32px;--hero-height:176px;height:296px;margin-bottom:var(--fib-2)}
.wallet-unified .wallet-deck .wallet-card:not([aria-hidden="true"]),.wallet-unified .wallet-deck:not(.wallet-expanded) .wallet-card:nth-child(n+5):not([aria-hidden="true"]){transition:transform var(--motion-select) var(--ease-grow),height var(--motion-select) var(--ease-grow),width var(--motion-select) var(--ease-grow),left var(--motion-select) var(--ease-grow),filter var(--motion-select),opacity var(--motion-tap),box-shadow var(--motion-select)}
.wallet-unified .wallet-deck .wallet-card.wallet-active[aria-pressed="true"]:not([aria-hidden="true"]){width:100%;left:0;height:200px;min-height:200px}
.wallet-unified .wallet-show-all{min-height:44px;padding:var(--fib-2) var(--fib-5);margin:0 auto var(--fib-3)}
.wallet-unified .wallet-payment .merchant-terms{margin-bottom:var(--fib-3);padding-bottom:var(--fib-3);column-gap:var(--fib-3);row-gap:var(--fib-1)}
.wallet-unified .wallet-payment .merchant-total{margin-bottom:var(--fib-5)}
.wallet-unified .merchant-total strong{font-size:28px;line-height:32px;letter-spacing:-.7px}
.selfie{min-height:var(--fib-13);border-radius:var(--fib-8);transition:background var(--motion-tap),transform var(--motion-tap)}
.selfie:active{transform:scale(.98)}
.wallet-unified .alternative-link{min-height:44px;margin:var(--fib-3) auto 0;display:block;padding:var(--fib-3)}
.quiet-overlay .live-label{gap:var(--fib-1);transition-duration:var(--motion-tap)}
.receipt-details{margin-top:var(--fib-8);padding:var(--fib-5) 0}
.receipt-bank{gap:var(--fib-3);margin-bottom:var(--fib-5)}
.receipt-plan{gap:var(--fib-1);margin-top:var(--fib-3)}
.quiet-receipt{padding-top:var(--fib-5)}
.quiet-receipt .selfie{margin-top:var(--fib-8)}
.plan-toggle{min-height:var(--fib-13);padding:var(--fib-3) var(--fib-5)}
@media(max-height:740px){.wallet-unified .wallet-deck{--stack-step:28px;--hero-height:152px;height:256px}.wallet-unified .wallet-deck .wallet-card.wallet-active[aria-pressed="true"]:not([aria-hidden="true"]){height:172px;min-height:172px}.wallet-unified .panel-heading{margin-bottom:12px}.wallet-unified .wallet-show-all{margin-bottom:8px}.wallet-unified .wallet-payment .merchant-total{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-delay:0ms!important;transition-duration:.001ms!important}}

/* The wallet review fits the available phone height; only the expanded picker scrolls. */
.phone:not(.pix-mode) #reveal:has(.wallet-unified){padding-top:16px;padding-bottom:8px;bottom:8px;align-items:end}
.phone:not(.pix-mode) .blank-card.compact-banks:has(.wallet-unified){height:auto;max-height:100%;overflow:hidden}
.wallet-unified .wallet-deck{overflow:hidden;overscroll-behavior:contain}
.wallet-unified .wallet-deck.wallet-expanded{overflow-x:hidden;overflow-y:auto}
@media(max-width:500px){.phone:not(.pix-mode) #reveal:has(.wallet-unified){padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:8px;bottom:calc(8px + env(safe-area-inset-bottom))}}

@media(max-height:740px){
 .phone:not(.pix-mode) .blank-card.compact-banks:has(.wallet-unified){padding:14px 16px 10px}
 .wallet-unified .panel-heading{margin-bottom:8px}
 .wallet-unified .wallet-deck,.wallet-unified .wallet-deck.wallet-expanded{--stack-step:24px;--hero-height:172px;height:244px}
 .wallet-unified .wallet-deck .wallet-card:not([aria-hidden="true"]),
 .wallet-unified .wallet-deck:not(.wallet-expanded) .wallet-card:nth-child(n+5):not([aria-hidden="true"]){width:272px;max-width:100%;height:172px;min-height:172px;left:50%;transform:translate(-50%,calc(var(--slot)*24px)) scale(.92)}
 .wallet-unified .wallet-deck .wallet-card.wallet-active[aria-pressed="true"]:not([aria-hidden="true"]){width:272px;max-width:100%;height:172px;min-height:172px;left:50%;transform:translate(-50%,calc(var(--slot)*24px)) scale(1)}
 .wallet-unified .wallet-deck .wallet-card:hover{transform:translate(-50%,calc(var(--slot)*24px)) scale(.92)}
 .wallet-unified .wallet-deck .wallet-card.wallet-active:hover{transform:translate(-50%,calc(var(--slot)*24px)) scale(1)}
 .wallet-unified .wallet-show-all{min-height:40px;padding:6px 14px;margin-bottom:6px}
 .wallet-unified .wallet-payment .merchant-terms{margin-bottom:6px;padding-bottom:6px}
 .wallet-unified .wallet-payment .merchant-total{margin-bottom:8px}
 .wallet-unified .alternative-link{margin-top:4px}
 .wallet-unified .selfie{min-height:48px}
}

@media(max-height:620px){
 .phone:not(.pix-mode) .blank-card.compact-banks:has(.wallet-unified){padding:10px 12px 8px}
 .wallet-unified .panel-heading{margin-bottom:6px}
 .wallet-unified .panel-heading h1{font-size:18px;line-height:22px}
 .wallet-unified .wallet-deck,.wallet-unified .wallet-deck.wallet-expanded{--stack-step:18px;--hero-height:128px;height:182px}
 .wallet-unified .wallet-deck .wallet-card:not([aria-hidden="true"]),
 .wallet-unified .wallet-deck:not(.wallet-expanded) .wallet-card:nth-child(n+5):not([aria-hidden="true"]){width:203px;max-width:100%;height:128px;min-height:128px;left:50%;transform:translate(-50%,calc(var(--slot)*18px)) scale(.92)}
 .wallet-unified .wallet-deck .wallet-card.wallet-active[aria-pressed="true"]:not([aria-hidden="true"]){width:203px;max-width:100%;height:128px;min-height:128px;left:50%;transform:translate(-50%,calc(var(--slot)*18px)) scale(1)}
 .wallet-unified .wallet-deck .wallet-card:hover{transform:translate(-50%,calc(var(--slot)*18px)) scale(.92)}
 .wallet-unified .wallet-deck .wallet-card.wallet-active:hover{transform:translate(-50%,calc(var(--slot)*18px)) scale(1)}
 .wallet-unified .wallet-card-number,.wallet-unified .wallet-card-kind{bottom:14px}
 .wallet-unified .wallet-show-all{min-height:36px;padding:4px 12px;margin-bottom:4px}
 .wallet-unified .wallet-payment .merchant-terms{margin-bottom:4px;padding-bottom:4px}
 .wallet-unified .wallet-payment .merchant-total{margin-bottom:6px}
 .wallet-unified .merchant-total strong{font-size:24px;line-height:28px}
 .wallet-unified .selfie{min-height:44px}
 .wallet-unified .alternative-link{min-height:36px;margin-top:2px;padding:6px}
}
