/* Companion to csdogcategorythumbs 1.2.1. The existing script creates the index
   at every viewport size; these rules reveal it on phones and tablets too. */
@media (max-width: 991px) {
  #js-product-list-header .subcategories.cs-pet-original {
    display: none !important;
  }

  #js-product-list-header .cs-pet-compact {
    display: block !important;
    min-width: 0;
    margin-top: 8px;
    margin-bottom: 18px !important;
  }

  #js-product-list-header .cs-pet-compact .page-subheading {
    margin-bottom: 10px;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 15px;
    padding: 0;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-nav > a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 33px;
    width: 33px;
    min-width: 33px;
    height: 31px;
    padding: 0;
    border: 1px solid #dce4df;
    border-radius: 6px;
    background: #fff;
    color: #276b45 !important;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none;
    transition: background-color .14s ease, color .14s ease, border-color .14s ease;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-nav > a:hover,
  #js-product-list-header .cs-pet-compact .cs-alpha-nav > a:focus {
    border-color: #aebfb4;
    background: #f5f8f6;
    color: #1f5a3a !important;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-group {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-margin-top: 100px;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-letter {
    margin: 0 0 6px;
    padding: 0;
    border: 0 !important;
    color: #19271f;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-letter::after {
    content: none !important;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-links {
    display: block;
    min-width: 0;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 4px 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #263b30 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-item > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-item__arrow {
    flex: 0 0 auto;
    opacity: 1;
    color: #7d9085;
    font-size: 14px;
    line-height: 1;
  }
}

@media (max-width: 575px) {
  #js-product-list-header .cs-pet-compact {
    margin-bottom: 16px !important;
  }

  #js-product-list-header .cs-pet-compact .page-subheading {
    margin-bottom: 8px;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-nav {
    flex-wrap: nowrap;
    gap: 5px;
    max-width: 100%;
    margin-bottom: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-nav > a {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    height: 30px;
    font-size: 12px;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-groups {
    display: block;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-group {
    margin: 0 0 11px;
    scroll-margin-top: 90px;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-letter {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    padding: 0;
    font-size: 17px;
    line-height: 1.1;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-letter::after {
    content: "" !important;
    flex: 1 1 auto;
    height: 1px;
    background: #e3e9e5;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-item {
    gap: 7px;
    min-height: 34px;
    padding: 6px 9px !important;
    border: 1px solid #e1e7e3 !important;
    border-radius: 7px;
    background: #fff !important;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(25, 39, 31, .025) !important;
  }

  #js-product-list-header .cs-pet-compact .cs-alpha-item__arrow {
    font-size: 16px;
    font-weight: 700;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  #js-product-list-header .cs-pet-compact .cs-alpha-nav > a,
  #js-product-list-header .cs-pet-compact .cs-alpha-item,
  #js-product-list-header .cs-pet-compact .cs-alpha-item__arrow {
    transition: none !important;
  }
}
