.choose-provider__min-rental {
    font-size: 12px;
    font-weight: 400;
    color: #7A7A7A;
}

/* Must stay on one line. 10px is the mobile size */
.choose-provider__min-rental--pricing {
    font-size: 10px;
    white-space: nowrap;
}

@supports (container-type: inline-size) {
    @media only screen and (min-width: 577px) {
        #list-partner-item .provider-detail {
            container-type: inline-size;
        }

        .choose-provider__min-rental--pricing {
            font-size: clamp(9px, 9.9cqi, 12px);
        }
    }
}

/* gear-first-style.css caps slides at 128px here; lift it so the 4-card slick layout keeps its own width */
@media only screen and (min-width: 992px) and (max-width: 1024px) {
    .list-provider .slick-slide {
        width: 165px !important;
    }
}

.choose-provider__modal-close {
    cursor: pointer;
}

.choose-provider__name-row {
    gap: 6px;
}

.choose-provider__rating-score {
    font-size: 13px;
}

.choose-provider__rating-count {
    font-size: 11px;
    color: #1E293B;
}

.choose-provider__price-modal-content {
    height: auto;
    padding-top: 10px;
}

.choose-provider__price-modal-close.btn-close-info-price {
    padding: 6px !important;
}

/* #choose-provider-page is raised above Bootstrap's backdrop while this modal is open, so the modal draws its own scrim */
.popup-info-price--mobile {
    background: rgba(0, 0, 0, 0.5);
}

/* Class set on show / removed on hidden (list_partner_items.ctp): covers the backdrop's own fade before and after the modal */
body.price-modal-mobile-open .modal-backdrop {
    display: none !important;
}

.choose-provider__fee-label {
    color: #7A7A7A;
    font-weight: 600;
}

.choose-provider__fee-icon {
    vertical-align: sub;
}

.choose-provider__per-day {
    font-size: 11px;
    padding-top: 3px;
}

.choose-provider__mobile-total {
    padding-right: 10px;
}

.choose-provider__mobile-total-amount,
.choose-provider__mobile-total-label {
    font-size: 14px;
    color: #334155;
}

.choose-provider__mobile-total-amount {
    font-weight: 700;
}

.choose-provider__mobile-total-label {
    font-weight: 400;
}

.choose-provider__select-btn {
    min-width: fit-content;
}

/* ID prefix needed to override width: 100% !important in gear-first-style.css */
#list-partner-item .choose-provider__select-btn--mobile {
    width: auto !important;
}

.btn-select-quaility-provider-mobile .provider-button {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    background: #029DB1 !important;
    color: #fff !important;
    line-height: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.tooltip-provider-fee {
    white-space: normal;
    text-align: center;
    color: #033663;
}

#open-tooltip {
    position: relative;
    cursor: pointer;
}

#sortFilterMobile {
    margin-top: 20px;
}

#gearFilterChangeModal {
    padding-right: 0px !important;
}

#btnReCenter {
    position: absolute;
    bottom: 2rem;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
}

#btnReCenter .re-center {
    background: #029DB1;
    padding: 10px 15px;
    border-radius: 45px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0px -1px 4px 0px rgba(0, 0, 0, 0.15), 0px 4px 4px 0px rgba(148, 163, 184, 0.30), 0px 8px 12px 6px rgba(148, 163, 184, 0.15);
}

#btnReCenter .re-center:hover {
    background: #1AB9CB;
}

#sortFilterMobile .provider-toggle {
    display: flex;
}

#sortFilterMobile .provider-toggle .provider-btn-toggle {
    padding: 1px 15px;
}

.filter-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
}

.header-page {
    height: auto !important;
}

#dvLoading {
    z-index: 999999999 !important;
}

.search-header-qp {
    display: block !important;
}

@media only screen and (max-width: 767px) {
    #sortFilterMobile>div {
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    #sortFilterMobile>div::-webkit-scrollbar {
        display: none;
        -webkit-overflow-scrolling: touch;
    }

    .wrap-breadcrumb--mobile .breadcrumb {
        padding: 0;
    }

    .provider-box {
        border-top: none;
        border-left: none;
        border-right: none;
    }

    #choose-provider-page #list-partner-item .provider-box .mobile-wrapper-total-btax {
        white-space: nowrap;
        color: #334155;
    }

    .provider-box>div:nth-child(2) .btn-select-quaility-provider::before {
        display: none;
    }

    .provider-caption {
        font-weight: 600;
    }

    .btn-select-quaility-provider-mobile .provider-button {
        border: none;
        min-width: fit-content;
    }

    #choose-provider-page #list-partner-item .list-provider .provider-detail .provider-img img {
        padding: 0 !important;
    }

    .provider-detail .btn-more-options {
        color: #029DB1 !important;
    }

    #choose-provider-page #list-partner-item .list-provider .provider-detail .provider-img {
        border: none;
        border-radius: 32px;
    }
}

@media only screen and (min-width: 577px) {
    #cartChooseProvider {
        display: none !important;
    }
}

/* "Need anything else?" modal (popup_recommend_item.ctp) */
@media only screen and (min-width: 577px) and (max-width: 991px) {
    #recommendItem.more-option-modal .modal-content {
        width: 90vw;
        height: 80vh;
        margin: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    #recommendItem.more-option-modal #recommendItemContent.modal-body {
        flex: 1;
        overflow-y: auto;
    }
}

@media only screen and (max-width: 991px) {
    #recommendItem.more-option-modal #recommendItemContent .product-image {
        display: flex !important;
    }
}

@media only screen and (max-width: 576px) {
    #choose-provider-page #list-partner-item .provider-box .btn-select-quaility-provider.btn-select-quaility-provider-mobile {
        display: inline-block !important;
    }

    .filter-sticky {
        position: relative;
    }

    .navigation .option-sort-mobile {
        height: 100svh;
    }

    #popupConfirmProvider {
        display: none !important;
    }

    #cartChooseProvider {
        width: 100%;
        height: 100dvh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 9999999;
        background: #515151DB;
    }

    .wrap-content--confirm-provider {
        width: 100%;
        background: white;
        margin-right: 0;
        margin-left: auto;
        position: absolute;
        bottom: 0;
        max-height: 90dvh;
        z-index: 0;
    }
}
