.header_top_notification_modal .relative {
    position: relative
}

.header_top_notification_modal .m-0 {
    margin: 0!important
}

.header_top_notification_modal .ml-auto {
    margin-left: auto !important;
}

.ps_notification_box .p-0 {
    padding: 0!important
}

.ps_notification_box .pl-3 {
    padding-left: 1rem!important
}

.ps_notification_box .pr-3 {
    padding-right: 1rem!important
}

.ps_notification_box .pt-3 {
    padding-top: 1rem!important
}

.ps_notification_box .pb-1 {
    padding-bottom: .25rem!important
}

.ps_notification_box .row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px
}

.ps_notification_box .col-5,
.col-7 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px
}

.ps_notification_box .col-5 {
    -ms-flex: 0 0 41.666667%;
    flex: 0 0 41.666667%;
    max-width: 41.666667%
}

.ps_notification_box .col-7 {
    -ms-flex: 0 0 58.333333%;
    flex: 0 0 58.333333%;
    max-width: 58.333333%
}

.ps_notification_box .d-flex {
    display: -ms-flexbox!important;
    display: flex!important
}

.ps_notification_box .align-items-center {
    -ms-flex-align: center!important;
    align-items: center!important
}

.ps_notification_box .align-self-center {
    -ms-flex-item-align: center!important;
    align-self: center!important
}

.ps_notification_box .tf-addBox img,
.tf-maximizeBox img,
.tf-actionBox img {
    max-width: 20px;
    display: inline-block
}

.ps_notification_box .tf-dashBox {
    min-height: 425px;
    overflow-y: auto;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1)
}

.ps_notification_box .tf-dashBoxHead {
    border-bottom: 1px solid #c7c7c9;
    -ms-flex-align: center!important;
    align-items: center!important;
    padding-bottom: 6px!important;
    margin-right: 31px
}

.ps_notification_box .tf-dashBoxHead.padb14 {
    padding-bottom: 14px!important
}

.ps_notification_box .tf-dashBoxHead.messages {
    padding-top: 7px!important;
    padding-bottom: 7px!important;
    margin-right: 0
}

.ps_notification_box .tf-addBox,
.tf-maximizeBox,
.tf-actionBox {
    padding: 0;
    margin-bottom: 0!important;
    display: inline-block;
    margin-top: -5px
}

.ps_notification_box .tf-addBox a,
.tf-maximizeBox a,
.tf-actionBox button {
    border-radius: 50%;
    display: flex;
    padding: 0!important;
    background: #fff;
    opacity: 1;
    width: 36px!important;
    text-align: center;
    height: 36px!important;
    line-height: 30px!important;
    outline: none;
    justify-content: center;
    align-items: center
}

.ps_notification_box .tf-dashBoxHead h2 {
    font-size: 20px;
    margin: 0;
    margin-top: 0;
    color: #4d4d4d;
    margin-top: 0
}

.ps_notification_box span.org_plivo_number {
    color: #404041;
    cursor: pointer
}

.ps_notification_box .tf-dashBoxHead.messages span#choosephone,
.tf-dashBoxHead.messages span.org_plivo_number {
    margin-top: 12px;
    color: #404041
}

.ps_notification_box .tf-msgBox {
    min-height: 378px
}

.ps_notification_box .tf-chatList {
    padding-top: 60px;
    padding-left: 0;
    height: 375px;
    padding-right: 0;
    border-right: 2px solid #dcdcdc;
    border-right-width: 2px;
    position: relative
}

.ps_notification_box .tf-chatlistHead {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12.5px;
    background: #fff;
    border-bottom: 1px solid #c5c5c6
}

.ps_notification_box .tf-chatlistHead input {
    width: 100%;
    height: 35px;
    border: 1px solid #e4e4e4;
    padding: 5px 5px 5px 30px;
    font-weight: 300;
    color: #404041;
    font-size: 14px;
    background: url(../images/fssearch.svg) no-repeat 7px 8px;
    background-size: 18px
}

.ps_notification_box .tf-chatList ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    height: 100%;
    overflow-y: auto
}

.ps_notification_box .tf-chatList ul li {
    padding: 12px 12px 6px;
    background: #fff;
    position: relative
}

.ps_notification_box .tf-chatList ul li+li {
    border-top: 1px solid #e1e2e2;
}

.ps_notification_box .tf-msgProfile {
    padding-right: 10px
}

.ps_notification_box .tf-msgProfile,
.tf-msgPreview,
.tf-msgAction {
    display: table-cell;
    vertical-align: top
}

.ps_notification_box .tf-msgProfile span {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #d0d0d0;
    background: #fff;
    text-align: center;
    overflow: hidden
}

.ps_notification_box .tf-msgProfile span img {
    width: 45px;
    height: 45px
}

.ps_notification_box .tf-msgPreview {
    width: 84%
}

.ps_notification_box .tf-msgPreview h3 {
    font-size: 14px;
    color: #404041;
    margin: 2px 0
}

.ps_notification_box .tf-msgAction {
    float: right;
    padding-bottom: 0;
    padding-top: 2px
}

.ps_notification_box .tf-msgPreview p {
    font-size: 14px;
    color: #8f8f8f;
    width: 100%;
    height: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all
}

.ps_notification_box .tf-msgAction p {
    color: #888888;
    font-size: 12px;
    height: auto;
    display: inline
}

.ps_notification_box .tf-chatDetails {
    height: 360px
}

.ps_notification_box .tf-conHead {
    display: table;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    padding: 10px
}

.ps_notification_box .tf-chatDetails .tf-conHead .dropdown.flag {
    top: 18px;
    left: 47px;
    position: absolute;
}


/*top:17px; left:36px;*/

.ps_notification_box .tf-chatDetails .tf-conHead .dropdown.flag a {
    font-size: 13px;
}

.ps_notification_box .tf-chatDetails .tf-conHead .dropdown.flag .btn-default {
    color: #404041!important;
    font: 300 14px 'Poppins', sans-serif !important;
    padding: 0 6px 0 9px;
    line-height: 22px;
    background-color: transparent;
    border: none;
}

.ps_notification_box .tf-chatDetails .tf-conHead .dropdown.flag .btn-default.dropdown-toggle::after {
    display: none;
}

.ps_notification_box .tf-chatDetails .tf-conHead .search_foster_name {
    width: 93% !important;
    height: 37px !important;
    border: 1px solid #aeaeae !important;
    padding: 5px 8px 5px 58px !important;
    font-weight: 300 !important;
    color: #404041 !important;
    font-size: 14px !important;
    margin-left: 5px;
    border-radius: 6px !important;
    background-color: #fff !important;
}

.ps_notification_box .tf-msgProfile {
    padding-right: 10px
}

.ps_notification_box .tf-conHead .tf-msgProfile {
    width: 45px;
    padding: 0
}

.ps_notification_box .tf-msgProfile span {
    height: 45px;
    width: 45px;
    border-radius: 50% !important;
    display: inline-block;
    border: 1px solid #d0d0d0;
    background: #fff;
    text-align: center;
    overflow: hidden
}

.ps_notification_box .tf-conHead h3 {
    margin: 0;
    padding: 10px
}

.ps_notification_box ul.tf-conBox {
    height: 100%;
    overflow-y: auto;
    margin: 0;
    padding: 70px 0;
    padding-right: 0;
    list-style: none;
}

.ps_notification_box .ps_message_wrapper .row.tf-msgBox .col-7.tf-chatDetails.ps_set_msg_div_list ul#ps_msg_height_box {
    /* removed height */
    /* height: 304px !important; */
    padding: 10px 0 150px 0;
}

.ps_notification_box .tf-msgBox ul.tf-conBox {
    height: 304px
}

.ps_notification_box .tf-msgboxSender {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 15px 0;
    background-color: #fff;
    color: #404041
}

.ps_notification_box .tf-msgboxSender textarea {
    width: 100%;
    margin: 0;
    padding: 10px 43px 10px 10px;
    font-size: 14px;
    color: #404041;
    font-weight: 300;
    height: 68px;
    border: 1px solid #DCDCDD;
    border-radius: 5px;
    resize: none;
    overflow: hidden
}

.ps_notification_box .tf-msgboxSender .blocked {
    color: #8D8D8D;
    font-style: italic;
    font-size: 15px;
    line-height: 22px;
    position: absolute;
    top: 27px;
    left: 31px;
    padding-right: 27px
}

.ps_notification_box .tf-msgboxSender .blocked a {
    color: #EE5A36;
    font-style: italic;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none
}

.ps_notification_box ul.tf-conBox li {
    float: left;
    max-width: 100%
}

.ps_notification_box ul.tf-conBox li.sender {
    float: right;
    clear: both
}

.ps_notification_box ul.tf-conBox li.reciever {
    float: left;
    clear: both
}

.ps_notification_box ul.tf-conBox li.sender .msg,
ul.tf-conBox li.reciever .msg {
    padding: 10px 15px;
    border-radius: 10px;
    line-height: 22px
}

.ps_notification_box ul.tf-conBox li.sender .msg {
    background: #6e6c82;
    color: #fff
}

.ps_notification_box ul.tf-conBox li.reciever .msg {
    background: #f6f6f6;
    color: #212529;
}

.ps_notification_box ul.tf-conBox li.sender p {
    text-align: right;
    font-weight: 300;
    padding-right: 3px;
    font-size: 12px
}

.ps_notification_box .tf-chatList ul li:hover,
.tf-chatList ul li.active {
    background: #f1f2f2
}

.ps_notification_box .tf-dashBoxHead.messages .tf-addBox {
    margin-top: 2px;
}


/* ====================== Header Notifiacation ====================== */

.ps_notification_box h1,
.ps_notification_box h2,
.ps_notification_box h3,
.ps_notification_box h4,
.ps_notification_box h5,
.ps_notification_box h6 {
    border: none;
}

.header_top_notification_modal ::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

.header_top_notification_modal ::-webkit-scrollbar-track {
    background-color: #eaeaea;
    border-left: 1px solid #cecece;
}

.header_top_notification_modal ::-webkit-scrollbar-thumb {
    background-color: #cecece;
}

.header_top_notification_modal ::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.header_top_notification_modal ::-webkit-scrollbar-track {
    border-radius: 0;
    box-shadow: none;
    border: 0;
}

.header_top_notification_modal ::-webkit-scrollbar-thumb {
    border-radius: 0;
    box-shadow: none;
    border: 0;
}

.ps_notification_box .tf-msgBox .tf-conHead input#search_foster_name::-webkit-input-placeholder {
    color: #808080;
    opacity: 1;
}

.ps_notification_box .tf-msgBox .tf-conHead input#search_foster_name::-moz-placeholder {
    color: #808080;
    opacity: 1;
}

.ps_notification_box .tf-msgBox .tf-conHead input#search_foster_name:-ms-input-placeholder {
    color: #808080;
    opacity: 1;
}

.ps_notification_box .tf-msgBox .tf-conHead input#search_foster_name:-moz-placeholder {
    color: #808080;
    opacity: 1;
}

.ps_notification_box .tf-msgBox .tf-conHead input#search_foster_name:placeholder {
    color: #808080;
    opacity: 1;
}

.ps_notification_box input::-webkit-input-placeholder,
.ps_notification_box textarea::-webkit-input-placeholder {
    font-style: italic;
    color: #B0B0B0;
    font-weight: 300;
}

.ps_notification_box input::-moz-placeholder,
.ps_notification_box textarea::-moz-placeholder {
    font-style: italic;
    color: #B0B0B0;
    font-weight: 300;
}

.ps_notification_box input:-ms-input-placeholder,
.ps_notification_box textarea:-ms-input-placeholder {
    font-style: italic;
    color: #B0B0B0;
    font-weight: 300;
}

.ps_notification_box input:-moz-placeholder,
.ps_notification_box textarea:-moz-placeholder {
    font-style: italic;
    color: #B0B0B0;
    font-weight: 300;
}

.ps_notification_box .tf-dashBoxHead h2,
.ps_notification_box .tf-dashBoxHead.messages span.org_plivo_number,
.ps_notification_box .tf-chatlistHead input,
.ps_notification_box .tf-chatList ul li .tf-msgPreview h3,
.ps_notification_box .tf-msgPreview>.tf-msgAction p,
.ps_notification_box .tf-msgPreview>p,
.ps_notification_box ul.tf-conBox li.reciever .msg,
.ps_notification_box ul.tf-conBox li.sender .msg,
.ps_notification_box ul.tf-conBox li.sender p,
.ps_notification_box .tf-msgboxSender .blocked,
.ps_notification_box .tf-conHead h3 {
    font-family: 'Poppins', sans-serif !important;
}

.header_top_notification_modal .modal-dialog {
    height: 100%;
    width: 100%;
    max-width: 771px;
    display: flex;
    margin: 0 0 0 auto !important;
    box-shadow: -10px 0 10px rgba(128, 128, 130, .45);
}

.ps_notification_box {
    width: 100%;
    display: flex;
    flex: 1 0 auto;
}

.modal-backdrop.show {
    opacity: .5;
}

.ps_notification_box .tf-dashboardBox {
    /* background: transparent; */
    width: 100%;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.ps_notification_box .tf-dashboardBox .loader .modern div {
    width: 180px;
}

.ps_notification_box .tf-dashboardBox .tf-dashBox {
    display: flex;
    flex: 1 0 auto;
}

.ps_notification_box .tf-dashboardBox .tf-dashBox .ps_message_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ps_notification_box .ps_message_wrapper .row.tf-msgBox {
    display: flex;
    flex: 1 0 auto;
}

.ps_notification_box .ps_message_wrapper .nearby_message_listing,
.ps_notification_box .ps_message_wrapper .tf-chatDetails {
    height: calc(100vh - 55px);
    overflow: hidden;
}

.ps_notification_box .tf-dashBoxHead.messages span.org_plivo_number {
    margin: 3px 0 0 0;
}

.ps_notification_box span#choosephone a:hover,
.ps_notification_box span#choosephone:hover,
.ps_notification_box span.org_plivo_number:hover,
.ps_notification_box .tf-dashBoxHead.messages span#choosephone:hover {
    background-color: transparent;
    color: #fb8337!important;
    text-decoration: none;
}

.ps_notification_box .ps_message_wrapper .tf-chatDetails {
    padding-right: 16.2px;
}

.ps_notification_box .ps_message_wrapper .nearby_message_listing {
    border-width: 1px;
}

.ps_notification_box .ps_message_wrapper .tf-chatDetails ul.tf-conBox {
    height: 100%;
    padding-right: 10px;
}

.ps_notification_box .ps_message_wrapper .tf-addBox a,
.ps_notification_box .ps_message_wrapper .ps_modal_close_btn a {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.ps_notification_box .ps_message_wrapper .tf-addBox a {
    margin-left: 14px;
}

.ps_notification_box .ps_message_wrapper .ps_modal_close_btn a {
    margin-left: 3px;
}

.ps_notification_box .ps_message_wrapper .tf-addBox a:hover,
.ps_notification_box .ps_message_wrapper .ps_modal_close_btn a:hover {
    background: #F6F6FB;
}

.ps_notification_box .tf-dashBoxHead h2 {
    font-weight: 700 !important;
    line-height: 24px;
}

.ps_notification_box .tf-chatlistHead {
    padding: 13.6px 16.4px 14.2px 13px;
    border-bottom: 1px solid #DCDCDC;
}

.ps_notification_box .tf-chatlistHead input {
    background-color: #FFF;
    height: 33px;
    border: 1px solid #e4e4e4;
    border-radius: 3px !important;
    padding: 3px 5px 3px 31.7px;
}

.ps_notification_box .tf-chatList ul li {
    display: flex;
    align-items: flex-start;
    padding: 13.4px 12.6px 12.9px 12.6px;
    cursor: pointer;
}

.ps_notification_box .tf-chatList ul li .tf-msgProfile {
    display: flex;
    padding-right: 0;
    margin-right: 13.8px;
}

.ps_notification_box .tf-chatList ul li .tf-msgProfile span,
.ps_notification_box .tf-chatList ul li .tf-msgProfile span img {
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
}

.ps_notification_box .tf-msgPreview {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ps_notification_box .tf-msgPreview h3 {
    width: 100% !important;
    color: #404041;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 14.4px !important;
    margin: 0 0 7.3px 0;
    padding: 0;
}

.ps_notification_box .tf-msgPreview>.tf-msgAction {
    padding: 0;
    margin-bottom: 3.4px;
}

.ps_notification_box .tf-msgPreview>.tf-msgAction p {
    color: #808080;
    font-size: 12px;
    font-weight: 300;
    line-height: 15.2px;
    margin: 0;
}

.ps_notification_box .tf-msgPreview>p {
    color: #808080;
    font-size: 14px;
    font-weight: 300;
    line-height: 13.2px;
    margin: 0 !important;
    height: auto;
}

.ps_notification_box .tf-chatDetails .tf-conHead {
    padding: 10.1px 17.5px;
}

.ps_notification_box .tf-chatDetails .tf-conHead .tf-msgProfile,
.ps_notification_box .tf-chatDetails .tf-conHead .tf-msgProfile span,
.ps_notification_box .tf-chatDetails .tf-conHead .tf-msgProfile span img {
    width: 44.64px;
    height: 44.64px;
}

.ps_notification_box ul.tf-conBox li.reciever .msg,
.ps_notification_box ul.tf-conBox li.sender .msg {
    padding: 9px 14.4px 9px 17px;
    border-radius: 6px !important;
    line-height: 20px;
}

.ps_notification_box ul.tf-conBox li {
    margin-top: 30px;
}

.ps_notification_box ul.tf-conBox li.sender p {
    margin-bottom: 0;
    margin-top: 4.1px;
    color: #222529;
}

.ps_notification_box .tf-msgboxSender {
    display: inline-flex;
    padding: 15px 17.4px 23.5px 16.2px;
}

.ps_notification_box .tf-msgboxSender textarea {
    height: 82px;
    border: 1px solid #E4E4E4;
    padding: 10px;
}

.ps_notification_box .tf-conHead h3 {
    color: #212529;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 15.6px !important;
    /* padding-left: 9.7px;
    padding-top: 11px; */
    padding: 10px 10px 4px 10px;
}

.backdrop_opacity .modal-backdrop {
    background-color: #000;
    opacity: .5;
}


/* Header Notification Modal Animation ====================== */

.header_top_notification_modal {
    width: 100%;
    max-width: 771px;
    display: flex !important;
    transition: transform 0.5s ease !important;
    right: 0 !important;
    left: inherit !important;
    transform: translateX(100%);
}

#header_top_notification_modal.modal-open .modal.show,
#header_top_notification_modal.modal.fade.show,
.header_top_notification_modal.modal.show,
.header_top_notification_modal.modal.in,
.morepopupc.modal.fade.show {
    right: 0;
    transform: translateX(0);
}


/* Foster Modal UI Fixes ====================== */

.fosterpage_modal_parent .modal-dialog-centered {
    align-items: inherit;
    min-height: inherit;
}

.fosterpage_modal_parent .ps_notification_box .ps_message_wrapper .row.tf-msgBox {
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.fosterpage_modal_parent .ps_notification_box .ps_message_wrapper .nearby_message_listing,
.fosterpage_modal_parent .ps_notification_box .ps_message_wrapper .tf-chatDetails {
    position: relative;
    box-sizing: border-box;
}

.fosterpage_modal_parent .ps_notification_box .tf-chatlistHead,
.fosterpage_modal_parent .ps_notification_box .tf-chatlistHead input {
    box-sizing: border-box;
}

.fosterpage_modal_parent .modal-open .modal.show,
.modal.fade.show {
    padding-top: 0;
}

.fosterpage_modal_parent .modal:not(#header_top_notification_modal) .modal-dialog {
    -webkit-transform: inherit !important;
    -ms-transform: inherit !important;
    transform: inherit !important;
}

@media only screen and (max-width: 767px) {
    .header_top_notification_modal .modal-content {
        height: calc(100% - 20px);
    }
    .header_top_notification_modal .modal-dialog {
        height: calc(100% - 0);
        width: calc(100% - 20px) !important;
        margin: auto !important;
    }
    .ps_notification_box .ps_message_wrapper .row.tf-msgBox {
        flex-wrap: wrap;
        min-height: inherit;
    }
    .ps_notification_box .ps_message_wrapper .nearby_message_listing,
    .ps_notification_box .ps_message_wrapper .tf-chatDetails {
        max-width: 100%;
        flex: 0 0 100%;
        height: auto;
    }
    .ps_notification_box .ps_message_wrapper .tf-chatDetails {
        height: 306px;
        margin-top: auto;
    }
    .ps_notification_box .ps_message_wrapper .nearby_message_listing {
        overflow-y: auto;
        height: calc(100% - 306px);
    }
    .ps_notification_box .ps_message_wrapper .tf-chatDetails {
        border-top: 2px solid #e1e2e2;
    }
    .ps_notification_box .tf-chatList ul li .tf-msgProfile span img,
    .ps_notification_box .tf-chatDetails .tf-conHead .tf-msgProfile span img {
        max-width: 44.64px;
        max-height: 44.64px;
    }
    .fosterpage_modal_parent .ps_notification_box .ps_message_wrapper .row.tf-msgBox {
        flex-wrap: wrap;
        min-height: inherit;
    }
    .fosterpage_modal_parent .header_top_notification_modal .modal-content {
        margin-top: 10px;
    }
}

@media only screen and (max-width:462px) {
    .ps_notification_box .tf-chatDetails .tf-conHead .dropdown.flag {
        top: 38px;
        left: 28px;
    }
    .ps_notification_box .tf-chatDetails .tf-conHead .search_foster_name {
        width: 98% !important;
        padding-left: 63px !important;
    }
}

@media only screen and (max-width:365px) {
    .ps_message_wrapper .tf-dashBoxHead {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .ps_message_wrapper .tf-dashBoxHead .tf-boxHeadAction {
        width: 100%;
    }
    .ps_notification_box .tf-dashBoxHead.messages span.org_plivo_number {
        margin-right: auto;
    }
}

#addContactforUnsaved {
    position: absolute;
    right: 10px;
    top: 10px;
}

.recp_num {
    font-size: 12px;
    padding: 0px 10px;
}

.recp_num {
    font-size: 12px;
    padding: 0px 10px;
}