/*
FAQs Page
*/

/* Global page width */
.faq-content {
    display: block;
    margin: auto;
    width: 100%;
    max-width: 1280px;
    padding: 40px;
}

@media (max-width: 767px){
    .faq-content {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .faq-content > h1 {
        font-size: 40px;
    }
}

.ewd-ufaq-field-label {
    display: none;
}

.faq__wrap #ewd-ufaq-jquery-ajax-search .search-field .ewd-ufaq-text-input {
    position: relative;
    width: 100%;
    padding: 15px 15px 15px 37px !important;
    font-size: 1.25rem;
    border: none;
    background-color: transparent;
}

@media (min-width: 767px) {
    .faq__wrap #ewd-ufaq-jquery-ajax-search .search-field .ewd-ufaq-text-input {
        padding: 15px 15px 15px 50px !important;
        font-size: 1.875rem;
    }
}

.ewd-ufaq-text-input:focus {
    outline: none;
    border: none;
}

#ewd-ufaq-jquery-ajax-search {
    position: relative;
    margin: 30px 0;
}

#ewd-ufaq-jquery-ajax-search .search-field button {
    border: none;
    outline: none;
    cursor: pointer;
    padding-bottom: 0.65rem;
}

@media (min-width: 767px) {
    #ewd-ufaq-jquery-ajax-search .search-field button {
        padding-bottom: 1rem;
    }
}

#ewd-ufaq-ajax-search-submit {
    display: none;
}

#ewd-ufaq-jquery-ajax-search:before {
    content: "\f002";
    font-family: FontAwesome;
    position: absolute;
    left: 17px;
    top: 31px;
    z-index: 10;
    font-size: 20px;
    color: #ababab;
}

@media (min-width: 767px) {
    #ewd-ufaq-jquery-ajax-search:before {
        top: 33px;
        font-size: 30px;
    }
}

#ewd-ufaq-jquery-ajax-search .ewd-ufaq-text-input {
    margin-left: 0 !important; /* To override plugin styles that also have importants on them */
    margin-right: 0 !important; /* To override plugin styles that also have importants on them */
}

.ewd-ufaq-text-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: black;
}
.ewd-ufaq-text-input::-moz-placeholder { /* Firefox 19+ */
    color: black;
}
.ewd-ufaq-text-input:-ms-input-placeholder { /* IE 10+ */
    color: black;
}
.ewd-ufaq-text-input:-moz-placeholder { /* Firefox 18- */
    color: black;
}

/* Åutocomplete */
.ui-autocomplete {
    display: none !important; /* to override JS styles */
}

/* FAQ title questions */
.ewd-ufaq-faq-title-text {
    margin-top: 2px;
}

@media (max-width: 810px) {
    .ewd-ufaq-faq-title-text {
        width: 76% !important; /* To override plugin styles that also have importants on them */
    }
}

.ewd-ufaq-faq-title-text h3 {
    font-size: 18px;
    font-weight: 400;
    color: black;
}

/* FAQ category titles */
.ewd-ufaq-faq-category .ewd-ufaq-faq-category-title h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

/* Body text */
.ewd-ufaq-faq-body {
    padding-left: 60px !important; /* To override plugin styles that also have importants on them */
    color: #787878;
}

@media (max-width: 450px) {
    .ewd-ufaq-faq-body {
        padding-left: 0px !important; /* To override plugin styles that also have importants on them */
    }
}

/* Permalink for each question */
.ewd-ufaq-permalink {
    position: relative;
    margin-left: 0 !important; /* To override plugin styles that also have importants on them */
    margin-bottom: 30px;
    color: #f3f3f3;
}

.ewd-ufaq-permalink:hover {
    text-decoration: none;
}

.ewd-ufaq-permalink a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-right: 30px;
    color: #ababab;
}

.ewd-ufaq-permalink a:hover {
    text-decoration: none;
}

.ewd-ufaq-permalink a:before {
    content: "\f0c1";
    font-family: FontAwesome;
    text-align: right;
}

.ewd-ufaq-permalink a div {
    display: none;
}

.ewd-ufaq-post-margin {
    display: block;
}

.ewd-ufaq-post-margin:focus {
    outline: var(--focus-dark);
}

/* Squares will plus icons inside */
.ewd-ufaq-post-margin-symbol {
    position: relative;
    width: 40px !important; /* To override plugin styles that also have importants on them */
    height: 40px !important; /* To override plugin styles that also have importants on them */
    background-color: #fe1211;
    -webkit-transition: 250ms;
    transition: 250ms;
}

.ewd-ufaq-post-margin-symbol span {
    text-indent: -99999px;
}

.ewd-ufaq-post-margin-symbol:before,
.ewd-ufaq-post-margin-symbol:after {
    content: "";
    position: absolute;
    background-color: white;
    -webkit-transition: 300ms;
    transition: 300ms;
}

.ewd-ufaq-post-margin-symbol:before {
    top: 50%;
    left: 50%;
    width: 4px;
    height: 40%;
    margin-left: -2px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.ewd-ufaq-post-margin-symbol:after {
    top: 50%;
    left: 50%;
    width: 40%;
    height: 4px;
    margin-top: -2px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.ewd-ufaq-post-active .ewd-ufaq-post-margin-symbol {
    background-color: black;
}

.ewd-ufaq-post-active .ewd-ufaq-post-margin-symbol:before {
    -webkit-transform: translateY(-50%) rotate(-90deg);
    transform: translateY(-50%) rotate(-90deg);
}

.ewd-ufaq-post-active .ewd-ufaq-post-margin-symbol:after {
    -webkit-transform: translateX(-50%) rotate(-180deg);
    transform: translateX(-50%) rotate(-180deg);
}

/* Loader for results */
.faq__loader {
    display: none;
}

.faq__loader.active {
    position: relative;
    display: block;
    top: -40px;
}
