.ly-invoice-preview-btn{width:100%;margin-bottom:10px;border-color:#168cff;color:#55aaff;background:transparent}.ly-invoice-fields{margin-top:10px}.ly-invoice-modal{width:min(760px,92vw)}.ly-invoice-scroll{max-height:72vh;overflow:auto;padding:10px;background:#081221}.ly-invoice{width:680px;box-sizing:border-box;margin:auto;padding:26px;background:#fff;color:#172033;font:14px/1.45 Arial,sans-serif}.ly-invoice *{box-sizing:border-box}.ly-invoice header{text-align:center}.ly-invoice header h2,.ly-invoice header p{margin:3px}.ly-invoice header h1{color:#7137c8;font-size:27px;margin:12px}.ly-invoice section{padding:10px 0;border-top:1px dashed #aab3c3}.ly-invoice h3{margin:0 0 8px;color:#7137c8;font-size:14px}.ly-inv-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 18px}.ly-inv-grid p,.ly-invoice p{margin:5px 0}.ly-inv-layout{display:grid;grid-template-columns:190px 1fr;gap:20px}.ly-inv-layout img,.ly-inv-placeholder{width:190px;height:125px;object-fit:cover;border-radius:7px;background:#eef0f4;display:grid;place-items:center}.ly-inv-pay{display:grid;grid-template-columns:1fr 1.3fr;gap:18px}.ly-inv-pay>div:first-child p{display:flex;justify-content:space-between}.ly-inv-pay .orange{color:#f06b18}.ly-inv-pay .green{color:#16984e}.ly-inv-qr{display:grid;grid-template-columns:130px 1fr;gap:12px;align-items:center}.ly-inv-qr img{width:130px;height:130px}.ly-inv-terms{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.ly-inv-terms>div{padding:0 12px;border-right:1px solid #ccd2dc}.ly-inv-terms>div:last-child{border:0}.ly-inv-terms p{font-size:12px;text-align:justify}.ly-invoice footer{text-align:center;border-top:1px dashed #aab3c3;padding-top:12px}.ly-invoice-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:12px;flex-wrap:wrap}
@media(max-width:680px){.ly-invoice-modal{width:96vw}.ly-invoice-scroll{padding:5px;overflow:auto}.ly-invoice-actions{display:grid;grid-template-columns:1fr}.ly-invoice-actions .btn{width:100%}.ly-invoice-fields{grid-template-columns:1fr}.ly-invoice{transform-origin:top left}.ly-inv-grid{grid-template-columns:1fr 1fr}}

.ly-inv-store{display:block;text-align:center;margin-bottom:12px}.ly-invoice .ly-inv-store-logo{width:90px;height:auto;max-height:90px;object-fit:contain;display:block}.ly-inv-store h2{font-size:23px;color:#7137c8}.ly-inv-warranty{font-size:13px;line-height:1.55;text-align:left;overflow-wrap:anywhere}.ly-inv-warranty ul{margin:6px 0 0;padding-left:20px}.ly-inv-warranty li{margin:6px 0}.ly-invoice-image-wrap img{display:block;width:100%;height:auto}.ly-invoice-image-wrap{max-width:100%}

.ly-invoice .ly-line-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;text-align:left}.ly-invoice .ly-line-table th,.ly-invoice .ly-line-table td{padding:7px 4px;border-bottom:1px solid #333;vertical-align:top;overflow-wrap:anywhere}.ly-invoice .ly-line-table th:first-child{width:57%}.ly-invoice .ly-line-table th:nth-child(2){width:7%}.ly-invoice .ly-line-table th:nth-child(3),.ly-invoice .ly-line-table th:nth-child(4){width:18%;text-align:right}.ly-invoice .ly-line-table td:nth-child(3),.ly-invoice .ly-line-table td:nth-child(4){text-align:right}.ly-invoice .ly-item-note{display:block;font-style:italic;white-space:pre-wrap;margin-top:4px}.ly-invoice .ly-extra-detail h3{margin-top:12px}

/* Keep invoice tables within the same content edges as payment and warranty text. */
.ly-invoice .ly-extra-detail{width:100%;max-width:100%;min-width:0}.ly-invoice table.ly-line-table{width:100%;min-width:0!important;max-width:100%;table-layout:fixed}.ly-invoice table.ly-line-table th{background:#f0edf6;color:#514267}.ly-invoice table.ly-line-table th,.ly-invoice table.ly-line-table td{white-space:normal;overflow-wrap:anywhere}

/* Bank details remain beside the payment totals in image and print previews. */
.ly-invoice .ly-inv-pay{grid-template-columns:minmax(0,1fr) 275px;gap:18px;align-items:start}
.ly-invoice .ly-inv-pay>div{min-width:0}
.ly-invoice .ly-inv-qr{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:center;font-size:12px;line-height:1.35}
.ly-invoice .ly-inv-qr img{display:block;width:100px;height:100px;object-fit:contain}
.ly-invoice .ly-inv-qr p{margin:0;overflow-wrap:anywhere}
