.ew-ui .ew-column-controls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.ew-ui .ew-column-density,
.ew-ui .ew-column-menu > summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  width: auto;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #ded9ed;
  border-radius: 8px;
  background: #fff;
  color: #423463;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}
.ew-ui .ew-column-density:has(input:checked) {
  border-color: #b4a5d5;
  background: #f0ebfa;
}
.ew-ui .ew-column-controls input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  min-width: 0;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: #634594;
}
.ew-ui .ew-column-menu {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ew-ui .ew-column-menu[open] { flex-basis: min(100%, 410px); }
.ew-ui .ew-column-menu > summary { justify-content: space-between; list-style: none; }
.ew-ui .ew-column-menu > summary::-webkit-details-marker { display: none; }
.ew-ui .ew-column-menu > summary::after { content: '⌄'; }
.ew-ui .ew-column-menu[open] > summary::after { content: '⌃'; }
.ew-ui .ew-column-options {
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #e1dcec;
  border-radius: 10px;
  background: #f9f7fd;
}
.ew-ui .ew-column-options fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ew-ui .ew-column-options legend { color: #3a3150; font-size: .85rem; font-weight: 700; }
.ew-ui .ew-column-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr));
  gap: 2px 10px;
  margin: 6px 0 9px;
}
.ew-ui .ew-column-choices label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: #342d47;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.ew-ui .ew-column-choices label:has(input:disabled) { color: #625c70; cursor: default; }
.ew-ui .ew-column-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ew-ui .ew-column-actions button { min-height: 34px; }
.ew-ui .ew-column-controls :is(button, input, summary):focus-visible {
  outline: 2px solid #7652ab;
  outline-offset: 2px;
}

.ew-ui main [data-ew-columns] > table:is(.ew-columns-condensed, [data-ew-hidden-columns]:not([data-ew-hidden-columns=""])) {
  min-width: 0;
}
.ew-ui main [data-ew-columns] > table.ew-columns-condensed > :is(thead, tbody) > tr > :is(th, td) {
  padding-block: 6px;
  font-size: .82rem;
}
.ew-ui main [data-ew-columns] > .ew-columns-condensed .product-thumb {
  width: 34px;
  height: 34px;
}

[data-ew-columns] > table[data-ew-hidden-columns~="2"] > :is(thead, tbody) > tr > :nth-child(2),
[data-ew-columns] > table[data-ew-hidden-columns~="3"] > :is(thead, tbody) > tr > :nth-child(3),
[data-ew-columns] > table[data-ew-hidden-columns~="4"] > :is(thead, tbody) > tr > :nth-child(4),
[data-ew-columns] > table[data-ew-hidden-columns~="5"] > :is(thead, tbody) > tr > :nth-child(5),
[data-ew-columns] > table[data-ew-hidden-columns~="6"] > :is(thead, tbody) > tr > :nth-child(6),
[data-ew-columns] > table[data-ew-hidden-columns~="7"] > :is(thead, tbody) > tr > :nth-child(7),
[data-ew-columns] > table[data-ew-hidden-columns~="8"] > :is(thead, tbody) > tr > :nth-child(8),
[data-ew-columns] > table[data-ew-hidden-columns~="9"] > :is(thead, tbody) > tr > :nth-child(9),
[data-ew-columns] > table[data-ew-hidden-columns~="10"] > :is(thead, tbody) > tr > :nth-child(10),
[data-ew-columns] > table[data-ew-hidden-columns~="11"] > :is(thead, tbody) > tr > :nth-child(11),
[data-ew-columns] > table[data-ew-hidden-columns~="12"] > :is(thead, tbody) > tr > :nth-child(12),
[data-ew-columns] > table[data-ew-hidden-columns~="13"] > :is(thead, tbody) > tr > :nth-child(13),
[data-ew-columns] > table[data-ew-hidden-columns~="14"] > :is(thead, tbody) > tr > :nth-child(14) {
  display: none;
}

@media (max-width: 660px) {
  .ew-ui .ew-column-controls { justify-content: flex-start; }
  .ew-ui .ew-column-density, .ew-ui .ew-column-menu > summary { min-height: 40px; }
}
@media print { .ew-ui .ew-column-controls { display: none; } }
