/* Preview payment UI. The native top layer is released before provider authentication. */
.test-checkout-panel .tc-totals { display:grid; gap:.5rem; padding:1rem 0; margin:0; border-bottom:1px solid var(--line,#504139); }
.tc-totals div { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; }
.tc-totals dt { color:#d8cfc7; font-size:.9rem; } .tc-totals dd { margin:0; font-weight:700; font-variant-numeric:tabular-nums; }
.tc-retrieval,.tc-privacy { margin-top:1rem; } .tc-retrieval { padding:.85rem 1rem; border-left:3px solid #cfac72; background:#221c17; border-radius:4px; }
.tc-retrieval strong,.tc-privacy strong { color:#f1e8dd; font-size:.94rem; } .checkout-summary :is(.tc-retrieval,.tc-privacy) p { margin:.3rem 0 0; color:#d1c6bc; }
.tc-consent { display:flex; align-items:flex-start; gap:.6rem; padding:1rem 0 .3rem; cursor:pointer; font-size:.94rem; line-height:1.55; }
.tc-consent input { width:1.1rem; height:1.1rem; flex:none; margin:.18rem 0 0; accent-color:#c7a469; }
#testCheckoutMode,#testCheckoutMessage { margin:.5rem 0; } #testCheckoutMessage:empty { display:none; }
.tc-dialog:not([open]) { display:none; }
.tc-dialog { box-sizing:border-box; position:fixed; inset:0; width:min(100%,34rem); max-width:100%; max-height:100vh; max-height:100dvh; margin:auto; padding:0; border:0; border-radius:16px; color:#241e1b; background:#fff; font:400 1rem/1.5 var(--sans,system-ui); text-align:left; overflow:auto; overscroll-behavior:contain; }
.tc-dialog::backdrop { background:rgba(15,10,8,.74); }
.tc-dialog-layout { display:flex; flex-direction:column; max-height:100vh; max-height:100dvh; }
.tc-dialog header { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; padding:max(1rem,env(safe-area-inset-top)) 1rem .8rem; border-bottom:1px solid #e7ded7; }
.tc-dialog header small { color:#765536; font-weight:650; } .tc-dialog h2 { margin:.15rem 0 0; font-size:1.35rem; }
.tc-close,.tc-prepare { border:1px solid #998879; border-radius:.5rem; background:white; color:#31261f; min-height:44px; padding:.45rem .8rem; font:inherit; cursor:pointer; }
.tc-dialog .tc-scroll { min-height:0; overflow:auto; overscroll-behavior:contain; }
.tc-dialog :is(.tc-order,#tc-amount) { margin:0; padding:0 1rem; color:#41372f; font-size:.93rem; }
.tc-dialog .tc-order { padding-top:.8rem; font-weight:700; } .tc-dialog #tc-amount { padding-bottom:.6rem; }
.tc-dialog footer { border-top:1px solid #e7ded7; padding:.65rem max(1rem,env(safe-area-inset-right)) max(.8rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); }
.tc-dialog p.tc-state { color:#564b42; margin:0 0 .45rem; font:400 .87rem/1.45 var(--sans,system-ui); overflow-wrap:anywhere; }
.tc-dialog .tc-authorize { min-height:46px; margin:0; width:100%; border:0; border-radius:.65rem; background:#3f2d22; color:white; cursor:pointer; }
.tc-dialog .tc-authorize:disabled { background:#eee9e5; color:#68605a; cursor:not-allowed; } .tc-dialog .tc-prepare:not([hidden]) { margin-bottom:.5rem; }
.tc-dialog :focus-visible { outline:3px solid #966715; outline-offset:-3px; }
@media(max-width:420px) { .tc-dialog {border-radius:0;} }
/* At extreme zoom/landscape allow the entire sheet to scroll instead of pinching the widget out. */
@media(max-height:420px) { .tc-dialog-layout {max-height:none;} .tc-dialog .tc-scroll {overflow:visible;} }
