/* View By Toggle Styling */
.view-by-toggle {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .view-by-toggle__label {
    font-weight: 500;
    margin-right: 0;
    font-size: 24px;
    width: max-content;
    height: 100%;
  }
  
  .view-by-toggle__buttons {
    display: flex;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    background: #F5F5F5;
    padding: 13px;
    gap:10px;
  }
  
  .view-by-toggle__button {
    padding: 15px 27px;
    cursor: pointer;
    background-color: #f7f7f7;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    font-weight: normal;
  }
  
  .view-by-toggle__button {}
  
  .view-by-toggle__button--active {
    background-color: #244674;
    color: white;
  }
  
  .view-by-toggle__pointer {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
  }
  
  .view-by-toggle__button--active .view-by-toggle__pointer {
    opacity: 1;
  }
  
  /* Hide original FacetWP controls */
  .facetwp-facet-view_by_toggle {
    display: none !important;
  }
  
  
  .woocommerce-product-category__header__inner .js-product-filter-wrapper .facet-wp-label {
    font-size: 24px;
    font-weight: 500;
    font-family: var(--font-urbanist);
    color: var(--color-black);
    text-transform: none;
    letter-spacing: .02em;
    width: 154px;
    height: 100%;
    display: block !important;
  }
  
  .color-display-parent-collection__wp {
    position: relative;
  }
  
  .color-display-parent-collection {
    padding: 6px 12px;
    position: absolute;
    top: -60px;
    left: 22px;
    background: #D5D5D7;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-black);
    font-family: var(--font-urbanist);
    border-radius: 4px;
    line-height: normal;
    letter-spacing: 1.96px;
  }
  
  @media (min-width: 1200px) {
    .view-by-toggle__label {
      width: 140px;
    }
  }
  