.automatic-offer-saving{display:block;margin:7px 0;padding:7px 9px;border-radius:9px;background:#fff2d5;color:#8b580d;font:700 11px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
[data-theme=dark] .automatic-offer-saving{background:#352b17;color:#f9d58e}
.offers-panel{--cat-bg:var(--card,#fff);--cat-text:var(--text,#0f172a);--cat-muted:var(--muted-2,#64748b);--cat-line:var(--border,#e2e8f0);color:var(--cat-text);background:var(--cat-bg);border:1px solid var(--cat-line);border-radius:24px;overflow:hidden;position:relative;height:100%;display:flex;flex-direction:column}
#automaticOffersModal .modal-dialog{max-width:1320px;width:calc(100% - 32px);height:calc(100dvh - 32px);margin:16px auto}
.offers-head{display:flex;align-items:center;gap:14px;padding:20px 24px;border-bottom:1px solid var(--cat-line);flex-shrink:0}
.offers-head-icon{width:45px;height:45px;border-radius:14px;background:#fff0cd;color:#ae7515;display:grid;place-items:center;font-size:24px}
.offers-head h3{font-size:23px;font-weight:850;margin:0 0 3px}.offers-head p{font-size:12px;color:var(--cat-muted);margin:0}.offers-head .btn-close{margin-left:auto}
.offers-body{display:grid;grid-template-columns:minmax(260px,33%) minmax(0,1fr);flex:1;min-height:0}
.offers-browser{display:flex;flex-direction:column;padding:18px;gap:12px;min-height:0;border-right:1px solid var(--cat-line)}
#offer-new,.offers-save{border:0;border-radius:12px;background:#111827;color:white;font-size:13px;font-weight:800;padding:13px}
.offers-search{display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--cat-line);border-radius:11px;color:var(--cat-muted)}
.offers-search input{border:0;outline:0;background:transparent;color:var(--cat-text);width:100%;min-width:0;font-size:12px}
#offers-list{display:flex;flex-direction:column;gap:9px;overflow-y:auto;min-height:0;flex:1}
.offers-row{border:1px solid var(--cat-line);background:var(--cat-bg);color:var(--cat-text);border-radius:14px;padding:14px;text-align:left;display:grid;gap:7px}
.offers-row.selected{border-color:#e2af4c;background:var(--catalog-soft,#fffaf0)}.offers-row strong{font-size:13px}.offers-row small{font-size:11px;color:var(--cat-muted)}
.offers-row span{font-size:10px;font-weight:800;color:#168158}.offers-row span.paused{color:var(--cat-muted)}
#offers-editor{overflow-y:auto;padding:24px;min-height:0}.offers-empty{padding:50px 12px;text-align:center;color:var(--cat-muted);font-size:13px}.offers-empty>i{font-size:44px;color:#c49436;display:block;margin-bottom:15px}.offers-empty h4{font-size:20px;font-weight:800;color:var(--cat-text)}
.offer-title-row{display:flex;gap:15px;align-items:center;margin-bottom:18px}.offer-title-row h4{font-size:22px;font-weight:850;margin:0;flex:1}.offer-enabled{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750}
.offer-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;margin-bottom:14px}
.offer-field input,.offer-field select,.offer-target-search{background:var(--cat-bg);color:var(--cat-text);border:1px solid var(--cat-line);padding:11px;border-radius:10px;min-width:0;width:100%;font-size:13px}
.offer-fields-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.offer-preview{background:linear-gradient(125deg,#fff3d4,#fffaf0);color:#78501b;border:1px solid #f1d998;border-radius:15px;padding:17px;margin:5px 0 20px}.offer-preview strong{display:block;font-size:17px;margin-bottom:6px}.offer-preview small{display:block;font-size:11px;line-height:1.6}
.offer-target-picker{border:1px solid var(--cat-line);border-radius:12px;padding:12px;margin-bottom:16px}.offer-target-picker summary{cursor:pointer;font-size:12px;font-weight:750}.offer-target-search{margin:10px 0;font-size:12px}
.offer-target-options{max-height:190px;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;gap:5px}.offer-target-options label{display:flex;align-items:center;gap:8px;font-size:12px;padding:7px;border-radius:7px}.offer-target-options input{accent-color:#d9a53a;flex-shrink:0}
.offer-repeat{display:flex;align-items:center;gap:9px;font-size:12px;margin:12px 0}.offer-repeat input{accent-color:#c89228}
.offer-actions{display:flex;gap:10px;align-items:center;position:sticky;bottom:-24px;padding:12px 0;background:var(--cat-bg);z-index:3}.offers-save{flex:1}.offers-delete{border:1px solid var(--cat-line);border-radius:11px;background:var(--cat-bg);color:#b64736;font-size:12px;padding:12px}
.offers-message{background:var(--catalog-soft,#fff7e6);padding:12px 24px;font-size:13px;flex-shrink:0}.offers-footer{border-top:1px solid var(--cat-line);padding:10px 20px;font-size:11px;color:var(--cat-muted);display:flex;justify-content:space-between;align-items:center;flex-shrink:0;gap:10px}
.offers-policy{font-size:11px;color:var(--cat-muted);line-height:1.7;margin:14px 0}.offers-manager-button{border:1px solid #edcd88;background:var(--card,#fffaf0);color:var(--text,#805b20);border-radius:12px;font-size:12px;font-weight:800;padding:10px 14px;margin-right:6px}
.offers-panel button:disabled{opacity:.5}.offers-panel input:focus-visible,.offers-panel select:focus-visible,.offers-panel button:focus-visible{outline:2px solid #e5b349;outline-offset:2px}
[data-theme=dark] .offer-preview{background:linear-gradient(125deg,#302918,#252119);border-color:#66502a;color:#efcf8e}
@media(max-width:760px){#automaticOffersModal .modal-dialog{width:calc(100% - 12px);height:calc(100dvh - 12px);margin:6px auto}.offers-body{display:flex;flex-direction:column;overflow-y:auto}.offers-browser{flex:0 0 auto;max-height:250px;border-right:0;border-bottom:1px solid var(--cat-line);padding:12px}#offers-list{min-height:75px}#offers-editor{overflow:visible;padding:18px;flex:0 0 auto}.offers-head{padding:14px}.offers-head h3{font-size:19px}.offers-fields-row,.offer-fields-row{grid-template-columns:1fr}.offer-target-options{grid-template-columns:1fr}.offers-footer{font-size:9px}.offer-title-row h4{font-size:18px}}

[data-theme=dark] .offers-panel{--cat-muted:#a5b4c9}

.pos-search-wrap input{min-width:0}
.pos-search-wrap .offers-manager-button{white-space:nowrap;flex-shrink:0}
@media(max-width:1200px){.pos-search-wrap .offers-manager-button{width:38px;min-width:38px;height:38px;padding:0;font-size:0;margin-right:0}.pos-search-wrap .offers-manager-button i{font-size:17px;margin:0!important}}

.offer-category-filter-wrap{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;margin-bottom:10px;color:var(--cat-muted)}
.offer-category-filter-wrap[hidden]{display:none}
.offer-category-filter-wrap select{width:100%;padding:10px;border:1px solid var(--cat-line);border-radius:10px;background:var(--cat-bg);color:var(--cat-text);font-size:12px}
.offer-target-selection-count{display:block;font-size:10px;line-height:1.6;color:var(--cat-muted);margin:5px 0 10px}
.offer-target-options.is-grouped{display:flex;flex-direction:column;gap:9px;max-height:min(350px,45dvh);padding:0 3px 5px 0;scrollbar-width:thin}
.offer-product-group{border:1px solid var(--cat-line);border-radius:12px;background:var(--cat-bg);box-shadow:0 3px 0 -1px var(--cat-bg),0 4px 0 var(--cat-line);flex-shrink:0;margin-bottom:3px}
.offer-product-group>summary{list-style:none;display:flex;align-items:center;gap:9px;padding:11px}
.offer-product-group>summary::-webkit-details-marker{display:none}
.offer-product-group>summary>span:nth-child(2){flex:1;min-width:0}
.offer-product-group strong{display:block;font-size:12px}.offer-product-group small{display:block;font-size:10px;color:var(--cat-muted);margin-top:3px}
.offer-product-group-icon{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--cat-line);border-radius:9px;color:#b88725;background:var(--cat-bg)}
.offer-product-group>summary>.bi-chevron-down{font-size:10px;color:var(--cat-muted);transition:transform .15s}.offer-product-group[open]>summary>.bi-chevron-down{transform:rotate(180deg)}
.offer-product-group[open]>summary{background:var(--catalog-soft,#f8fafc);border-radius:12px 12px 0 0}
.offer-product-choices{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:7px}
.offer-product-choices label{margin:0;min-width:0;overflow-wrap:anywhere;cursor:pointer}
.offer-product-choices label:has(input:checked){background:var(--catalog-soft,#fff7e6)}
.offer-target-empty{font-size:12px;color:var(--cat-muted);padding:12px;margin:0}
@media(max-width:760px){.offer-product-choices{grid-template-columns:1fr}}
