.ssr-rtm-header {
    margin-bottom: 50px;
}

.ssr-rtm-container .row {
    margin: 0px;
}

#ssr-unitR {
    font-weight: bold;
}

.ssr-rtm-img {
    background-size: cover;
    background-repeat: no-repeat;
}


.price-default {
    font-size: 1.5rem;
    color: #000 !important;
}

.card-priceNormal {
    color: #000;
    text-decoration: line-through;
}

.card-priceSpecial {
    color: #f94700;
}

.img-cover-unit {
    object-fit: cover !important;
    aspect-ratio: 351 / 279;
}

.card-unit {
    padding: 15px;
    border-radius: 20px;
    /*overflow: hidden;*/
    border: 1px solid #d2d3d4 !important;
}

.card-unit.active {
    border: 1px solid #f94700 !important;
    box-shadow: 0 0 0 5px #fdd1bf;
}

.grayscale {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.overlay_house {
    float: right;
}

.ssr-rtm-unit {
    position: relative;
}

.price-unit {
    font-size: 2.5rem;
}

.logo-soldout {
    width: 80px;
    position: absolute;
    z-index: 1;
    right: 0;
}

.style-text-unit {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 80%;
}

.btn-hotdeal-slick {
    top: 50%;
    position: absolute;
    border: unset;
    background-color: unset;
    transform: translateY(50%);
    cursor: pointer;
}

.btn-hotdeal-slick-l {
    left: -25px;
}

.btn-hotdeal-slick-r {
    right: -25px;
}

.btn-hotdeal-slick i {
    color: #7F7F7F;
    font-size: large;
}

/*new css*/

.slick-slide {
    margin: 10px;
}

.slick-slide img {
    border-radius: 20px;
}

.select-unit-btn-hotdeal {
    width: fit-content;
    height: 50px;
    padding: 0 18px;
    background-color: #0053b5;
    border-radius: 30px;
    border: 0;
    box-shadow: none;
    color: #fff;
    font-family: "GraphikTH-SemiBold";
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.select-unit-btn-hotdeal.active {
    color: #f94700 !important;
    border: 2px solid #f94700 !important;
    background-color: #fdd1bf !important;
}

.select-unit-btn-hotdeal:hover {
    color: #0053b5;
    background-color: #d1e7ff;
    transition: all .3s ease;
}

.btn-go-unit-page {
    text-decoration: underline;
    width: fit-content;
    height: 50px;
    padding: 0 18px;
    background-color: #ffffff00;
    /* border-radius: 30px; */
    /* border: #0053b5 solid 2px; */
    box-shadow: none;
    font-family: "GraphikTH-SemiBold";
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    color: #0053b5;
}

.btn-go-unit-page:hover {
    /*background-color: #0053b5;*/
    /*color: #fff;*/
    /*transition: all .3s ease;*/
    text-decoration: underline;
}


.detail-unit-btn-hotdeal {
    font-family: "GraphikTH-SemiBold";
    text-decoration: underline;
    color: #000 !important;
}

.detail-unit-btn-hotdeal:hover {
    color: #0053b5 !important;
    text-decoration: underline;
}

.h-unit-no {
    font-family: "GraphikTH-SemiBold";
    font-size: 1.5rem;
}

.h-project_fullname {
    font-size: 1.5rem !important;
    font-family: "GraphikTH-Regular" !important;
    color: #4c5055;
}

.h-deal-price {
    margin-right: 8px;
    font-family: "GraphikTH-SemiBold";
    font-size: 2rem;
    color: #fff;
    background-color: #bd141c;
    display: inline-block;
    padding: 3px 8px;
}

.h-discount {
    font-size: 1.5rem;
    color: #bd141c;
    font-family: "GraphikTH-SemiBold";
}

.text-detail-unit {
    margin-top: 1rem;
    color: #4c5055;
    font-size: 14px;
}

.promotion-unit span {
    border: 1px solid rgb(204, 204, 204);
    display: inline-block;
    border-radius: 5px;
    padding: 0 6px;
    margin-right: 5px;
    margin-bottom: 5px;
    color: #4c5055;
    font-size: 1.3rem;
}

.promotion-unit h4 {
    font-size: 1.5rem;
    font-family: "GraphikTH-SemiBold";
    color: #4c5055;
    border-top: 1px solid #d2d3d4;
    padding-top: 1rem;
}

.section-room-unit {
    color: #4c5055;
}

.section-room-unit i {
    margin-right: 10px;
}

.section-room-unit div {
    padding-right: 10px;
    padding-left: 10px;
    border-right: 1px solid #d2d3d4;
    display: flex;
    align-items: center;
}

.icon-bedroom {
    width: 23px;
    height: 18px;
    display: inline-block;
    background: url("https://resource.sansiri.com/sansiri-com-frontend/assets/img/hotdeal/icon/sansiri-hotunitoutlet-bedroom-icon.svg") no-repeat transparent;
    background-size: cover;
}

.icon-bathroom {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: url("https://resource.sansiri.com/sansiri-com-frontend/assets/img/hotdeal/icon/sansiri-hotunitoutlet-bathroom-icon.svg") no-repeat transparent;
    background-size: cover;
}

.icon-parking {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: url("https://resource.sansiri.com/sansiri-com-frontend/assets/img/hotdeal/icon/sansiri-hotunitoutlet-park-icon.svg") no-repeat transparent;
    background-size: cover;
}

.font-semibold {
    font-family: "GraphikTH-SemiBold";
}

.section-unit-form {
    text-align: start;
    padding: 30px;
    margin: 1.5rem 0;
    width: 100%;
    background-color: #f2f5f9;
    line-height: 1.5;
    border-radius: 20px;
    overflow: hidden;
}

.unit-remove {
    cursor: pointer;
    background-color: unset;
    border: unset;
}

.unit-remove img {
    min-width: 16px;
}

.select-unit-btn-hotdeal.disable {
    background-color: #d2d3d4 !important;
    color: #848484 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.tab-go-register-unit {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    background-color: #0053B5;
    z-index: 999;
    font-family: "GraphikTH-SemiBold";
    color: white;
    overflow: hidden;
    transition: height 0.3s ease;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000000;
}

.project-count {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.btn-go-register-unit {
    width: 144px;
    height: 50px;
    align-content: center;
    color: #0053B5;
    border: none;
    background-color: white;
    cursor: pointer;
    align-content: center;
    border-radius: 30px;
    text-align: center;
}

.tab-go-register-unit.active {
    height: 70px;
    transition: height 0.3s ease;
}

@media only screen and (max-width: 768px) {
    .project-count {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 578px) {
    .ssr-rtm-img {
        height: 200px;
    }

    .text-detail-unit {
        font-size: 11px;
    }

    .promotion-unit span {
        font-size: 1.2rem;
    }

    .h-deal-price {
        font-size: 1.8rem;
    }

    .price-default {
        font-size: 1.3rem;
    }

    .detail-unit-btn-hotdeal {
        font-size: 1.3rem;
    }

    .select-unit-btn-hotdeal {
        font-size: 1.3rem;
        height: 40px;
    }
}

@media only screen and (max-width: 420px) {
    .ssr-rtm-img {
        height: 170px;
    }

    .select-unit-btn-hotdeal.active {
        padding: 0 8px;
    }
}

.popover-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.popover-content {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background: #fff;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    left: 0;
    transform: translateY(calc(-100% - 10px));
    transition: opacity 0.3s;
    white-space: nowrap;
}

.popover-wrapper:hover .popover-content {
    visibility: visible;
    opacity: 1;
}

.popover-content ul {
    margin-left: -22px !important;
    margin: 0;
}

.ribbon-tag {
    right: 0;
    position: absolute;
    top: 0;
    border-radius: 20px;
    overflow: hidden;
}

.ribbon-tag img {
    width: 80px;
    transform: translate(3px, -10px);
}

.ribbon-tag:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 100%;
    background-color: #bd141c;
    width: 50px;
    height: 50px;
}

.ribbon-tag-blue {
    right: 0;
    position: absolute;
    top: 0;
    overflow: hidden;
    font-size: 1.2rem;
    color: #FFF;
    background-color: #0053b5;
    padding: 8px 15px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    display:flex;
}

.ribbon-tag-blue img {
    width: 15px;
    margin-left: 5px;
}
}