/**
Theme Name: Sportfack
Author: Egmont Story House AB
Author URI: https://storyhouseegmont.se
Description: Sportfack Child Theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sportfack
Template: astra
*/

.sportregistret-content .sidebar-main > *{
	display:none;
}

.sportregistret-content .sidebar-main .br_logo_container{
	display: block;
}

body {
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

.custom-post-result {
    display: flex;
    margin-top: 20px;
}
.custom-post-image {
    margin-right: 20px;
    max-width: 150px;
    min-width: 150px;
}
.custom-post-result h3 {
    color: #5CBFA7;
}
.custom-post-content p {
    color: #000;
}
.post-date {
    display: inline-block;
    float: left;
    margin-right: 5px;
    color: #5CBFA7;
}
.custom-search-result h2:nth-of-type(2) {
    margin-top: 30px;
}

/* Search filter */
#sr-filter form .row {
    width: 100%;
    clear: both;
}
#sr-filter form .row > div {
    margin-bottom: 20px;
}
#sr-filter form label {
    font-family: Roboto;
    font-size: .8em;
    margin-left: 8px;
    color: grey;
}
@media (min-width: 640px) {
    #sr-filter form .row {
        width: 100%;
        clear: both;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 20px;
    }
    #sr-filter form .row > div {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        flex: 1;
    }
}
#sr_search {
    width: 100%;
    font-family: 'Roboto';
    font-size: 1rem;
    line-height: 20px;
    border-radius: 5px;
    outline: none;
}
#product_group {
    width: 100%;
    border-radius: 5px;
    outline: none;
    font-family: 'Roboto';
}
#product_subgroup {
    width: 100%;
    outline: none;
    font-family: 'Roboto';
    border-radius: 5px;
}
#sr-filter-submit {
    line-height: 25px;
    background-color: rgba(243, 195, 8, 0.3);
    border: 1px solid rgb(243, 195, 8);
    border-radius: 5px;
    font-family: 'Roboto';
}
#sr-filter-submit:hover {
    background-color: rgb(243, 195, 8);
    color: #fff;
}
#sr-filter form .row .filter-input {
    flex: 2;
}
body.single-sportregistret #primary {
    width: 100%;
    margin: 20px 0!important;
    padding: 0;
}
.br_header {
    height: 100px;
    padding: 100px 0 0;
    background: #aaa url(/wp-content/uploads/2021/11/spf-springheadbg.jpg);
    background-size: cover;
}
.br_bannerheight { padding-top: 44.79166667%; }
.br_content {
    margin: 0;
    padding: 20px 0;
    background: white;
}
h1  { margin: 0 0 .5em; }
h2, h3, h4, h5, h6 { margin: 2em 0 1em; }
h2 { font-size: 1.2em; }
h3 { font-size: 1.1em; }
.br_logo_container {
    position: relative;
    width: 180px;
    height: 180px;
    background: white;
    /*margin: -70px auto 0;*/
    margin: 0 auto;
    padding: 20px;
    border: 1px solid black;
}
.br_logo_container_small {
    width: 140px;
    height: 140px;
    position: relative;
    float: left;
    border: 1px solid black;
    padding: 10px;
    margin: 0 10px 10px 0;
}
.br_logo_container_small .br_logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
    .br_logo_container_small_old {
    display: table-cell;
    position: relative;
    width: 120px;
    height: 120px;
    background: white;
    margin: 0 auto;
    margin-right: 10px;
}
.br_logo {
    display: inline-block;
    vertical-align: middle;
    width: 120px;
    height: auto;
}

.valign {
    margin: 0;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
}
.widget-area.secondary {
    margin: 20px 0 20px 20px!important;
    padding: 20px!important;
    background: white;
}
ul.br_info {
    font-size: .8em;
    list-style: none;
    margin: 0;
    line-height: 1.5em;
    margin: 1em 0;
}
hr { margin: 1em 0; }

/* Taggar */
span.tag {
    display: inline-block;
    background: green;
    font-family: 'Roboto';
    color: white;
    padding: 0.2em 0.7em 0.25em;
    margin: 0.4em 0.4em 0 0;
    border-radius: .4em;
}
span.tag:hover {
    background: rgba(15,127,18,.8);
}
ul.subposts_show-childs {
    list-style: none;
    margin: 0;
    max-width: 30em;
}
@media(max-width: 921px) {
    #sr-filter-submit { line-height: 22px; }
}

/* RESULT */
.sr_search_result {
    border-top: 2px solid #D9D9D9;
}
@media (min-width: 1024px) {
    .sr_search_result {
        clear: both;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 10px;
        width: 100%;
        border-top: 2px solid #D9D9D9;
    }
}

.sr_brands, .sr_companies {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
    /* background: #f9f9f9; */
}

.sr_brands h2,
.sr_companies h2 {
    padding: 20px 0;
}

/* todo: Redundant, widtget plugin */

ul.result {
    list-style: none;
    margin: 0;
}
ul.result > li {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #D9D9D9;
    clear: both;
    padding-left: 20px;
}
ul.result li:last-child { border-bottom: none; }
ul.result li img {
    display: block;
    float: left;
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: white;
}
ul.result li h3,
ul.result li h4 {
    font-size: 15px;
    font-family: Roboto;
    line-height: 60px;
    display: inline-block;
    padding-left: 20px;
}
ul.result.double li h3 {
    padding-top: 11px;
    line-height: 15px;
}
ul.result.double li h4 {
    padding-bottom: 10px;
    line-height: 15px;
    color: #aaa;
}

ul.result li span {
    font-size: 15px;
    font-family: Roboto;
    line-height: 60px;
    display: block;
    float: none;
    padding-left: 80px;
}

.sportregistret-content {
    display: flex;
}
.sportregistret-content #secondary {
    width: 25%;
}
.sportregistret-content .varumarken {
    width: 75%;
}
.sportregistret-content .sidebar-main {
    position: relative;
}
@media (min-width: 922px) {
    .ast-right-sidebar #secondary {
        border-right: 1px solid var(--ast-border-color);
        margin-right: 25px !important;
        border-left: none;
        margin-left: 0;
        padding-left: 0px!important;
    }
}
@media (max-width: 922px) {
    .sportregistret-content .widget-area.secondary {
        margin: 0 !important;
        padding: 0 !important;
    }
    .sportregistret-content {
        flex-direction: column;
    }
    .sportregistret-content #secondary {
        width: 100%;
    }
    .sportregistret-content .varumarken {
        width: 100%;
    }
    .sportregistret-content ul.br_info {
        font-size: 1em;
    }
}

/* Filter */
#sr-filter form .row > div.two-thirds {
    flex: 2;
}
.one-third {
    max-width: 310px;
}
#sr-filter h2 {
    font-size: 24px;
    margin: 0;
}
.search-item {
    display: flex;
    color: inherit;
    margin: 25px 0;
}
.distributor-description {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    justify-content: center;
}
.search-item .distributor-description h3 {
    margin: 0;
    padding: 0;
    line-height: 20px;
    color: #5CBFA7;
    font-size: 22px;
}
.search-item .distributor-description h4 {
    margin: 0;
    padding: 0;
    line-height: 45px;
    color: #838383;
    font-size: 16px;
}
.trademark-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
ul.result .trademark-list li {
    padding: 0;
}
.custom-search-result {
    margin: 0 20px;
}
.custom-search-result h3 {
    margin: 0;
}
#sr-filter hr {
    background-color: #D9D9D9;
    height: 2px;
    margin-bottom: 25px;
}
@media (max-width: 640px) {
    .search-btn label {
        display: none;
    }
    .search-btn input {
        width: 100%;
    }
    .one-third {
        width: 100%;
        max-width: inherit;
    }
}

.subposts_child_meta {
    font-size: smaller;
    color: #46b97c;
}

.subposts_parents UL {
    list-style: none;
    margin-left: 0;
}

.subposts_parents IMG {
    float: left;
    margin-right: 10px;
}

.annons-featured-image-flag {
    font-family: roboto, sans-serif;
    position: absolute;
    padding: 2px 8px;
    top: 10px;
    right: 10px;
    color: Black;
    background-color: rgba(255,255,255,.8);
}

.custom-search-result .annons-featured-image-flag {
    position: inherit;
    top: inherit;
    right: inherit;
}

.ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 {
    background-color: #ffffff;
}