/* Minimal desktop sorting tabs for the product archive. */
@media (min-width: 821px) {
  .dn-product-archive .dn-archive-sortbar {
    position: relative;
    display: flex !important;
    width: 100%;
    max-width: none;
    min-height: 56px;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--dn-archive-primary) 11%, #e7ebef);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 7px 22px rgba(17, 38, 61, .035);
    box-sizing: border-box;
  }

  .dn-product-archive .dn-archive-sortbar::-webkit-scrollbar {
    display: none;
  }

  .dn-product-archive .dn-archive-sortbar button {
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7a8797;
    box-shadow: none;
    transform: none;
    transition: color .2s ease, background-color .2s ease;
  }

  .dn-product-archive .dn-archive-sortbar button::after {
    position: absolute;
    right: 15px;
    bottom: 1px;
    left: 15px;
    height: 2px;
    border-radius: 99px;
    background: var(--dn-archive-primary);
    content: "";
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .2s ease, transform .2s ease;
  }

  .dn-product-archive .dn-archive-sortbar .dn-sort-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: #f5f7f9;
    box-shadow: none;
  }

  .dn-product-archive .dn-archive-sortbar .dn-sort-icon svg {
    width: 15px;
  }

  .dn-product-archive .dn-archive-sortbar b {
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
  }

  .dn-product-archive .dn-archive-sortbar button:hover {
    background: color-mix(in srgb, var(--dn-archive-primary) 4%, #fff);
    color: var(--dn-archive-primary);
    transform: none;
  }

  .dn-product-archive .dn-archive-sortbar button.is-active {
    background: color-mix(in srgb, var(--dn-archive-primary) 8%, #fff);
    color: var(--dn-archive-primary);
    box-shadow: none;
  }

  .dn-product-archive .dn-archive-sortbar button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .dn-product-archive .dn-archive-sortbar button.is-active .dn-sort-icon {
    background: #fff;
    color: var(--dn-archive-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dn-archive-primary) 12%, transparent);
  }

  .dn-product-archive .dn-archive-sortbar button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--dn-archive-primary) 18%, transparent);
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dn-product-archive .dn-archive-sortbar button,
  .dn-product-archive .dn-archive-sortbar button::after {
    transition: none !important;
  }
}
