.sm-main-directory-category-selector {
  text-align: center;
}
.sm-main-directory-category-selector.floating {
  position: fixed;
  top: 130px; /* Override for theme */
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  max-width: 1242px; /* Override for theme */
}

.sm-main-directory-category-button::before,
.sm-main-directory-category-button::after {
  display: inline-block;
  content: " ";
  position: relative;
  top: -2px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 7px 0 7px;
  border-color: #FFFFFF transparent transparent transparent;
}
.sm-main-directory-category-button::before {
  left: -8px;
}
.sm-main-directory-category-button::after {
  right: -8px;
}

.sm-main-directory-category-dropdown {
  text-align: left;
}
.sm-main-directory-category-dropdown-inner {
  max-height: 0;
  transition: max-height 0.15s ease-out;
  overflow: hidden;
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  column-gap: 10px;
  padding: 0 10px;
  background: #FFFFFF;
  /*-webkit-border-bottom-right-radius: 10px;
  -webkit-border-bottom-left-radius: 10px;
  -moz-border-radius-bottomright: 10px;
  -moz-border-radius-bottomleft: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;*/
  border-top: 2px solid #53c2e1;
  border-bottom: 2px solid #53c2e1;
}
.sm-main-directory-category-dropdown-inner.active {
  max-height: 500px;
  transition: max-height 0.25s ease-in;
  padding: 10px 10px 0;
}

.sm-main-category-item {
  padding: 0;
  padding-bottom: 10px;
}
.sm-main-category-item-view-all {
  text-align: right;
}

.sm-main-category-item-inner {
  border-radius: 10px;
  padding: 5px 5px 5px 10px;
  background: #53c2e1;
  cursor: pointer;
}
.sm-main-category-item-inner:hover,
.sm-main-category-item-inner:active {
  background: #63c9e6;
}
.sm-main-category-item-icon {
  width: 25px;
  height: 25px;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}
.sm-main-category-item-link {
  display: inline-block;
  padding-left: 10px;
  color: #FFFFFF;
  width: calc(100% - 30px);
  vertical-align: middle;
  font-size: 16px;
  pointer-events: none;
}
.sm-main-category-item-view-all .sm-main-category-item-link {
  font-size: 20px;
  line-height: 1;
  padding-right: 10px;
}

.sm-main-directory-content-container.processing {
  min-height: 150px;
  position: relative;
}
.sm-main-directory-content-container.processing::after {
  display: block;
  content: " ";
  position: absolute;
  top: 50px;
  left: 48%;
  transform: translateX(-50%);
  margin: auto;
  border: 10px solid #EAF0F6;
  border-radius: 50%;
  border-top: 10px solid #4a4a4a;
  width: 40px;
  height: 40px;
  animation: sm-main-directory-content-spinner 1s linear infinite;
}

@media screen and (min-width: 601px) and (max-width: 1000px) {
  .sm-main-directory-category-dropdown-inner {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }
}
@media screen and (max-width: 600px) {
  .sm-main-directory-category-selector {
    position: fixed;
    top: 100px; /* Override for theme */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 100%;
    max-width: 1242px; /* Override for theme */
  }
  .sm-main-directory-category-selector.floating {
    top: 0; /* Override for theme */
  }
  body.admin-bar .sm-main-directory-category-selector {
    top: 146px; /* Override for theme */
  }
  body.admin-bar .sm-main-directory-category-selector.floating {
    top: 46px;
  }
  .sm-main-directory-category-selector {
    bottom: 0;
    pointer-events: none;
  }
  .sm-main-directory-category-button,
  .sm-main-directory-category-dropdown {
    pointer-events: initial;
  }
  .sm-main-directory-category-dropdown-inner {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 100%;
  }
  .sm-main-directory-category-dropdown-inner.active {
    max-height: 100000px;
    overflow: scroll;
    max-width: 100%;
    bottom: 0px;
    transition: bottom 0.25s ease-in;
    padding: 10px 30px 0;
  }
}

@keyframes sm-main-directory-content-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}