/*
 * Animations
 */
@-webkit-keyframes fxrg-simple-spin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes fxrg-simple-spin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

/*
 * Icons
 */

@font-face {
  font-family: "fx-resources";
  src: url("../icons/fx-resources.eot?cowhrr");
  src: url("../icons/fx-resources.eot?cowhrr#iefix") format("embedded-opentype"),
    url("../icons/fx-resources.ttf?cowhrr") format("truetype"),
    url("../icons/fx-resources.woff?cowhrr") format("woff"),
    url("../icons/fx-resources.svg?cowhrr#fx-resources") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.fxrg-search [class^="icon-"],
.fxrg-search [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "fx-resources";
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*.resource-listing__item-icon.icon-video:before { content: "\e900"; }

.resource-listing__item-icon.icon-doc:before { content: "\e901"; }

.resource-listing__item-icon.icon-image:before { content: "\e902"; }

.resource-listing__item-icon.icon-pdf:before { content: "\e903"; }*/

.resource-listing__item [class^="icon-"],
.resource-listing__item [class*=" icon-"] {
  font-family: "icomoon" !important;
}

/*
 * Filters
 */

.resource-filters {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.resource-filter__item {
    margin-bottom: 20px;
}

.fxrg-search-submit {
    width: 40px;
    height: 40px;
    border: 0;
    margin-top: 1px;
    right: 6px;
    position: absolute;
    background-color: transparent;
}

.fxrg-search-submit__icon {
    color: var(--black-01);
    font-size: 16px;
    font-family: 'icomoon' !important;
}

.resource-filter__item {
    position: relative;
}

@media (min-width: 768px) {
    .fxrg-search-submit {
        width: 53px;
        height: 53px;
    }
}

/* Choices */
.fxrg-search .choices {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.fxrg-search .choices::after {
    content: '\e902';

    position: absolute;
    top: 50%;
    right: 16px;

    transform: translate(0, -50%) rotate(0);

    width: auto;
    height: auto;
    margin-top: 0;

    border: none;
    font-family: 'icomoon';

    transition: transform 0.3s;
}

.fxrg-search .choices.is-open:after {
    transform: translate(0, -50%) rotate(180deg);

    margin-top: 0;
}

.fxrg-search .choices__inner {
    padding: 0;
    min-height: 40px;

    border: none;
}

.fxrg-search input[type="search"],
.fxrg-search input[type="text"] {
    border: none;
    border-left: 5px solid #044C84;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.fxrg-search .choices__input {
    margin-bottom: 0;
    padding: 0 10px !important;
    min-width: 100% !important;
    width: 100% !important;

    font-size: 18px;
}

.fxrg-search .choices__list--multiple {
    display: none;
}

.fxrg-search .choices__list--dropdown {
    z-index: 22;
}

.fxrg-search .choices__list--dropdown .choices__item {
    font-size: 16px;
}

/* Selected Categories Pills */
.fxrg-search-filter-selected-categories-group {
    display: flex;
    flex-direction: column;

    margin-top: 10px;
}

.fxrg-search-filter-selected-categories-label {
    display: none;

    margin-right: 10px;

    font-family: var(--font-latomedium);
}

.fxrg-search-filter-selected-categories {
    margin-top: 10px;
    padding: 0;
}

.fxrg-search-filter-selected-category {
    display: inline-block;
    vertical-align: middle;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 300;
    margin-right: 4px;
    margin-bottom: 4px;
    background-color: #0188e8;
    border: 1px solid #0188e8;
    color: #fff;
    cursor: pointer;
}

.fxrg-search-filter-selected-category::before {
    display: none;
}

.fxrg-search-filter-selected-category .close {
    display: inline-block;

    margin-right: 4px;

    color: #fff;
}

@media (min-width: 768px) {
    .fxrg-search-filter-selected-categories-group {
        flex-direction: row;
        align-items: center;
    }

    .fxrg-search-filter-selected-categories {
        margin-top: 0;
    }
}

/* Loader */
.fxrg-search-ajax-loader {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -11;

    width: 100%;
    height: 100%;

    background-color: #fff;
    opacity: 0;

    transition: opacity 0.3;

    cursor: not-allowed;
}

.fxrg-search-ajax-loader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: #044c84 #044c84 transparent;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: fxrg-simple-spin 1.5s linear infinite;
    animation: fxrg-simple-spin 1.5s linear infinite;
}

.fxrg-search-ajax-loader.is-active {
    z-index: 11;
    opacity: 0.5;
    
    transition: opacity 0.3s;
}

/* Pagination */
.fxrg-search-pagination {
    display: flex;
    flex-flow: row wrap;

    margin: 0 -15px;
}

.fxrg-search-pagination::after {
    content: '';
    flex: auto;
}

.fxrg-search-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    margin: 5px 15px 5px 15px;
    width: 40px;
    height: 40px;

    border-radius: 50%;
    border-bottom: none;
    background: #F7F7F7;
    
    text-align: center;
    font-size: 22px;
    font-family: 'latomedium';
    font-weight: normal;
    color: #044c84;
}

.fxrg-search-pagination .page-numbers:hover,
.fxrg-search-pagination .page-numbers:focus,
.fxrg-search-pagination .page-numbers.current {
    background: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);

    color: #0188e8;
}

/* No results */
.fxrg-no-result {
    width: 100%;

    text-align: center;
}