/* Match the console's selected navigation card while the Orders group is open. */
@layer cx-order-sidebar-state {
  html.platform-theme.theme-console .sidebar button.sidebar-link:has(+ div > a[href="/admin/orders"]) {
    background: linear-gradient(135deg, var(--cx-console-violet), var(--cx-console-blue)) !important;
    border-color: rgba(255, 255, 255, .22) !important;
    box-shadow: 0 16px 42px rgba(139, 92, 246, .30), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
    color: #ffffff !important;
  }

  html.platform-theme.theme-console .sidebar button.sidebar-link:has(+ div > a[href="/admin/orders"]) :is(.sidebar-label, svg) {
    color: #ffffff !important;
  }
}
