.table-layout-trigger{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-width:72px!important;
  min-height:34px!important;
  padding:7px 10px!important;
  gap:6px!important;
  border:1px solid var(--fs-border,#e4e7ef)!important;
  border-radius:9px!important;
  background:var(--fs-surface,#fff)!important;
  color:var(--fs-text-secondary,#667085)!important;
  font:700 10px/1 var(--fs-font,'Onest',sans-serif)!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.table-layout-trigger:hover{border-color:#bcb0f0!important;color:var(--fs-brand-600,#6f52e8)!important;background:#faf9ff!important}
.table-layout-trigger:focus-visible{outline:3px solid rgba(118,85,243,.2)!important;outline-offset:2px!important}
.table-layout-trigger svg{width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}

table[data-personalizable-table] th[data-column-id]{position:relative!important;padding-right:24px!important;user-select:none!important}
table[data-personalizable-table] .table-column-title{display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - 4px)}
table[data-personalizable-table] .table-column-drag{
  position:absolute;
  top:50%;
  right:10px;
  z-index:2;
  display:grid;
  width:13px;
  height:24px;
  place-items:center;
  color:#b2b8c5;
  font-size:9px;
  letter-spacing:-3px;
  line-height:1;
  cursor:grab;
}
table[data-personalizable-table] .table-column-drag:active{cursor:grabbing}
table[data-personalizable-table] .table-column-drag:focus-visible{border-radius:4px;outline:2px solid var(--fs-brand-500,#7655f3);outline-offset:1px;color:var(--fs-brand-600,#6f52e8)}
table[data-personalizable-table] .table-column-resize{
  position:absolute;
  top:5px;
  right:-5px;
  z-index:4;
  width:10px;
  height:calc(100% - 10px);
  cursor:col-resize;
  touch-action:none;
}
table[data-personalizable-table] .table-column-resize::before{content:'';position:absolute;top:5px;bottom:5px;left:4px;width:1px;border-radius:1px;background:#d9dce5;transition:.15s ease}
table[data-personalizable-table] .table-column-resize:hover::before,
table[data-personalizable-table] .table-column-resize:focus-visible::before{left:3px;width:3px;background:var(--fs-brand-500,#7655f3)}
table[data-personalizable-table] .table-column-resize:focus-visible{outline:0}

.table-layout-modal[hidden]{display:none!important}
.table-layout-modal{position:fixed;inset:0;z-index:10020;display:grid;justify-items:end;background:rgba(15,20,34,.22)}
.table-layout-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;cursor:default}
.table-layout-dialog{
  position:relative;
  z-index:1;
  display:flex;
  width:min(430px,calc(100vw - 24px));
  height:100dvh;
  max-height:100dvh;
  flex-direction:column;
  overflow:hidden;
  border-left:1px solid var(--fs-border,#e5e7ee);
  background:var(--fs-surface,#fff);
  box-shadow:-24px 0 70px rgba(18,24,40,.15);
  color:var(--fs-text,#17213a);
  font-family:var(--fs-font,'Onest',sans-serif);
}
.table-layout-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;flex:0 0 auto;padding:20px 20px 14px;border-bottom:1px solid var(--fs-border,#e7e9ef)}
.table-layout-dialog>header small{display:block;margin-bottom:5px;color:var(--fs-brand-600,#6f52e8);font-size:8px;font-weight:800;letter-spacing:.11em}
.table-layout-dialog>header h3{margin:0;color:var(--fs-text,#17213a);font-size:18px;line-height:1.2;letter-spacing:-.03em}
.table-layout-close{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--fs-border,#e4e7ee);border-radius:10px;background:#fff;color:#667085;cursor:pointer}
.table-layout-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.table-layout-help{flex:0 0 auto;margin:0;padding:12px 20px;color:var(--fs-text-secondary,#687386);font-size:10px;line-height:1.45;background:var(--fs-surface-soft,#f8f9fb)}
.table-layout-list{display:grid;flex:1;align-content:start;gap:7px;margin:0;padding:14px 16px 20px;overflow:auto;list-style:none}
.table-layout-list li{display:grid;grid-template-columns:18px minmax(0,1fr) 82px 66px;align-items:center;min-height:46px;padding:6px 8px;gap:7px;border:1px solid var(--fs-border,#e6e8ef);border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(26,32,44,.02)}
.table-layout-list li:not(.is-required){cursor:grab}.table-layout-list li:not(.is-required):active{cursor:grabbing}
.table-layout-grip{color:#a4aab7;font-size:12px;letter-spacing:-4px;user-select:none}
.table-layout-list li>label:first-of-type{display:flex;align-items:center;min-width:0;gap:8px;color:var(--fs-text,#17213a);font-size:10px;font-weight:700;cursor:pointer}
.table-layout-list li>label:first-of-type span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.table-layout-list input[type="checkbox"]{width:15px;height:15px;margin:0;accent-color:var(--fs-brand-500,#7655f3)}
.table-layout-list input[type="checkbox"][disabled]{opacity:.55}
.table-layout-width{display:grid!important;grid-template-columns:1fr auto;align-items:center;min-width:0;gap:3px}
.table-layout-width input{width:58px;min-width:0;height:30px;padding:4px 5px;border:1px solid var(--fs-border,#dfe3eb);border-radius:7px;background:#fbfcfe;color:var(--fs-text,#17213a);font:600 10px/1 var(--fs-font,'Onest',sans-serif);text-align:right}
.table-layout-width b{color:#9299a7;font-size:8px;font-weight:700}
.table-layout-move{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.table-layout-move button{display:grid;width:29px;height:29px;place-items:center;padding:0;border:1px solid var(--fs-border,#e1e4eb);border-radius:7px;background:#fff;color:#6c7483;font-size:12px;cursor:pointer}
.table-layout-move button:disabled{opacity:.3;cursor:not-allowed}
.table-layout-list :where(button,input):focus-visible,.table-layout-dialog>footer button:focus-visible,.table-layout-close:focus-visible{outline:3px solid rgba(118,85,243,.2);outline-offset:1px}
.table-layout-dialog>footer{display:flex;justify-content:space-between;flex:0 0 auto;padding:14px 16px;border-top:1px solid var(--fs-border,#e5e7ee);background:#fff}
.table-layout-dialog>footer button{min-height:38px;padding:8px 13px;border-radius:9px;font:700 10px/1 var(--fs-font,'Onest',sans-serif);cursor:pointer}
.table-layout-reset{border:1px solid var(--fs-border,#e2e5ec);background:#fff;color:#626c7e}
.table-layout-done{border:1px solid var(--fs-brand-500,#7655f3);background:var(--fs-brand-500,#7655f3);color:#fff}
.table-layout-live,.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

body.workspace-open.marketing-reference-open #ads .mr-table-scroll td[data-column-id="lamoda"]{font-size:10px!important;text-align:center!important}

@media(max-width:760px){
  .table-layout-trigger{min-width:44px!important;min-height:44px!important;padding:8px!important}
  .table-layout-trigger span{display:none}
  .table-layout-trigger svg{width:18px!important;height:18px!important}
  .table-layout-dialog{width:min(390px,calc(100vw - 12px))}
  .table-layout-dialog>header{padding:16px 14px 12px}
  .table-layout-help{padding:10px 14px}
  .table-layout-list{padding:10px 9px 18px}
  .table-layout-list li{grid-template-columns:14px minmax(0,1fr) 72px 66px;padding:6px;gap:5px}
  .table-layout-width input{width:49px}
  #products .product-control-panel .commercial-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
  #products .product-control-panel .commercial-filters>.search{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:none!important}
  #products .product-control-panel #openProductFilters{grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important}
  #products .product-control-panel .table-layout-trigger{grid-column:2!important;grid-row:auto!important;width:100%!important;min-width:0!important;max-width:none!important}
  #products .product-control-panel .table-layout-trigger span{display:inline!important}
}
