.kaspi-promo-review-panel[hidden],[data-view="admin-orders"]>.data-table-wrap[hidden]{display:none!important}
.kaspi-promo-review-panel{margin:0 0 10px;padding:9px;border:1px solid #e9d6bb;border-radius:13px;background:#fffaf3;color:#2f2823}
.kpr-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px}
.kpr-toolbar>div{display:grid;gap:2px;flex:1 1 320px}
.kpr-toolbar b{font-size:.8rem}
.kpr-toolbar b span{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#f7dfae;color:#805b09;font-size:.65rem}
.kpr-toolbar small,.kpr-no-suggestions{font-size:.62rem;line-height:1.35;color:#746b62}
.kpr-toolbar label{flex:0 1 185px}
.kpr-toolbar input,.kpr-code-picker>input[type=search]{width:100%;min-height:30px;padding:4px 8px;border:1px solid #e3d7c9;border-radius:7px;background:#fff;color:#332d28;font:inherit;font-size:.67rem}
.kpr-toolbar button,.kpr-actions button,.kpr-pagination button{min-height:30px;padding:4px 10px;border:1px solid #e2d3c3;border-radius:7px;background:#fff;color:#795230;font:700 .66rem "Golos Text",sans-serif;cursor:pointer}
.kpr-toolbar button:disabled,.kpr-actions button:disabled,.kpr-pagination button:disabled{opacity:.55;cursor:default}
.kpr-list{display:grid;gap:6px}
.kpr-item{display:grid;gap:5px;padding:7px 8px;border:1px solid #eee2d3;border-radius:9px;background:#fff}
.kpr-item-head,.kpr-item-head>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.kpr-item-head{justify-content:space-between}
.kpr-item-head strong{font-size:.73rem}
.kpr-item-head small,.kpr-reason{font-size:.6rem;color:#7b7068}
.kpr-item-mark,.kpr-question{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#e9a935;color:#fff;font:800 .64rem "Golos Text",sans-serif}
.kpr-question{width:15px;height:15px;margin-right:5px;vertical-align:middle}
.kpr-source{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:.66rem;line-height:1.35;overflow-wrap:anywhere}
.kpr-source b{color:#8b5521;white-space:nowrap}
.kpr-source span{color:#3e3935}
.kpr-suggestions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.kpr-suggestions small{font-size:.6rem;color:#746b62}
.kpr-suggestion{padding:3px 6px;border:1px solid #f1d6a5;border-radius:6px;background:#fff9ec;color:#80510b;font:700 .59rem "Golos Text",sans-serif;cursor:pointer}
.kpr-suggestion span{font-weight:400;color:#665d54}
.kpr-no-suggestions{margin:0}
.kpr-actions{display:flex;align-items:end;gap:6px;flex-wrap:wrap}
.kpr-code-field{display:grid;gap:3px;flex:1 1 220px;min-width:200px;font-size:.58rem;font-weight:700;color:#645951}
.kpr-code-picker{position:relative;min-width:0}
.kpr-code-options[hidden]{display:none}
.kpr-code-options{position:absolute;z-index:35;top:calc(100% + 3px);left:0;right:0;max-height:238px;overflow-y:auto;padding:3px;border:1px solid #dfcab8;border-radius:7px;background:#fff;box-shadow:0 8px 24px #321e1526}
.kpr-code-options button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:28px;padding:4px 7px;border:0;border-radius:4px;background:transparent;color:#342b24;text-align:left;font-size:.65rem;font-weight:400;white-space:normal}
.kpr-code-options button b{white-space:nowrap}.kpr-code-options button span{font-size:.6rem;color:#756b62;text-align:right}
.kpr-code-options button:hover,.kpr-code-options button.active{background:#fff1e3;color:#923d1a}
.kpr-code-hint{display:block;padding:7px;color:#776c62;font-size:.6rem;font-weight:400;line-height:1.35}
.kpr-actions .kpr-accept{background:#d85b28;border-color:#d85b28;color:#fff}
.kpr-actions .kpr-dismiss{color:#6e6760}
.kpr-empty,.kpr-error{margin:0;padding:14px;border-radius:8px;font-size:.69rem;line-height:1.35}
.kpr-empty{background:#fff;color:#756a60}
.kpr-error{margin-bottom:8px;background:#fff0ec;color:#9c321d}
.kpr-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px;font-size:.63rem;color:#746b62}
.order-workflow-tabs .promo-review-tab.has-kaspi-reviews{border-color:#d9a63f;color:#74500e;background:#fff2d7}
html[data-theme="dark"] .kaspi-promo-review-panel{background:#302923;border-color:#6c543a;color:#f8f0e7}
html[data-theme="dark"] .kpr-item,html[data-theme="dark"] .kpr-empty,html[data-theme="dark"] .kpr-toolbar input,html[data-theme="dark"] .kpr-code-picker>input[type=search],html[data-theme="dark"] .kpr-code-options{background:#27231f;border-color:#665448;color:#f8f0e7}
html[data-theme="dark"] .kpr-code-options button{color:#f8f0e7}html[data-theme="dark"] .kpr-code-options button:hover,html[data-theme="dark"] .kpr-code-options button.active{background:#5c3a29}
html[data-theme="dark"] .kpr-source span,html[data-theme="dark"] .kpr-toolbar small,html[data-theme="dark"] .kpr-item-head small,html[data-theme="dark"] .kpr-reason{color:#d0bfb0}
@media(max-width:760px){.kpr-toolbar label{flex:1 1 100%}.kpr-code-field{flex-basis:100%}.kpr-actions button{flex:1 1 auto}}

.kpr-source>span{flex:1;min-width:0}.kpr-products{font-size:.64rem;line-height:1.4;min-width:0}.kpr-products[open]{flex-basis:100%}.kpr-products summary{width:fit-content;color:#795230;cursor:pointer}.kpr-products>div{display:grid;gap:4px;margin-top:5px}.kpr-products small{font-size:.61rem;color:#746b62}.kpr-product-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;overflow-wrap:anywhere}.kpr-products button{font:inherit;border:1px solid #e2d3c3;border-radius:4px;padding:3px 6px;background:transparent;color:inherit;cursor:pointer}.kpr-product-line b,.kpr-product-line>span:last-child{white-space:nowrap}.kpr-pagination{justify-content:center}.kpr-pagination button{padding:5px 20px}html[data-theme="dark"] .kpr-products summary,html[data-theme="dark"] .kpr-products small{color:#d0bfb0}@media(max-width:760px){.kpr-product-line{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}.kpr-product-line>span:last-child{grid-column:1/-1}.kpr-actions>button,.kpr-pagination button{min-height:36px}}
