.checkout-tip-backdrop{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,32,46,.57)}
.checkout-tip-modal{display:grid;grid-template-columns:42.6% minmax(0,1fr);width:min(1000px,52.1vw);height:min(840px,70vh);max-height:calc(100dvh - 32px);overflow:hidden;border-radius:10px;background:var(--paper,#fff);color:var(--ink,#434754);font:clamp(16px,1.4vw,27px) Calibri,"Segoe UI",Arial,sans-serif;box-shadow:var(--shadow,0 10px 40px #0003)}
.checkout-tip-applied,.checkout-tip-editor{min-width:0;min-height:0;padding:clamp(15px,1.25vw,24px)}
.checkout-tip-applied{display:flex;flex-direction:column;overflow:auto;border-right:1px solid var(--line,#ddd)}
.checkout-tip-modal h2{margin:0;font-size:1em;font-weight:700}
.checkout-tip-applied>[data-tip-applied]{flex:1;display:flex;flex-direction:column;min-height:0;margin-top:24px}
.checkout-tip-empty{margin:auto 0;font-size:1em}
.checkout-tip-applied article{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 0 12px;border-bottom:1px solid var(--line,#ddd)}
.checkout-tip-applied article>span{flex:1;min-width:0}.checkout-tip-applied article>strong{color:var(--green-2,#138454);white-space:nowrap;font-size:.9em}
.checkout-tip-applied article>button{flex:none;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:var(--red,#c93535);color:#fff;font:inherit;line-height:1}
.checkout-tip-editor{display:flex;flex-direction:column;gap:clamp(12px,1.25vw,24px);overflow:auto}
.checkout-tip-editor>header{display:flex;align-items:start;justify-content:space-between;gap:12px}
.checkout-tip-editor>header>button{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:1.5em;line-height:1}
.checkout-tip-total{display:flex;align-items:center;justify-content:space-between;gap:8px}.checkout-tip-total strong{color:var(--green-2,#138454);white-space:nowrap}
.checkout-tip-number{display:flex;align-items:center;gap:8px;min-height:clamp(44px,5.7vh,68px);padding:8px 12px;border:2px solid var(--green-2,#138454);border-radius:10px}
.checkout-tip-units{display:flex;flex:none;border-radius:30px;background:var(--mint,#e7f5ed)}
.checkout-tip-units>button{min-width:clamp(42px,5.2vw,100px);padding:8px;border:0;border-radius:30px;background:transparent;color:var(--green-2,#138454);font:inherit}.checkout-tip-units>button.active{background:var(--green-2,#138454);color:#fff}
#modal-root .checkout-tip-number>input{flex:1;width:0;min-width:0;min-height:0;padding:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;color:var(--green-2,#138454);font:inherit;text-align:right}
.checkout-tip-number>[data-tip-suffix]{flex:none;font-size:.9em}.checkout-tip-bottom{display:grid;gap:10px;margin-top:auto}
.checkout-tip-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.checkout-tip-keypad{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.checkout-tip-presets>button,.checkout-tip-keypad>button{min-width:0;padding:4px;border:1px solid var(--line,#ddd);border-radius:9px;background:var(--cream,#f2f3f5);color:var(--ink,#434754);font:inherit;touch-action:manipulation}
.checkout-tip-presets>button{min-height:clamp(38px,5vh,60px);font-size:.8em}.checkout-tip-keypad>button{min-height:clamp(50px,7vh,84px)}
.checkout-tip-confirm{width:100%;min-height:clamp(54px,7vh,84px);margin-top:14px;padding:8px;border:0;border-radius:9px;background:var(--green-2,#138454);color:#fff;font:bold 1.15em Calibri,"Segoe UI",Arial,sans-serif}
.checkout-tip-modal [data-tip-error]{margin:0;color:var(--red,#c93535);font-size:.75em}.checkout-tip-modal [hidden]{display:none!important}.checkout-tip-modal button:disabled{opacity:.4;cursor:wait}.checkout-tip-modal button:focus-visible{outline:3px solid var(--green-2,#138454);outline-offset:2px}
@media(max-width:1100px){.checkout-tip-modal{width:80vw;height:82vh}}
@media(max-width:700px){.checkout-tip-backdrop{padding:12px}.checkout-tip-modal{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:none;grid-template-columns:32% minmax(0,1fr);font-size:17px}.checkout-tip-applied,.checkout-tip-editor{padding:12px}.checkout-tip-applied article{display:grid;grid-template-columns:1fr auto;font-size:.85em}.checkout-tip-applied article strong{grid-row:2;grid-column:1/-1;font-size:.9em}.checkout-tip-units>button{min-width:36px;padding:6px}.checkout-tip-number{gap:4px;padding:6px}.checkout-tip-keypad{gap:4px}.checkout-tip-keypad>button{min-height:46px}.checkout-tip-empty{font-size:.85em}}
