.pb553-dialog{width:min(1060px,calc(100vw - 28px));max-width:1060px;}
.pb553-dialog header small{letter-spacing:.09em;font-weight:700;}
.pb553-dialog h3,.pb553-dialog p{overflow-wrap:anywhere;}
.pb553-intro{margin:0 0 16px;line-height:1.5;}
.pb553-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0;}
.pb553-toolbar label{display:grid;gap:5px;flex:1;min-width:200px;}
.pb553-toolbar input,.pb553-form input,.pb553-form textarea,.pb553-part input{width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172b3f;font:inherit;}
.pb553-count{font-size:13px;font-weight:700;white-space:nowrap;}
.pb553-sources{display:grid;gap:8px;}
.pb553-source{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #dbe3eb;border-radius:10px;cursor:pointer;background:#fff;}
.pb553-source[hidden]{display:none;}
.pb553-source:has(input:checked){border-color:#087f8c;background:#edf8f8;}
.pb553-source input,.pb553-check input{width:19px;height:19px;accent-color:#087f8c;}
.pb553-source small,.pb553-part small{display:block;margin-top:4px;color:#596a7b;line-height:1.4;}
.pb553-source:has(input:disabled){opacity:.64;cursor:default;}
.pb553-source .pb553-code{font-size:12px;font-weight:700;}
.pb553-order{margin:14px 0;border:1px solid #d6e0ea;border-radius:12px;overflow:hidden;background:#fff;}
.pb553-order-head{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:15px;background:#f3f7fa;}
.pb553-order-head h3{margin:0 0 4px;font-size:17px;}
.pb553-order-head p{margin:0;font-size:13px;color:#526476;}
.pb553-tag{display:inline-block;padding:5px 9px;border-radius:20px;font-size:12px;font-weight:700;white-space:nowrap;background:#e2f3f1;color:#08695f;}
.pb553-tag.whole{background:#fff0e1;color:#975317;}
.pb553-order-body{padding:14px 16px;}
.pb553-part{display:grid;grid-template-columns:minmax(0,1fr) 138px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e7edf3;}
.pb553-part input{text-align:right;}
.pb553-part input:read-only{background:#f0f3f7;color:#475569;}
.pb553-balance{padding:10px 0 0;font-size:13px;font-weight:700;color:#a34c18;}
.pb553-balance.ok{color:#087268;}
.pb553-form{display:grid;gap:14px;margin-top:18px;}
.pb553-form>label:not(.pb553-check){display:grid;gap:6px;font-weight:600;}
.pb553-check{display:flex;gap:10px;align-items:flex-start;line-height:1.5;font-size:14px;font-weight:400;}
.pb553-check input{flex:0 0 19px;margin-top:2px;}
.pb553-check.explicit{padding:12px;background:#fff4e6;border:1px solid #efd0a8;border-radius:9px;}
.pb553-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;}
.pb553-table th,.pb553-table td{padding:10px 8px;border-bottom:1px solid #e3eaf0;text-align:right;vertical-align:top;overflow-wrap:anywhere;}
.pb553-table th:first-child,.pb553-table td:first-child{width:38%;text-align:left;}
.pb553-table small{display:block;margin-top:4px;color:#596a7b;}
.pb553-table td:last-child{font-weight:700;}
.pb553-warning{color:#a35b20;font-weight:700;}
.pb553-dialog footer{gap:8px;flex-wrap:wrap;}
.pb553-dialog footer button{min-height:44px;}
.pb553-dialog [role=alert]{margin-top:14px;line-height:1.5;}
.pb553-dialog [role=alert]:empty{display:none;}
.pb553-dialog :focus-visible{outline:3px solid #087f8c;outline-offset:3px;}
@media(max-width:620px){
 .pb553-dialog{width:calc(100vw - 12px);max-width:none;}
 .pb553-dialog .oc550-body{padding:14px;}
 .pb553-source{grid-template-columns:22px minmax(0,1fr);}
 .pb553-source .pb553-code{grid-column:2;}
 .pb553-order-head{flex-direction:column;padding:12px;}
 .pb553-order-body{padding:12px;}
 .pb553-part{grid-template-columns:minmax(0,1fr) 105px;}
 .pb553-table{font-size:12px;}
 .pb553-table th,.pb553-table td{padding:9px 4px;}
 .pb553-dialog footer .btn{flex:1 1 135px;white-space:normal;}
}
@media(prefers-reduced-motion:reduce){.pb553-dialog *{scroll-behavior:auto!important;transition:none!important;}}
