/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

@import url("https://fast.fonts.net/lt/1.css?apiType=css&c=f996d232-fcf5-48e4-9155-b8e080403585&fontids=1488890,1488914");

@font-face {
    font-family: "Helvetica Neue LT W01_51488890";
    src: url("https://banners.bonniernewslocal.se/fonts/helvetica/1488890/3dac71eb-afa7-4c80-97f0-599202772905.woff2") format("woff2"),
        url("https://banners.bonniernewslocal.se/fonts/helvetica/1488890/34e0e4c0-c294-49bb-9a8e-1b2cafd54e32.woff") format("woff");
}

@font-face {
    font-family: "Helvetica Neue LT W01_71488914";
    src: url("https://banners.bonniernewslocal.se/fonts/helvetica/1488914/531c5a28-5575-4f58-96d4-a80f7b702d7b.woff2") format("woff2"),
        url("https://banners.bonniernewslocal.se/fonts/helvetica/1488914/439c5962-f9fe-4eaf-a1f6-f41d42edba75.woff") format("woff");
}

html:not(.avada-has-site-width-percent) #main {
    padding: 0px !important;
}

@media screen and (max-width: 768px) {
    html:not(.avada-has-site-width-percent) #main {
        padding: 0 30px !important;
    }
}

/***************************************************************************/
/* Login page  */
/***************************************************************************/
.login-content {
    max-width: 80%;
    margin: 0 auto;
}

.login-content input#submit {
    padding: 20px 29px;
    background: linear-gradient(121deg,#fef6e1 0%,#f5e4e6 100%);
    border: none;
    border-radius: 16px;
    color: #b01f1f;
    font-size: 16px;
    cursor: pointer;
}

.login-content input#submit:hover {
    background: #b01f1f;
    color: #fff;
}
.login-content input#user_login,
.login-content input#user_password {
    color: #b01f1f !important;
    border: 1px solid #000;
}

@media screen and (min-width: 768px) {
    .login-content {
        max-width: 55%;
        margin: 0 auto;
    }

}

/***************************************************************************/
/* Custom-slider  */
/***************************************************************************/



#custom-slider .fusion-row {
    width: 100%;
    max-width: unset !important; 
}

@media screen and (max-width: 768px) { 
    #custom-slider {
        position: relative;
        height: 360px;
        margin-bottom: 2rem;
        overflow: visible;
        /* transform: scale(1); */
    }

    #custom-slider a.fusion-button {
        padding: 1rem;
    }

    #custom-slider .fusion-row {
        position: absolute; 
        width: 100vw !important;
        overflow: visible;
    }
    #custom-slider .fusion-row .fusion-column-wrapper {
        margin: 0;
    }

    #custom-slider .tfs-slider .background-image,
    #custom-slider .tfs-slider .flexslider .slides li, 
    #custom-slider .flexslider .slides,
    #custom-slider .tfs-slider.flexslider.main-flex,
    #custom-slider .fusion-slider-container,
    #custom-slider .fusion-row .fusion-column-wrapper,
    #custom-slider .fusion-row .fusion-layout-column,
    #custom-slider .fusion-row {
        max-height: 360px !important;
        height: 360px !important;
        overflow: visible;
    }
}


/***************************************************************************/
/* Recent posts */
/***************************************************************************/
.fusion-recent-posts .columns .column .fusion-flexslider .slides {
    height: 12rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 768px) {  
    .fusion-recent-posts .columns .column .fusion-flexslider .slides {
        height: 8rem;
    }

}

/* 2024 MM
Custom classes.
*/

.object-fit-contain img {
    object-fit: contain!important;
}

.max-inline-text > p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5; 
    -webkit-box-orient: vertical;
}

.max-width-container > .fusion-builder-row {
    max-width: 1510px!important;
}

.max-width-container > .fusion-builder-row .fusion-content-tb {
    /* padding-left: 30px!important;
    padding-right: 30px!important; */
}

.max-width-container > .fusion-builder-row .fusion-content-tb,
.max-width-container > .fusion-builder-row .fusion-text {
    max-width: 705px!important;
}

#sticky-back {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* background: #FFF; */
    background: linear-gradient(121deg, rgba(254,246,225,1) 0%, rgba(245,228,230,1) 100%);
    color: #b01f1f;
    z-index: 999999;
    padding: 13px 30px;
    border-radius: 12px;
    font-size: 14px;
    border: 0;
}

@media screen and (min-width: 768px) {
    #sticky-back {
        display: none;
    }
}


/***************************************************************************/
/* Calculator  */
/***************************************************************************/
/* 
.calc-wrapper { 
    font-family: "Helvetica Neue LT W01_51488890";
    display: flex;
    margin: 40px auto;
    width: 100%;
    flex-direction: column-reverse;
}

.calc-col:first-child { 
    background: linear-gradient(121deg, #FCF6E3 0%, #F3E7E7 100%);
    padding: 1rem;
}

.calc-col:last-child .image-overlay {
    position:relative;
}

.calc-col:last-child .image-overlay:before {
    content:"";
    position: absolute;
    top:0;
    left:0;
    height:100%;
    width:100%;
    background-color: rgba(211, 211, 211, 0.3);
    z-index:999;
}

.calc-col:last-child img {
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.calc-sub-title {
    font-weight: bold;
    font-size: 1rem;
    margin: 1.5rem 0 !important;
}

#calculate-btn {
    padding: 20px 29px;
    background: #b01f1f;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 1.5rem;
}

#calculate-btn:hover {
    background-color: #911F1F;
}

.calc-documents-wrapper ul {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.calc-documents-wrapper ul li {
    font-family: "Helvetica Neue LT W01_51488890";
    font-size: 1rem;
    font-weight: bold;
    text-decoration-line: underline;
}

.calc-field-wrapper input::placeholder {
    font-family: "Helvetica Neue LT W01_51488890";
    color: rgba(33, 33, 33, 0.60);
    font-weight: bold;
}

.calc-field-wrapper input#rate-input,
.calc-field-wrapper input#amount-input,
.calc-result-wrapper input#pay-result{
    color: rgba(33, 33, 33, 0.60);
    font-weight: bold;
}

@media screen and (min-width: 1024px) { 
    .calc-wrapper {
        width: unset;
        margin: 2rem 2rem;
        min-height: 770px;
        flex-direction: row;
    }

    .calc-col:first-child {
        flex: 0 0 700px;
        padding: 2.5rem;
    }
    
    .calc-col:last-child {
        flex-grow: 1;
        display: flex;
    }     

    .calc-col:last-child img {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        object-fit: cover;
        display: block;
    }

}

@media screen and (min-width: 1441px) {

    .calc-wrapper {
        width: 1430px;
        margin: 80px auto;
        min-height: 770px;
        flex-direction: row;
    }

    .calc-col:first-child {
        flex: 0 0 755px;
        padding: 2.5rem;
    }
    

} */


.fusion-tb-footer > div > div:first-child {
    z-index: 1 !important;
}