.xxx-table-branches-bank tr {
    display: block;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 20px 6px #eef0f2;
}

.xxx-table-branches-bank tr:last-child {
    margin-bottom: 0;
}

.xxx-table-branches-bank tbody td {
    display: block;
}

.xxx-table-branches-bank__item-inner {
    background: #fff;
    box-shadow: 0 4px 20px #eef0f2;
    border-radius: 5px;
    padding: 15px;
    grid-gap: 15px;
    grid-template-areas: "logo logo logo" "name name name" "time time phones" "more-btn more-btn more-btn" ;
    grid-template-columns: 1fr 1fr 45px;
    display: grid;
}

.xxx-table-branches-bank__item-logo {
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-area: logo;
    width: 100%;
}

.xxx-table-branches-bank__item-rating{
    padding-right: 0;
    flex-direction: row;
    flex-grow: unset;
}

.xxx-table-branches-bank__item-rating .xxx-rating-site__stars-list{
    margin-bottom: 0;
}

.xxx-table-branches-bank__item-rating > span{
    color: #9299A2;
    font-size: 14px;
}

.xxx-table-branches-bank__item-logo img {
    max-height: 35px;
    max-width: 120px;
    display: block;
}

.xxx-table-branches-bank__item-logo .xxx-table-branches-bank__item-name{
    display: none;
}

.xxx-table-branches-bank__item-logo:before{
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    width: calc(100% + 30px);
    background-color: #e8ecef;
}

.xxx-table-branches-bank__item-logo:before {
    left: -15px;
    right: -15px;
}

.xxx-table-branches-bank__item-name-address{
    grid-area: name;
    width: 100%;
    position: relative;
}

.xxx-table-branches-bank__item-phone{
    grid-area: phones;
    width: 45px;
    margin-right: 15px;
}

.xxx-table-branches-bank__phone-mob{
    border-radius: 5px;
    border: 1px solid #DADEE2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #200E32;
    font-size: 0;
}

.xxx-table-branches-bank__phone-mob::before {
    font-size: 16px;
}

.xxx-table-branches-bank__phone-mob i{
    font-size: 20px;
}

.xxx-table-branches-bank__item-time{
    grid-area: time;
    align-self: center;
}

.xxx-table-branches-bank__item-address{
    color: #9299A2;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.xxx-table-branches-bank__item-action {
    padding-top: 15px;
    border-top: 1px solid #e8ecef;
    text-align: center;
    margin-left: -15px;
    margin-right: -15px;
    grid-area: more-btn;
}

.xxx-table-branches-bank__item-action.xxx-table-branches-bank__item-action--with-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 0;
}

.xxx-table-branches-bank__item-action.xxx-table-branches-bank__item-action--with-btn .xxx-g-btn {
    width: auto;
    min-width: 150px;
}

.xxx-table-branches-bank__item-more {
    grid-area: more-btn;
}

.xxx-table-branches-bank__item-description {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

.xxx-table-branches-bank__map{
    height: 300px;
    margin-bottom: 30px;
    border-radius: 5px;
    border: 1px solid #e8ecef;
}

.xxx-table-branches-bank__map iframe{
    width: 100%;
    height: 100%;
}

.xxx-table-branches-bank__item-description .xxx-g-list__item{
    line-height: 1.3;
}


.xxx-table-branches-bank__links{
    display: flex;
    flex-direction: column;
    margin-top: 30px;
}

.xxx-table-branches-bank__links > a{
    margin-bottom: 15px;
}

.xxx-table-branches-bank__links > a:last-of-type{
    margin-bottom: 0;
}

.xxx-table-branches-bank__close{
    display: none;
    position: absolute;
    right: -5px;
    top: 10px;
    font-size: 15px;
    background-color: transparent;
    border: 0;
    outline: 0;
    color: #ADB4BF;
}

.xxx-table-branches-bank__close.tablet\:xxx-table-branches-bank__close {
    display: none;
    top: 0;
    right: 0;
}

.xxx-table-branches-bank .xxx-table-list__head {
    display: none;
}

.xxx-table-branches-bank__more-bottom .xxx-table-branches-bank__item-more-btn {
    display: none;
}

.xxx-table-branches-bank__bottom-btn {
    opacity: 0;
}

.xxx-table-branches-bank__item.active .xxx-table-branches-bank__bottom-btn-wrap {
    position: sticky;
    width: 100%;
    background: white;
    padding: 20px 0;
    bottom: 0;
    margin-bottom: -60px;
}

.xxx-table-branches-bank__item.active .xxx-table-branches-bank__bottom-btn {
    width: 100%;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;

}

@media screen and (max-width: 740px) {
    .xxx-table-branches-bank__item.active {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 300;
        flex-wrap: nowrap;
        overflow-y: auto;
        margin-bottom: 0;
        background: #fff;
    }

    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__phone-mob {
        display: none;
    }

    .xxx-table-branches-bank__phone-item a {
        color: #388ec3;
        border-bottom: 1px dashed #388ec3;
    }

    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__item-inner > .xxx-table-branches-bank__item-logo {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 305;
        width: 100%;
        min-height: 60px;
        flex-direction: row;
        padding-top: 15px;
        padding-right: 30px;
        flex-wrap: wrap;
    }

    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__item-inner > .xxx-table-branches-bank__item-logo .xxx-table-branches-bank__item-name{
        display: block;
        margin-top: 10px;
        width: 100%;
    }

    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__item-inner > .xxx-table-branches-bank__item-name-address .xxx-table-branches-bank__item-name{
        display: none;
    }

    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__item-inner.active{
        padding-bottom: 40px;
        padding-top: 0;
        box-shadow: none;
    }
    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__item-inner.active .xxx-table-branches-bank__item-action{
        display: none;
    }

    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__item-inner.active .xxx-table-branches-bank__close{
        display: block;
    }
    .xxx-table-branches-bank__item.active .xxx-table-branches-bank__item-inner.active .xxx-table-branches-bank__close.tablet\:xxx-table-branches-bank__close{
        display: none;
    }
}