/* Shared WooCommerce sidebar category card.
   This file is the single styling source for the category card used in both
   product-category archive sidebars and single-product sidebars. Keep the
   shared .ff-product-sidebar-card--categories markup in PHP and this stylesheet
   together so style changes apply to both pages automatically. */
.ff-product-sidebar-card--categories {
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(25, 13, 57, 0.075) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: var(--ffehbo-soft-shadow) !important;
}

.ff-product-sidebar-card--categories h2 {
  margin: 0 0 14px;
  color: var(--e-global-color-secondary, #190d39);
  font-size: 18px;
  line-height: 1.25;
}

.ff-product-sidebar-card--categories nav {
  display: grid;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.ff-sidebar-category-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  align-items: center;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(218, 217, 217, 0.9);
  color: var(--e-global-color-text, #67656e);
  font-size: 13px;
  text-decoration: none;
}

.ff-sidebar-category-link span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ff-sidebar-category-link:last-child {
  border-bottom: 0;
}

.ff-sidebar-category-link.is-active {
  border-radius: 5px;
  background: rgba(199, 228, 254, 0.24);
  color: var(--e-global-color-secondary, #190d39);
  font-weight: 800;
}
