#start_message {
    padding-bottom: 25px;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 25px;
    font-weight: bold;
    position: absolute;
    right: 8px;
    top: -4px;
}

.close:hover {
    cursor: pointer;
}

.search-box {
    display: flex;
    width: 100%;
    padding: 0.5em 1em;
    margin: 0 0 1em 0;
    align-items: center;
}

/* THIS is the key: keep flex behavior intact */
.input-wrapper {
    position: relative;
    flex: 1;
    /* <-- keeps "max width minus button" behavior */
    min-width: 0;
    /* prevents overflow issues in flex */
}

/* input still fills wrapper */
.text-box {
    width: 100%;
    padding-right: 35px;
    /* space for X */
    box-sizing: border-box;
}

/* your button stays unchanged */
.float-right {
    margin-left: 10px;
    padding: 0 1em;
    flex-shrink: 0;
}

a.disabled {
    pointer-events: none;
    background-color: rgb(192, 192, 192) !important;
}

#message_list tr:hover {
    cursor: pointer;
}
#message_list td p {
    text-align: left;
}

#search_btn {
    background-color: rgb(90, 199, 249);
    border-radius: 12px;

}

#myInput {
    border-radius: 12px;

}

#subject {
    border-radius: 12px;

}

.scroller1 {
    min-width: 500px !important;
    text-align: center !important;
    position: relative;
    user-select: none;
    -moz-user-select: none;
    margin-right: 6px;
}

.hidden {
    visibility: collapse;
    display: none;
    line-height: 0;
}

.scroller1 div {
    position: absolute;
    left: 0;
    /* vertically center the icon */

}

.scroller1 select {
    position: absolute;
    right: 0;
    width: auto;
    height: 32px;
    /* vertically center the icon */

}

.unread {
    font-weight: bold;
    text-shadow: 0 0 0.6px currentColor;
}

.msger {
    display: flex;

    word-wrap: break-word;
    /* IE */
    flex-flow: column wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 867px;
    margin: 25px 10px;
    height: 500px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
}

.msger-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    background: #eee;
    color: #666;
}

.msger-chat {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;

    padding: 10px;
}

.msger-chat::-webkit-scrollbar {
    width: 6px;
}

.msger-chat::-webkit-scrollbar-track {
    background: #ddd;
}

.msger-chat::-webkit-scrollbar-thumb {
    background: #bdbdbd;
}

.msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
}

.msg:last-of-type {
    margin: 0;
}

.msg-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}

.msg-bubble {
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    background: #ececec;
}

.msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.msg-info-name {
    margin-right: 10px;
    font-weight: bold;
}

.msg-info-time {
    font-size: 0.85em;
}

.left-msg .msg-bubble {
    border-bottom-left-radius: 0;
}

.right-msg {
    flex-direction: row-reverse;
}

.right-msg .msg-bubble {
    background: #579ffb;
    color: #fff;
    border-bottom-right-radius: 0;
}

.right-msg .msg-img {
    margin: 0 0 0 10px;
}

.msger-inputarea {
    display: flex;
    padding: 10px;
    border-top: 2px solid #ddd;
    background: #eee;
}

.msger-inputarea * {
    padding: 10px;
    border: none;
    border-radius: 3px;
    font-size: 1em;
}

.msger-input {
    flex: 1;
    background: #ddd;
}

.msger-send-btn {
    margin-left: 10px;
    background: rgb(0, 196, 65);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.23s;
}

.msger-send-btn:hover {
    background: rgb(0, 180, 50);
}

.msger-chat {
    background-color: #fcfcfe;
}

#message_box {
    display: none;
}

/*
* 
*/
#affwp-affiliate-dashboard-tabs li.has-unread>a {
    font-weight: bold;
}

.msg-badge {
    background: red;
    color: white;
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 11px;
    margin-left: 8px;
    display: inline-block;
}

.mess_link {
    color: #334862;
}
.mess_link:hover {
    color: black;
}