.bundle-editor-overlay{position:fixed;inset:0;z-index:1800;background:#17352f99;display:flex;align-items:center;justify-content:center;padding:16px;color:#233b34;font-family:inherit}
.bundle-editor-dialog{position:relative;background:#f7faf8;border-radius:18px;border:1px solid #d6e5dc;box-shadow:0 24px 80px #102c3c55;width:min(1320px,98vw);max-height:94vh;overflow:auto}
.bundle-editor-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;background:#fff;border-bottom:1px solid #dfebe4;border-radius:18px 18px 0 0}
.bundle-editor-dialog header small{color:#14836a;font-size:12px;font-weight:700}.bundle-editor-dialog h2{margin:4px 0;font-size:23px;overflow-wrap:anywhere}
.bundle-editor-dialog button{font:inherit;border:1px solid #cdded3;border-radius:8px;background:white;color:#285749;padding:9px 13px;cursor:pointer;min-height:40px;line-height:1.45}
.bundle-editor-dialog button:hover{background:#e9f4ed;border-color:#7caf99}.bundle-editor-dialog button:focus-visible,.bundle-editor-dialog input:focus-visible,.bundle-editor-dialog select:focus-visible{outline:3px solid #168b70;outline-offset:2px}
.bundle-editor-intro{margin:16px 24px;padding:13px 16px;background:#e9f4ef;border-radius:10px;font-size:14px;line-height:1.7}
.bundle-editor-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:20px;padding:0 24px 16px}.bundle-editor-layout aside{border:1px solid #dbe8e0;background:#fff;border-radius:12px;padding:12px;min-height:350px}
[data-group-list]{display:grid;gap:9px}[data-group-list] button{text-align:left;width:100%;padding:12px}[data-group-list] span{display:block;font-weight:700;overflow-wrap:anywhere}[data-group-list] small{display:block;color:#70847a;margin-top:5px;font-size:11px}[data-group-list] button.selected{border:2px solid #16836b;background:#e7f4ed}
.bundle-group-actions{display:grid;gap:8px;margin-top:20px}.bundle-group-actions button:last-child{color:#a34b46}
.bundle-editor-layout main{min-width:0}.bundle-group-fields{display:grid;grid-template-columns:160px 1fr 1fr;gap:12px}.bundle-editor-dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px}.bundle-editor-dialog input:not([type=checkbox]),.bundle-editor-dialog select{box-sizing:border-box;width:100%;font:inherit;color:inherit;padding:9px;border:1px solid #cdded3;border-radius:7px;background:white;min-height:39px}.bundle-editor-dialog input[readonly]{background:#eef3ef;color:#74857a}
.bundle-rule-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.bundle-rule-row>label:last-child{flex-direction:row;align-items:center}.bundle-rule-row input[type=number]{width:75px}.bundle-editor-dialog .bundle-check{flex-direction:row;align-items:center;gap:9px}.bundle-check input{accent-color:#14836a;width:18px;height:18px}
.bundle-category-row{display:flex;gap:12px;align-items:flex-end;border-top:1px solid #dfe9e2;padding:14px 0}.bundle-category-row label{flex:1}.bundle-rows-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}.bundle-rows-toolbar>div{display:flex;gap:8px}
.bundle-table-scroll{overflow:auto;border:1px solid #dae6de;border-radius:10px;background:white;max-height:42vh}.bundle-table-scroll table{border-collapse:collapse;width:100%;min-width:870px;font-size:13px}.bundle-table-scroll th{padding:12px 8px;text-align:left;white-space:nowrap;background:#edf5ef;position:sticky;top:0;z-index:1}.bundle-table-scroll td{padding:9px 7px;border-top:1px solid #e3ebe6;overflow-wrap:anywhere}.bundle-table-scroll tr:nth-child(even){background:#f8fbf9}.bundle-table-scroll td:nth-child(3){min-width:115px;max-width:190px}.bundle-table-scroll td:nth-child(4){min-width:150px}.bundle-table-scroll td:nth-child(5){min-width:80px}.bundle-table-scroll td:nth-child(6){min-width:65px}.bundle-table-scroll td:nth-child(7){min-width:85px}.bundle-table-scroll td:nth-child(8){min-width:130px}.bundle-table-scroll input[type=checkbox]{width:18px;height:18px;accent-color:#14836a}
.bundle-table-scroll td:nth-child(2){white-space:nowrap;min-width:60px}
.bundle-empty{padding:35px 16px;text-align:center;color:#789085;font-size:14px}.bundle-price-note{color:#657e71;font-size:12px;line-height:1.7}.bundle-editor-dialog [data-bundle-error]{margin:0 24px 14px;color:#a13939;font-size:13px;line-height:1.7;overflow-wrap:anywhere;min-height:20px}
.bundle-editor-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border-top:1px solid #dfe8e2;padding:16px 24px;position:sticky;bottom:0}.bundle-editor-dialog footer span{font-size:12px;color:#657e71}.bundle-editor-dialog footer>div{display:flex;gap:8px}.bundle-editor-dialog button.bundle-primary{background:#14836a;color:#fff;border-color:#14836a}
.bundle-item-picker{position:absolute;inset:100px 20px auto auto;width:min(420px,90%);max-height:65vh;overflow:auto;padding:16px;background:#fff;border:1px solid #bad5c9;border-radius:14px;box-shadow:0 8px 35px #173d3640;z-index:2}.bundle-item-picker[hidden]{display:none}.bundle-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}[data-picker-results]{display:grid;gap:8px;margin-top:12px}[data-picker-results] button{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px}[data-picker-results] small{color:#70847a;flex-shrink:0}
@media(max-width:750px){.bundle-editor-overlay{padding:7px}.bundle-editor-dialog{width:100%;max-height:97vh;border-radius:12px}.bundle-editor-dialog header{padding:13px}.bundle-editor-dialog h2{font-size:18px}.bundle-editor-intro{margin:12px;padding:10px;font-size:12px}.bundle-editor-layout{grid-template-columns:1fr;padding:0 12px 12px;gap:12px}.bundle-editor-layout aside{min-height:0;padding:10px}[data-group-list]{display:flex;overflow:auto}[data-group-list] button{width:150px;flex-shrink:0}.bundle-group-actions{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:9px;gap:5px}.bundle-group-actions button{font-size:12px;padding:7px 3px}.bundle-group-fields{grid-template-columns:1fr 1fr}.bundle-group-fields label:first-child{grid-column:1/-1}.bundle-rule-row{flex-wrap:wrap}.bundle-rows-toolbar{flex-wrap:wrap}.bundle-editor-dialog footer{padding:12px;flex-wrap:wrap}.bundle-editor-dialog footer>div{width:100%;justify-content:flex-end}.bundle-editor-dialog footer button{font-size:12px}.bundle-editor-dialog [data-bundle-error]{margin:0 12px 12px}.bundle-table-scroll{max-height:37vh}}
