/* Main Container to contain all cards */
#ldfbt-upsells-widget-container {
    margin-top: inherit;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.6rem;
    border: 1px solid #d1d7dc;
    padding: 15px;
    border-radius: 6px;
}

/* For Product cart pages - Mostly for salient theme and divi theme */
.cart #ldfbt-upsells-widget-container {
    margin-top: 50px;
}

/* Heading - H2 */
#ldfbt-upsells-widget-container-heading {
    font-size: x-large;
    margin: 10px 0px 30px 0px;
}

/* Individual FBT course main container */
.ldfbt-upsells-widget-course-lists {
    position: relative;
    margin-bottom: 20px;
}

/* Course container */
.ldfbt-course-list-data {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.ldfbt-course-list-data .ldfbt-course-image-wrapper {
    overflow: hidden;
    position: relative;
    padding-right: 15px;
}

/* 150px Width and Height Image looks too huje on mobile phones */
@media screen and (max-width: 500px) {
    .ldfbt-course-list-data .ldfbt-course-image-wrapper {
        min-width: 115px !important;
        width: 115px !important;
    }
}

/* Salient Theme adds margin-bottom of 15px */
.ldfbt-course-image-wrapper .ldfbt-course-img {
    margin: 0 !important;
}

/* Course details including price and students count */
.ldfbt-course-card {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
}

.ldfbt-course-card .leftCarddata { 
    width: 65%;
}

.ldfbt-course-card .leftCarddata a {
    text-decoration: none;
}

.ldfbt-course-card .leftCarddata h3.ldfbt-course-title {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-size: inherit;
    line-height: 1.4;
    padding-bottom: 2px;
}

.ldfbt-course-author-title {
    font-size: 12px;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Custom Hook Container */
.ldfbt-below-course-title-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Custom Hook Container Inner */
.ldfbt-below-course-title {
    padding-top: 0;
    display: inline-flex;
    align-items: center;
}

.ldfbt-course-enroller-count .ldfbt-course-enrolled {
    display: block; 
    min-width: 70px; 
    text-align: left;
}

@media screen and (max-width: 1000px) and (min-width: 750px) {
    .ldfbt-course-enroller-count .ldfbt-course-enrolled {
        min-width: 0px;
    }
}

.ldfbt-course-enroller-count .ldfbt-course-enrolled svg { 
    width: 16px;
    height: 18px;
    margin-top: 5px;
    margin-right: 5px;
    float: left;
}

.ldfbt-course-enrolled .ldfbt-course-enrolled-count {
    font-size: 14px;
}

.ldfbt-course-price-container {
    min-width: 70px;
    text-align: right;
}

.ldfbt-course-price {
    color: #333;
    font-weight: bold;
}

@media screen and (max-width: 750px) {
    .ldfbt-course-card {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ldfbt-course-card .leftCarddata { 
        width: 100%;
    }

    .ldfbt-course-plus-icon-container {
        display: none !important;
    }

    .ldfbt-course-price-container {
        text-align: left;
    }
}   

.ldfbt-course-plus-icon-container {
    z-index: 1;
    position: absolute;
    top: 90%;
    left: 30px;
    display: inline-block;
    cursor: pointer;
    height: 40px;
    width: 40px !important;
    border-radius: 50%;
    background: #f0f0f0;
    box-shadow: 1px 1px 3px #929292;
    font-size: 30px;
    line-height: 38px;
    text-align: center;
}

.ldfbt-course-plus-icon-container.imageWidth-150 { 
    left: 55px; 
    top: 92%;
}

.ldfbtPriceFtrwrap {
    border-top: 1px solid #d1d7dc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-top: 10px;
}

.ldfbtPriceFtrwrap__left p { 
    margin-bottom: 0px !important;
    padding-bottom: 0px;
}

.ldfbtPriceFtrwrap__left p strong { 
    color: #000; 
    font-size: 1.2rem;
}

.ldfbtPriceFtrwrap__left p span { 
    font-size: inherit;
}

.ldfbtPriceFtrwrap__left p s {
    font-size: inherit;
}

@media screen and (max-width: 660px) {
    .ldfbtPriceFtrwrap {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.ldfbtPriceFtrwrap #ldfbt-course-add-to-cart {
    cursor: pointer;
}

/* Additional CSS classes to handle Divi theme and themes with sidebars */
.ldfbt-course-card-small .ldfbt-course-card {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ldfbt-course-card-small .ldfbt-course-card .leftCarddata { 
    width: 100%;
}

.ldfbt-course-card-small .ldfbt-course-plus-icon-container {
    display: none !important;
}

.ldfbt-course-card-small .ldfbt-course-price-container {
    text-align: left;
}