.custom-card .card {
    box-shadow: 0 0 6px rgb(0 0 0 / 16%);
    border: none;
    border-radius: 10px;
    background-color: #ffffff;
    height: calc(100vh - 203px);
    position: relative;
}

.chat-screen.custom-card .card-header {
    background-color: #34388d;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
}

.chat-screen.custom-card .card-header h4{
    font-size: 16px;
    border-radius: 10px 10px 0 0;
}

.chat-screen.custom-card .card-footer {
    padding: 0;
    border-radius: 0 0 10px 10px;
}

.chat-screen.custom-card .card-body {
    padding: 0;
    height: calc(100% - 44px - 74px);
}

.chat-screen.custom-card .card-body  .messaging{
    padding: 0;
    height: 100%;
}

.chat-screen.custom-card .inbox_msg {
    border: none;
    clear: both;
    height: 100%;
}

.chat-screen.custom-card .mesgs {
    padding: 0;
    height: 100%;
}

.chat-screen.custom-card .msg_history {
    height: 100%;
    padding: 10px 10px;
    overflow-y: auto;
}


.chat-screen.custom-card .type_msg {
    position: relative;
    background-color: #eff4f7;
    border-radius: 0 0 10px 10px;
}

.chat-screen.custom-card .write_msg{
    border-radius: 0 0 10px 10px;
    background-color: #eff4f7;
    padding: 10px 50px 10px 50px;
}

.chat-screen.custom-card .write_msg:focus {
    background-color: #ffffff;
    border-radius: 0 0 10px 10px;
}

.chat-screen.custom-card .write_msg:focus-visible {
    border: none;
    outline: none;
}

.chat-screen.custom-card .msg_image_btn {
    background-color: transparent;
    color: #34388d;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
    height: 33px;
    width: 33px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.chat-screen.custom-card .msg_image_btn:hover {
    background-color: #34388d20;
}

.chat-screen.custom-card .msg_image_btn:focus, .chat-screen.custom-card .msg_image_btn:focus-visible {
    outline: none;
}

.chat-screen.custom-card .msg_image_btn label {
    margin: 0;
}

.chat-screen.custom-card .msg_send_btn {
    background: #34388d;
    border: medium none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    height: 33px;
    width: 33px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.chat-screen.custom-card .msg_send_btn:hover {
    background-color: #34388d80;
}

.chat-screen.custom-card .msg_send_btn:focus, .chat-screen.custom-card .msg_image_btn:focus-visible {
    outline: none;
}

.chat-screen.custom-card .msg_send_btn label {
    margin: 0;
}

.chat-screen.custom-card .sent_msg {
    float: right;
    width: auto;
    max-width: 500px;
}

.chat-screen.custom-card .sent_msg p {
    background: #34388d;
    border-radius: 3px;
    font-size: 14px;
    margin: 0; 
    color:#fff;
    padding: 3px 7px;
    text-align: right;
    min-width: 120px;
}

.chat-screen.custom-card .sent_msg p b{
    font-size: 10px;
    font-weight: 400;
    color: #ffffffad;
}

.chat-screen.custom-card .received_msg {
    display: inline-block;
    padding: 0 0 0 10px;
    margin-bottom: 20px;
    max-width: 500px;
}

.chat-screen.custom-card .received_withd_msg {
    width: 100%;
}

.chat-screen.custom-card .received_withd_msg p {
    background: #ffffff;
    border-radius: 3px;
    border: 1px solid #dcdcdc;
    color: #000000;
    font-size: 14px;
    margin: 0;
    padding: 3px 7px;
    width: 100%;
    min-width: 120px;
}

.chat-screen.custom-card .received_withd_msg p b{
    font-size: 10px;
    font-weight: 400;
    color: #848c91;
}

.chat-screen.custom-card .msg_history .time_date {
    color: #848c91;
    display: block;
    font-size: 10px;
    margin: 5px 0 0;
}

.chat-screen.custom-card .msg_history .sent_msg .time_date {
    text-align: right;
}

.chat-screen.custom-card .document a {
    background: #34388d;
    border-radius: 3px;
    font-size: 14px;
    margin: 0; 
    color:#fff;
    padding: 7px;
    text-align: right;
    min-width: 120px;
    display: block;
}

.chat-screen.custom-card .incoming_msg.document a {
    background: #ffffff;
    border-radius: 3px;
    color: #000000;
    border: 1px solid #dcdcdc;
    text-align: left;
}

/* width */
.chat-screen.custom-card  ::-webkit-scrollbar {
    width: 5px;
}

/* Track */
.chat-screen.custom-card ::-webkit-scrollbar-track {
    border-radius: 0;
    background: #efefef;
}

/* Handle */
.chat-screen.custom-card ::-webkit-scrollbar-thumb {
    background: #34388d;
    border-radius: 10px;
}

.chat-screen.custom-card .incoming_msg.document img{
    width: 270px;
    height: auto;
}

.chat-screen.custom-card .outgoing_msg.document img{
    width: 250px; height: auto
}

.chat-screen.custom-card .outgoing_msg{ overflow:hidden; margin:26px 0 26px;}

.input_msg_write input {
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    border: medium none;
    color: #4c4c4c;
    font-size: 15px;
    min-height: 48px;
    width: 100%;
}

@media (max-width: 767px){
    .sent_msg {
        float: right;
        width: 80%;
    }
    .received_withd_msg {
        width: 80%;
    }
}
.allergy-pop {
    width: 20em !important
}
#addAllergyBtn{
    margin-left: -227px;
    margin-top: -7px;
}
.choices .choices__inner{
    height: 48px;
    overflow-y: auto;
}

#has_allergy-error {
    margin-left: 15px;
}