.order-product-card{border:1px solid #ded9ee;border-radius:10px;padding:12px;margin:10px 0;min-width:0;width:100%;max-width:460px;box-sizing:border-box;background:#fff}
.order-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.order-card-header>div{min-width:0}.order-card-header .product-title{overflow-wrap:anywhere}.order-card-header small,.order-card-catalog{font-size:12px;color:#777182}.order-card-catalog{margin:6px 0;overflow-wrap:anywhere}
.order-card-summary{font-size:12px;line-height:1.8}.order-card-summary strong{margin-right:8px}.order-card-total{border-top:1px solid #ece8f4;margin-top:6px;padding-top:6px;font-weight:600}.order-card-option-scroll{max-height:min(48dvh,420px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.order-card-color{font-size:12px;font-weight:600;padding:8px 4px;background:#f7f5fc}
.order-card-options{width:100%;table-layout:fixed;min-width:0}.order-card-options th[data-column-key=size]{width:30%}.order-card-options th[data-column-key=quantity]{width:70%}.order-card-options th,.order-card-options td{padding:5px 4px;overflow-wrap:anywhere}.order-card-options .ui-quantity-input{max-width:100%}.order-card-options .ui-quantity-pair{max-width:100%}.order-card-options .ui-text-action{white-space:normal;text-align:left}
.order-card-price-fields{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:5px;background:#f8f6fd}.order-card-price-fields label{display:grid;gap:4px;font-size:11px;min-width:0}.order-card-price-fields .ui-money-input{width:124px;min-width:0;height:32px;padding:5px}.order-card-split-summary{color:#6b50b8;font-size:12px}.order-card-error{font-size:12px;color:#bb3944}.order-product-card [hidden]{display:none!important}
@media(max-width:420px){.order-product-card{padding:9px}.order-card-options .ui-quantity-current{font-size:10px}.order-card-options .ui-text-action{font-size:11px}}

.order-card-option-status{display:inline-flex;vertical-align:middle;margin-left:8px;padding:2px 6px;border:1px solid #efc589;border-radius:5px;background:#fff3df;color:#925000;font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap}
.order-card-summary>[data-action="order-card-edit"]{display:block;margin-top:8px;}

.order-card-footer{display:flex;justify-content:flex-end;margin-top:8px;}
.order-card-footer .ui-text-action,.order-card-summary>[data-action="order-card-edit"]{display:flex;align-items:center;gap:7px;}
.order-card-chevron{display:inline-block;flex:none;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);}
.order-card-chevron.is-up,.order-card-color-group[open]>.order-card-color>.order-card-chevron{transform:translateY(2px) rotate(225deg);}
.order-card-color-group{min-width:0;}
.order-card-color-group>.order-card-color{display:flex;justify-content:space-between;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:9px 7px;color:#5c4b8e;}
.order-card-color-group>.order-card-color::-webkit-details-marker{display:none;}

.order-card-color-summary{margin-left:auto;font-size:11px;font-weight:400;color:#797282;}
.order-card-footer{justify-content:space-between;align-items:flex-end;gap:12px;}
.order-card-footer>[data-action="order-card-done"]{margin-left:auto;flex:none;}
.order-card-price-picker{min-width:0;flex:1;}
.order-card-price-picker>small{display:block;font-size:11px;color:#777182;}
.order-draft-totals{font-size:12px;line-height:1.6;min-width:0;overflow-wrap:anywhere;}
.order-draft-totals>span{display:inline-block;margin-right:8px;color:#8d631d;}
#orderForm>.ui-dialog-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;}
#orderForm>.ui-dialog-footer>.auth-message{flex:1 0 100%;order:3;}

.order-price-dialog{box-sizing:border-box;position:fixed;inset:auto;margin:0;padding:0;border:1px solid #d7cfea;border-radius:10px;background:#fff;color:#454151;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-shadow:0 10px 35px #30244835;overflow:hidden;}
.order-price-dialog::backdrop{background:#28203538;}
.order-price-dialog>form{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);margin:0;}
.order-price-dialog header{display:grid;gap:3px;padding:12px;border-bottom:1px solid #e9e4f2;flex:none;}
.order-price-dialog header span,.order-price-dialog header small{font-size:12px;overflow-wrap:anywhere;color:#777182;}
.order-price-editor-scroll{min-height:0;max-height:50dvh;overflow:auto;overscroll-behavior:contain;padding:0 12px;}
.order-price-option{padding:10px 0;border-bottom:1px solid #eee9f6;}
.order-price-option-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;overflow-wrap:anywhere;}
.order-price-allocation{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:7px;}
.order-price-allocation :is(label,.order-price-field){display:grid;gap:4px;font-size:11px;min-width:0;}
.order-price-dialog.ui-form-controls .order-price-allocation input[type=number]{box-sizing:border-box;min-width:0;width:100%;height:32px;min-height:32px;padding:5px 7px;font-size:12px;text-align:right;}
.order-price-field>.ui-money-control{width:100%}
.order-price-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;flex:none;border-top:1px solid #e9e4f2;}
.order-price-editor-total{padding:8px 12px;font-size:12px;overflow-wrap:anywhere;flex:none;}
.order-price-editor-error{margin:0;padding:0 12px;color:#b43845;font-size:12px;flex:none;}
.order-price-editor-error:empty{display:none;}

.order-price-color-group{padding:10px 0 4px;}
.order-price-color-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;background:#f3effc;color:#5c4b8e;padding:8px;border-radius:5px;font-size:12px;overflow-wrap:anywhere;}
.order-price-color-heading>span{font-size:11px;font-weight:400;}
.order-price-color-group>.order-price-option{margin:0 6px;}
.order-price-color-group>.order-price-option:last-child{border-bottom:0;}

.order-price-color-group>.order-price-color-heading{list-style:none;cursor:pointer;}
.order-price-color-group>.order-price-color-heading::-webkit-details-marker{display:none;}
.order-price-color-heading>[data-price-color-summary]{margin-left:auto;}
.order-price-color-group[open]>.order-price-color-heading>.order-card-chevron{transform:translateY(2px) rotate(225deg);}

.order-sample-badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:10px;line-height:18px;padding:0 4px;border-radius:4px;background:#fff0db;color:#95520b;font-weight:600;}
.order-size-with-sample{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;}
.order-size-with-sample>span:first-child{min-width:0;overflow-wrap:anywhere;}
.order-quantity-sample-cell{position:relative;}
.order-quantity-sample-cell>.order-sample-badge{position:absolute;left:3px;top:50%;transform:translateY(-50%);pointer-events:none;}
.order-sample-summary{font-size:12px;overflow-wrap:anywhere;}
.order-card-price-picker{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;}
.order-card-price-picker>small{flex-basis:100%;}
.order-sample-choices{display:flex;flex-wrap:wrap;gap:6px;padding:10px 4px;}
.order-sample-choices button{min-width:38px;max-width:100%;padding:5px 9px;border:1px solid #ded9ee;border-radius:6px;background:#fff;color:#655c73;font-size:12px;overflow-wrap:anywhere;}
.order-sample-choices button[aria-pressed=true]{border-color:#d38a35;background:#fff0db;color:#8b4b08;}

.order-card-summary .order-sample-label,.order-card-summary .order-sample-count{color:#ad600c;font-weight:600;}
