@charset "UTF-8";

/*
    Plugin Name:       Fifteen Ajax Search
    Plugin URI:        https://www.fifteendesign.co.uk
    Description:       Adds the Ajax Search Functionality
    Version:           1.0.0
    Requires at least: 5.2
    Requires PHP:      7.2
    Author:            Fifteen
    Author URI:        https://www.fifteendesign.co.uk
    Text Domain:       fifteen-ajax-search
    Domain Path:       /languages
*/

/*
    MAIN
*/
/* global box-sizing */
*,
*:after,
*:before {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    outline: 0 !important;
}

html {
    /* html element 62.5% font-size for REM use */
    /*font-size: 62.5%; */
    margin: 0;
    height: 100%;
}

body.is-overflow-h {
    overflow: hidden;
}

.blackout {
    z-index: 200;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #45484d;
    background: -moz-radial-gradient(center, ellipse cover, #45484d 0%, black 100%);
    background: -webkit-radial-gradient(center, ellipse cover, #45484d 0%, black 100%);
    background: radial-gradient(ellipse at center, #45484d 0%, black 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=1 );
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out 0s;
}

.blackout.active {
    opacity: 1;
    visibility: visible;
}

.blackout .fa-times {
    position: fixed;
    top: 1em;
    right: 1em;
    color: #fff;
    font-size: 1.57143em;
    cursor: pointer;
}

::selection {
    background: #000;
    color: white;
    text-shadow: none;
}

::-webkit-selection {
    background: #000;
    color: white;
    text-shadow: none;
}

::-moz-selection {
    background: #000;
    color: white;
    text-shadow: none;
}

.wrapper, main, [class*='__container'], [class*='__wrapper'], [class*='__flex-container'] {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

[class*='__flex-container'] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

/*
    Buttons
*/
.fifteen_button {
    padding: 0.75em 2.5em;
    display: inline-block;
    text-align: center;
    border: 2px solid #fff;
    font-weight: 600;
    -webkit-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
    position: relative;
    line-height: calc(100% - 1px);
    text-decoration: none;
}

@media all and (max-width: 768px) {
    .fifteen_button {
        width: 100%;
    }
}

.fifteen_button {
    background: #000;
    color: #fff;
}

.fifteen_button:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

/*
    Search
 */
.search-overlay {
    background-color: rgba(175, 175, 175, 0.95);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: scroll;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out 0s;
}

.search-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.search-overlay__inner {
    margin: 5em 0;
}

.search-overlay__inner .fifteen-loader {
    display: none;
    color: #fff;
}

.search-input-wrap {
    position: relative;
    margin-bottom: 4em;
}

.search-input-wrap .search-form {
    position: relative;
}

.search-input-wrap .search-form__input {
    background: none;
    border: none;
    font-size: 3.57143em;
    padding: 0.2em 1.1em;
    margin: 0;
    color: #fff;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 600px) {
    .search-input-wrap .search-form__input {
        font-size: 2.14286em;
        padding: 0.2em 1.5em;
    }
}

.search-input-wrap .search-form__input::-webkit-input-placeholder {
    color: #fff;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-weight: 400;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-input-wrap .search-form__input:-moz-placeholder {
    /* Firefox 18- */
    color: #fff;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-weight: 400;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-input-wrap .search-form__input::-moz-placeholder {
    /* Firefox 19+ */
    color: #fff;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-weight: 400;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-input-wrap .search-form__input:-ms-input-placeholder {
    color: #fff;
    font-family: "Roboto Slab", Arial, sans-serif;
    font-weight: 400;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-input-wrap .search-form__highlight {
    content: " ";
    width: 0;
    height: 1px;
    background: #fff;
    left: 0;
    position: absolute;
    bottom: 0;
    transition: all 0.2s ease-in-out 0s;
}

.search-input-wrap .search-form__highlight.is-active {
    width: 100%;
}

.search-input-wrap .search-form .fa-search {
    color: #fff;
    font-size: 2.14286em;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-wrap .search-form .fa-times {
    color: #fff;
    font-size: 2.14286em;
    cursor: pointer;
}

.search-input-wrap .search-form .fa-times:hover {
    color: #fff;
}

.search-overlay-results__count__title {
    color: #768291;
    font-size: 2.14286em;
    margin-bottom: 1em;
}

.search-overlay-results {
    display: none;
}

.search-overlay-results__tabs {
    margin-bottom: 3em;
}

.search-overlay-results__tabs__title {
    color: #fff;
    font-family: "Roboto", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: none;
}

.search-overlay-results__tabs__list {
    list-style-type: none;
    padding: 0;
    margin: 1em 0;
}

.search-overlay-results__tabs__list__btn {
    display: block;
    float: left;
    margin-right: 2em;
    width: 10em;
    color: #768290;
    border: 1px solid #768290;
    cursor: pointer;
    padding: 0.8em 1.4em;
    font-family: "Roboto Slab", Arial, sans-serif;
    transition: all 0.2s ease-in-out 0s;
    font-size: 1em;
    text-align: center;
    font-weight: 300;
    display: none;
    position: relative;
    margin-bottom: 1em;
}

@media (max-width: 1024px) {
    .search-overlay-results__tabs__list__btn {
        width: 32%;
        margin-right: 2%;
    }

    .search-overlay-results__tabs__list__btn:nth-of-type(3n) {
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .search-overlay-results__tabs__list__btn {
        width: 100%;
        margin-right: 0;
    }
}

.search-overlay-results__tabs__list__btn__count {
    background-color: #000000;
    font-size: 0.85714em;
    height: 2em;
    width: 2em;
    line-height: 200%;
    position: absolute;
    top: -0.5em;
    right: -0.5em;
    color: #fff;
    border-radius: 50%;
    transition: all 0.2s ease-in-out 0s;
}

@media (max-width: 600px) {
    .search-overlay-results__tabs__list__btn__count {
        top: 1em;
    }
}

.search-overlay-results__tabs__list__btn.is-active, .search-overlay-results__tabs__list__btn:hover {
    background-color: #000;
    color: #fff;
}

.search-overlay-results__tabs__list__btn.is-active .search-overlay-results__tabs__list__btn__count, .search-overlay-results__tabs__list__btn:hover .search-overlay-results__tabs__list__btn__count {
    background-color: #768291;
}

.search-overlay-results__tab-content {
    position: relative;
    margin-top: 10rem;
}

.search-overlay-results__tab-content__item {
    display: none;
}

.search-overlay-results__list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.search-overlay-results__list__item {
    color: #fff;
    display: block;
}

.search-overlay-results__title {
    color: #fff;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-overlay-results__date {
    color: #8e98a2;
    margin: 0;
}

.search-overlay-results__fifteen .search-overlay-results__list__item, .search-overlay-results__news .search-overlay-results__list__item, .search-overlay-results__events .search-overlay-results__list__item, .search-overlay-results__action-alerts .search-overlay-results__list__item {
    border-bottom: 1px solid #344555;
    padding: 1.5em 0.5em;
}

.search-overlay-results__fifteen .search-overlay-results__list__item:hover, .search-overlay-results__news .search-overlay-results__list__item:hover, .search-overlay-results__events .search-overlay-results__list__item:hover, .search-overlay-results__action-alerts .search-overlay-results__list__item:hover {
    background-color: #4c5c6c;
}

.search-overlay-results__videos .grid-4-col__item {
    margin-bottom: 1em;
}

.search-overlay-results__videos .search-overlay-results__list__item {
    padding: 1.5em 0.5em;
}

.search-overlay-results__videos .search-overlay-results__list__item:hover .search-overlay-results__title {
    text-decoration: underline;
}

.search-overlay-results__resources .search-overlay-results__list .grid-6-col__item {
    margin-bottom: 1em;
}

.search-overlay-results__resources .search-overlay-results__list .grid-6-col__item .search-overlay-results__list__item {
    padding: 0;
}

.search-overlay-results__resources .search-overlay-results__list .grid-6-col__item .search-overlay-results__list__item:hover .search-overlay-results__title {
    text-decoration: underline;
}

.search-overlay-results__resources .search-overlay-results__list .grid-6-col__item .search-overlay-results__list__item .search-overlay-results__title {
    padding: 1.5em 0.5em;
}
