.dap-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr));
  gap: 10px;
  padding: 14px 18px;
}

.dap-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--da-line);
  border-radius: 9px;
  background: #fff;
  color: var(--da-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dap-brand:hover,
.dap-brand[aria-pressed=true] {
  border-color: #9473a9;
  background: #f8f4fb;
}

.da-page .dap-all-brands[aria-pressed=true] {
  border-color: #ae97bb;
  background: #f6f0fa;
  color: #503461;
}

.dap-brand-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.dap-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--dap-accent);
}

.dap-brand > strong {
  color: #4d335f;
  font-size: clamp(17px, 1.6vw, 23px);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dap-brand > small {
  color: var(--da-muted);
  font-size: 12px;
  line-height: 1.45;
}

.dap-brand .da-progress {
  margin-top: 4px;
}

.dap-products .dap-table {
  min-width: 0;
}

.dap-products .dap-table td:first-child {
  width: 39%;
  overflow-wrap: anywhere;
}

.dap-products .dap-table th:nth-child(n+2),
.dap-products .dap-table td:nth-child(n+2) {
  text-align: right;
}

@media (max-width: 760px) {
  .dap-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .dap-brand {
    padding: 11px 10px;
  }
}

.dap-brand .dap-boxes {
  margin-top: 3px;
  color: #51415e;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dap-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
}

.dap-totals span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 7px;
}

.dap-totals strong {
  color: var(--da-purple);
  font-variant-numeric: tabular-nums;
}

.dap-products .dap-table th {
  white-space: normal;
}

@media (max-width: 760px) {
  .dap-totals {
    flex-direction: column;
    gap: 5px;
  }

  .dap-products .mobile-record-table td:last-child {
    grid-column: 1 / -1;
  }
}


.dap-sort {
  min-width: 0;
}

.dap-sort select {
  width: 100%;
}

.dap-products .dap-sort {
  width: min(100%, 15rem);
}

.da-team-table,
.da-team-order-details > .da-table-scroll .da-team-order-table {
  min-width: 0;
}

.da-team-table th,
.da-team-order-table th {
  white-space: normal;
  overflow-wrap: anywhere;
}

.da-team-table th:not(:first-child),
.da-team-table .da-number,
.da-team-order-table th:last-child,
.da-team-order-table .da-number {
  text-align: right;
}

.da-team-table .da-team-total {
  background: #f8f4fb;
  color: #513561;
  font-weight: 700;
}

.da-team-modes button {
  min-height: 44px;
  min-width: 90px;
}

.da-team-quantity {
  min-width: 44px;
  max-width: 100%;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #d9cce3;
  border-radius: 7px;
  background: #f0e8f6;
  color: #4d305f;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.da-team-quantity:hover {
  background: #e6d9ef;
  border-color: #ac91bd;
}

@media (max-width: 1024px) {
  .da-team-quantity {
    min-height: 44px;
  }
  .da-team-table.mobile-record-table td.da-team-total {
    background: transparent;
  }
}

@media (max-width: 760px) {
  .dap-products .dap-sort {
    width: 100%;
  }
}
