/* Keep the existing 430px panel and its viewport limits. */
#ritiriCassaPanel .ritiri-head{background:#172c3a;padding:12px 14px}
#ritiriCassaPanel .ritiri-title{font-weight:750;letter-spacing:-.02em;font-size:1.1rem}
#ritiriCassaPanel .ritiri-close{background:#ffffff1c;border:1px solid #ffffff36;font-weight:650}
/* The active tab and order list form one continuous colored section. */
#ritiriCassaPanel{--takeaway-section-bg:#e7f1fa;--takeaway-section-accent:#2b658d}
#ritiriCassaPanel[data-order-tab="consegne"]{--takeaway-section-bg:#efeafa;--takeaway-section-accent:#6d51a2}
#ritiriCassaPanel .ritiri-tabs{background:#fff;border:0;gap:5px;padding:7px 10px 0}
#ritiriCassaPanel .ritiri-tab{background:#f4f6f8;border:0;border-top:3px solid transparent;border-radius:10px 10px 0 0;color:#60717e;text-transform:none;font-size:.9rem;font-weight:700;min-height:42px;padding:7px 10px 10px}
#ritiriCassaPanel .ritiri-tab.active{background:var(--takeaway-section-bg);color:var(--takeaway-section-accent);border-top-color:var(--takeaway-section-accent);box-shadow:none;font-weight:800}
#ritiriCassaPanel .ritiri-list{background:var(--takeaway-section-bg);padding:10px;min-height:0;overscroll-behavior:contain}
#ritiriCassaPanel .ritiri-card{background:#fff;border:1px solid #d8e0e7;border-left:3px solid #c5d1db;padding:7px 10px;margin-bottom:8px;border-radius:12px;box-shadow:0 2px 6px #172c3a08;color:#172c3a}
#ritiriCassaPanel .ritiri-card.consegna:not(.pagato){background:#fff;border-color:#d8e0e7;border-left-color:#c5d1db}
#ritiriCassaPanel .ritiri-card.pagato{background:#cef0d8;border-color:#70b789;border-left-color:#70b789}
.tk-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:22px}
.tk-customer{display:flex;gap:6px;align-items:baseline;min-width:0;font-size:15px}
.tk-customer strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}
.tk-number{flex:none;font-size:12px;color:#435562;font-weight:650;font-variant-numeric:tabular-nums}
.tk-amount{flex:none;font-size:18px;font-weight:800;letter-spacing:-.025em;white-space:nowrap;font-variant-numeric:tabular-nums}
.tk-info{display:flex;justify-content:space-between;gap:8px;margin-top:3px;font-size:12px;line-height:16px}
.tk-time,.tk-payment{display:flex;flex-direction:column;min-width:0}
.tk-info b{font-weight:650}.tk-info small{font-size:11px;color:#435562;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-payment{text-align:right;max-width:45%}.tk-paid{color:#7c3e00}.pagato .tk-paid{color:#166534}
.tk-contact{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:19px;margin-top:3px;font-size:12px}
.tk-city{min-width:0;display:flex;align-items:center;gap:4px;font-weight:650}.tk-city span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-city svg{width:13px;height:13px;flex:none;fill:none;stroke:#6c8493;stroke-width:1.8}
.tk-phone{white-space:nowrap;color:#205f82;font-weight:750;text-decoration:none;flex-shrink:0}.tk-no-phone{color:#435562;font-size:11px}
#ritiriCassaPanel .ritiri-actions{gap:4px;margin-top:7px}
#ritiriCassaPanel .ritiri-actions button{height:36px;padding:4px 2px;font-size:10px;font-weight:650;line-height:1.15;border:1px solid #d7e1e7;border-radius:7px;background:#f1f5f8;color:#304e60;box-shadow:none}
#ritiriCassaPanel .ritiri-actions .ritiri-pay{background:#216348;border-color:#216348;color:#fff;font-size:12px;font-weight:750}
#ritiriCassaPanel .ritiri-actions .ritiri-receipt{background:#e9f1f8;color:#275985;border-color:#cbdeed}
#ritiriCassaPanel .ritiri-actions button:disabled{opacity:.55;cursor:default}
#ritiriCassaPanel button:focus-visible,#ritiriCassaPanel a:focus-visible{outline:3px solid #3594d3;outline-offset:2px}
#ritiriCassaPanel .ritiri-detail{border-color:#e3eaf0;font-weight:500}
@media(max-width:390px){.tk-customer{font-size:14px}.tk-number{font-size:11px}.tk-amount{font-size:16px}.tk-info{font-size:11px}.tk-contact{font-size:11px}#ritiriCassaPanel .ritiri-actions button{font-size:9px}.tk-info small{font-size:10px}}

#ritiriCassaButton[hidden]{display:none!important}

.tk-price{display:flex;gap:7px;align-items:baseline;justify-content:flex-end;min-width:0;max-width:56%;flex:none}.tk-method{font-size:11px;font-weight:650;color:#435562;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:95px}.tk-info{min-height:32px}.tk-payment{max-width:57%;min-height:32px}.tk-rider{min-height:16px}.tk-contact .tk-live{height:19px;padding:0 8px;line-height:17px;font-size:11px;font-weight:800;white-space:nowrap;border:1px solid #2a819a;border-radius:6px;color:#15566e;background:#e8f8fc;cursor:pointer}.tk-contact .tk-live[hidden]{display:none!important}@media(max-width:390px){.tk-method{max-width:65px;font-size:10px}.tk-price{gap:4px}.tk-phone{font-size:11px}}

/* Refined compact delivery contact row; larger Live target shares the address row. */
.tk-info{min-height:16px;align-items:center;gap:6px}.tk-time{display:flex;flex-direction:row;align-items:baseline;gap:4px;flex-wrap:wrap}.tk-time b,.tk-ordered{white-space:nowrap}.tk-info .tk-ordered{font-size:10px}.tk-payment{min-height:16px;flex:none}.ritiri-card:not(.consegna) .tk-info{min-height:32px;align-items:flex-start}.tk-contact{min-height:36px;line-height:16px;align-items:center}.tk-city{flex:1;align-items:flex-start;line-height:16px}.tk-city svg{margin-top:1px}.tk-city span{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.tk-rider-side{flex:none;max-width:96px;text-align:right}.tk-contact .tk-live{height:36px;min-width:76px;max-width:96px;padding:2px 8px;line-height:15px;font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:manipulation}.tk-live b{font-weight:800}.tk-live small{display:block;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:600;line-height:12px}.tk-rider-side>.tk-rider{display:block;font-size:11px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tk-rider-side>.tk-rider:empty,.tk-live:not([hidden])+.tk-rider{display:none}@media(max-width:390px){.tk-time{gap:3px}.tk-info .tk-ordered{font-size:9px}.tk-contact .tk-live{min-width:72px;max-width:88px}.tk-live small{max-width:70px}}
