/* CPI Quick Order - v2 */
.cpi-qo{direction:rtl;width:100%;max-width:1180px;margin:0 auto;color:#242424;font-family:inherit}
.cpi-qo *{box-sizing:border-box}
.cpi-qo [hidden]{display:none!important}
.cpi-qo-heading{margin:0 0 22px;font-size:25px;font-weight:700}
.cpi-qo-products{display:flex;flex-direction:column;gap:12px}
.cpi-qo-product{display:grid;grid-template-columns:90px minmax(150px,1.8fr) minmax(120px,1fr) minmax(110px,.8fr);align-items:center;gap:16px;padding:14px;border:1px solid #e6e6e6;border-radius:10px;background:#fff}
.cpi-qo-image{width:90px;height:90px;display:flex;align-items:center;justify-content:center}
.cpi-qo-image img{width:100%;height:100%;object-fit:contain;border-radius:6px}
.cpi-qo-product-title{font-weight:600;line-height:1.8}
.cpi-qo-price{font-weight:600;color:#333}
.cpi-qo-quantity label,.cpi-qo-design label,.cpi-qo-field label{display:block;margin-bottom:7px;font-size:14px;font-weight:600}
.cpi-qo input,.cpi-qo textarea,.cpi-qo select{width:100%;min-height:43px;padding:9px 11px;border:1px solid #d8d8d8;border-radius:6px;background:#fff;color:#222;font:inherit;outline:none}
.cpi-qo input:focus,.cpi-qo textarea:focus,.cpi-qo select:focus{border-color:#777}
.cpi-qo-quantity small,.cpi-qo-design small{display:block;margin-top:5px;color:#777;font-size:12px}
.cpi-qo-design{grid-column:2/-1;width:100%;padding-top:6px}
.cpi-qo-design .cpi-qo-file-label{margin-top:12px}
.cpi-qo-design input[type=file]{padding:6px}
.cpi-qo-section-title{margin:34px 0 16px;font-size:20px}
.cpi-qo-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.cpi-qo-field b{color:#c62828}
.cpi-qo-wide{grid-column:1/-1}
.cpi-qo textarea{min-height:90px;resize:vertical}
.cpi-qo-live-total,.cpi-qo-invoice-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0;padding:16px 18px;border:1px solid #e3e3e3;border-radius:8px;background:#fafafa}
.cpi-qo-live-total strong,.cpi-qo-invoice-total strong{font-size:20px}
.cpi-qo-button{min-height:49px;padding:10px 24px;border:0;border-radius:8px;background:#222;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.cpi-qo-button:disabled{opacity:.6;cursor:wait}
.cpi-qo-to-invoice{display:block;width:100%;margin-top:25px}
.cpi-qo-actions{display:flex;gap:12px;justify-content:space-between;margin-top:24px}
.cpi-qo-actions .cpi-qo-button{flex:1}
.cpi-qo-back{background:#777}
.cpi-qo-invoice-table{width:100%;border-collapse:collapse;margin:15px 0}
.cpi-qo-invoice-table th,.cpi-qo-invoice-table td{padding:12px 10px;border-bottom:1px solid #e8e8e8;text-align:right}
.cpi-qo-invoice-table th{background:#f7f7f7}
.cpi-qo-invoice-sub td{font-size:13px;color:#666}
.cpi-qo-customer-summary{margin-top:22px;padding:16px;border:1px solid #eee;border-radius:8px}
.cpi-qo-customer-summary h3{margin:0 0 10px}
.cpi-qo-gateway{display:flex;align-items:center;gap:10px;margin:10px 0;padding:12px;border:1px solid #e5e5e5;border-radius:7px}
.cpi-qo-gateway input{width:auto;min-height:auto}
.cpi-qo-no-gateway{padding:13px;background:#f7f7f7;border-radius:7px}
.cpi-qo-alert:empty{display:none}
.cpi-qo-alert .is-error,.cpi-qo-alert .is-ok{padding:12px 15px;margin-bottom:15px;border-radius:7px}
.cpi-qo-alert .is-error{background:#fff0f0;border:1px solid #f0caca;color:#9b2424}
.cpi-qo-alert .is-ok{background:#f0fff4;border:1px solid #ccebd4;color:#216b37}
.cpi-qo-success{text-align:center;padding:35px 15px;border:1px solid #dcefe1;border-radius:12px;background:#f8fff9}
.cpi-qo-success-mark{display:flex;width:62px;height:62px;align-items:center;justify-content:center;margin:0 auto 15px;border-radius:50%;background:#248a49;color:white;font-size:34px}
.cpi-qo-success h2{margin:0 0 12px}
.cpi-qo-tracking{font-weight:700;font-size:18px}
@media(max-width:700px){
 .cpi-qo-product{grid-template-columns:76px minmax(0,1fr);gap:10px 13px}
 .cpi-qo-image{width:76px;height:76px;grid-row:span 2}
 .cpi-qo-product-title{align-self:end}
 .cpi-qo-price{align-self:start}
 .cpi-qo-quantity,.cpi-qo-design{grid-column:1/-1}
 .cpi-qo-fields{grid-template-columns:1fr;gap:14px}
 .cpi-qo-wide{grid-column:auto}
 .cpi-qo-heading{font-size:22px}
 .cpi-qo-actions{flex-direction:column}
 .cpi-qo-actions .cpi-qo-button{width:100%}
}
