iband-bundle{display:block;margin:14px 0}
.ibundle__open,.ibundle__add{width:100%;padding:14px;border:0;border-radius:5px;background:#172d3a;color:#fff;font:inherit;font-weight:650;cursor:pointer}
.ibundle__dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1000px,calc(100% - 24px));max-width:none;height:min(800px,90dvh);max-height:90dvh;overflow:hidden;border:0;border-radius:12px;padding:24px;background:#fff;color:#222;box-shadow:0 15px 60px #0005;font-family:var(--font-body-family);font-size:14px;line-height:1.4;letter-spacing:normal}
.ibundle__dialog[open]{display:flex;flex-direction:column;gap:12px}
.ibundle__dialog *{box-sizing:border-box}
.ibundle__dialog::backdrop{background:#0008}
.ibundle__close{position:absolute;right:12px;top:10px;width:36px;height:36px;border:0;background:none;font-size:28px;cursor:pointer}
.ibundle__dialog h2{margin:0 40px 0 0;font-family:inherit;font-size:26px;font-weight:650;line-height:1.2;text-transform:none;letter-spacing:normal}
.ibundle__intro{margin:0;color:#555;font-size:13px}
.ibundle__slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex-shrink:0}
.ibundle__slot{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto 1fr auto;gap:4px 8px;min-height:116px;min-width:0;border:1px solid #ccd3d7;border-radius:8px;padding:10px;background:#fff;color:#222;text-align:left;font:inherit;cursor:pointer}
.ibundle__slot[data-active=true]{border-color:#172d3a;box-shadow:0 0 0 1px #172d3a;background:#f5f8fa}
.ibundle__slot-tab{grid-column:1/-1;color:#172d3a;font-size:12px;font-weight:650}
.ibundle__selected-image{display:block;width:56px;height:64px;object-fit:contain;background:#fff;grid-row:2/4}
.ibundle__slot-name{font-size:12px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ibundle__price{font-size:13px}.ibundle__price strong{color:#27643d}
.ibundle__empty{grid-column:1/-1;align-self:center;text-align:center;font-size:13px;color:#172d3a;padding:8px}
.ibundle__empty::before{content:'+';display:block;font-size:25px;line-height:1}
.ibundle__workspace{flex:1;min-height:100px;display:flex;gap:18px;overflow:auto;overscroll-behavior:contain;padding:2px}
.ibundle__catalog{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
.ibundle__editor{width:260px;flex-shrink:0;overflow:auto;border-left:1px solid #e4e8ea;padding-left:16px}
.ibundle__editor[hidden]{display:none}
.ibundle__editor-title{font-size:13px;font-weight:650;margin:0 0 10px}
.ibundle__option{margin-top:10px;font-size:12px}
.ibundle__option select,.ibundle__search-label input{display:block;width:100%;padding:9px;border:1px solid #bbb;border-radius:5px;background:#fff;color:#222;font:inherit}
.ibundle__colors{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;padding:2px}
.ibundle__colors button{display:block;width:42px;height:42px;padding:2px;background:#fff;border:1px solid #ddd;border-radius:4px;cursor:pointer}
.ibundle__colors button[aria-pressed=true]{border:2px solid #172d3a;padding:1px}
.ibundle__colors button:disabled{opacity:.35;cursor:default}
.ibundle__colors img{width:100%;height:100%;object-fit:contain;display:block}
.ibundle__search-label{display:block;font-size:12px}.ibundle__search-label input{margin-top:4px}
.ibundle__instruction{font-size:13px;margin:8px 0;color:#172d3a;font-weight:650}
.ibundle__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:auto;min-height:0;align-content:start;padding:2px;overscroll-behavior:contain}
.ibundle__product{border:1px solid #ddd;border-radius:7px;padding:8px;background:#fff;text-align:left;color:#222;cursor:pointer}
.ibundle__product:hover,.ibundle__product[aria-pressed=true]{border-color:#172d3a;box-shadow:0 0 0 1px #172d3a}
.ibundle__product img{display:block;width:100%;height:90px;object-fit:contain;background:#fff}
.ibundle__product span{display:block;font-size:12px;line-height:1.3;margin-top:5px}
.ibundle__footer{flex-shrink:0;display:grid;grid-template-columns:1fr 270px;gap:4px 18px;border-top:1px solid #e4e8ea;padding-top:12px;background:#fff}
.ibundle__total{font-weight:650;margin:0;font-size:15px}
.ibundle__note{font-size:11px;color:#555;margin:0}
.ibundle__error{color:#a00;margin:0;grid-column:1/-1;grid-row:3}
.ibundle__add{grid-column:2;grid-row:1/3;align-self:center}.ibundle__add:disabled{opacity:.55;cursor:not-allowed}
.ibundle__dialog button:focus-visible{outline:2px solid #172d3a;outline-offset:2px}
@media(max-width:600px){
.ibundle__dialog{padding:18px 12px 12px;width:calc(100% - 16px);height:92dvh;max-height:92dvh}
.ibundle__dialog[open]{gap:9px}.ibundle__dialog h2{font-size:21px}.ibundle__intro{font-size:11px}
.ibundle__slots{gap:6px}.ibundle__slot{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:100px;padding:7px 4px;text-align:center}
.ibundle__slot-tab{font-size:10px}.ibundle__selected-image{width:40px;height:40px}.ibundle__slot-name{display:none}.ibundle__price{font-size:12px}.ibundle__empty{font-size:11px;padding:4px 0}
.ibundle__workspace{display:block}.ibundle__catalog{min-height:220px;height:100%}.ibundle__workspace:has(.ibundle__editor:not([hidden])) .ibundle__catalog{height:240px}
.ibundle__editor{width:100%;border:0;border-top:1px solid #ddd;padding:12px 0;margin-top:12px;overflow:visible}
.ibundle__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ibundle__product img{height:75px}
.ibundle__option select,.ibundle__search-label input{font-size:16px}.ibundle__footer{grid-template-columns:1fr;gap:5px;padding-top:9px}.ibundle__add{grid-column:1;grid-row:3;padding:11px}.ibundle__error{grid-row:4}.ibundle__note{font-size:10px}.ibundle__total{font-size:13px}
}
