.sms-phone-shell {
    display: flex;
    flex-direction: column;
    min-height: 700px;
    overflow: hidden;
}

.sms-phone-chat-area {
    flex: 1 1 auto;
    overflow-y: auto;
}

.quickreply,
#quick_reply_form {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: #f0f2f5;
    border-top: 1px solid #d8dee3;
    padding: 10px 12px;
}

#quick_reply_form .tborder,
#quick_reply_form .thead,
#quick_reply_form .tfoot,
#quick_reply_form table {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: 100%;
}

#quick_reply_form textarea,
#message {
    width: 100% !important;
    min-height: 44px !important;
    max-height: 140px;
    resize: vertical;
    border: 0 !important;
    border-radius: 22px !important;
    padding: 12px 16px !important;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.4;
}

#quick_reply_form input[type="submit"],
#quick_reply_form button,
.quickreply_submit,
input.submit {
    border-radius: 999px !important;
    padding: 10px 16px !important;
    border: 0 !important;
    cursor: pointer;
}

.sms-phone-mode #quick_reply_form .editor_control_bar,
.sms-phone-mode #quick_reply_form .sceditor-container {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.sms-phone-mode #quick_reply_form .sceditor-container iframe,
.sms-phone-mode #quick_reply_form .sceditor-container textarea {
    border-radius: 22px !important;
    background: #fff !important;
}

body.sms-phone-mode {

}

.sms-phone-shell{
height:700px;
overflow-y:auto;
}

body.sms-phone-mode #content {
    max-width: 820px !important;
    margin: 20px auto !important;
}

body.sms-phone-mode .sms-phone-shell {
    max-width: 760px;
    margin: 0 auto 20px auto;
    border: 12px solid #1a1a1a;
    border-radius: 34px;
    overflow: hidden;
    background: #e5ddd5;
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

body.sms-phone-mode .sms-phone-top {
    background: #075e54;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}

body.sms-phone-mode .sms-phone-statusbar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 8px 14px 4px;
    opacity: .92;
}

body.sms-phone-mode .sms-phone-contactbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 12px;
}

body.sms-phone-mode .sms-back {
    font-size: 26px;
    line-height: 1;
    width: 18px;
}

body.sms-phone-mode .sms-phone-contactmeta {
    min-width: 0;
}

body.sms-phone-mode .sms-phone-contacttitle {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.sms-phone-mode .sms-phone-contactsubtitle {
    font-size: 11px;
    opacity: .9;
    margin-top: 2px;
}

body.sms-phone-mode .sms-header-avatars {
    display: flex;
    align-items: center;
    min-width: 42px;
    height: 42px;
    position: relative;
}

body.sms-phone-mode .sms-header-avatars-group {
    width: 62px;
}

body.sms-phone-mode .sms-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.65);
    background: rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

body.sms-phone-mode .sms-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.sms-phone-mode .sms-header-avatars-group .sms-header-avatar {
    position: absolute;
}

body.sms-phone-mode .sms-header-avatars-group .sms-header-avatar:nth-child(1) { left: 0; z-index: 3; }
body.sms-phone-mode .sms-header-avatars-group .sms-header-avatar:nth-child(2) { left: 12px; z-index: 2; }
body.sms-phone-mode .sms-header-avatars-group .sms-header-avatar:nth-child(3) { left: 24px; z-index: 1; }

body.sms-phone-mode #posts {
    background:
        radial-gradient(circle at 20px 20px, rgba(255,255,255,.05) 2px, transparent 0) 0 0 / 28px 28px,
        #e5ddd5 !important;
    padding: 16px 14px !important;
    min-height: 420px;
}

body.sms-phone-mode .sms-post {
    margin: 0 0 12px 0;
}

body.sms-phone-mode .sms-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
}

body.sms-phone-mode .sms-row-in {
    justify-content: flex-start;
}

body.sms-phone-mode .sms-row-out {
    justify-content: flex-end;
}

body.sms-phone-mode .sms-avatar {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #c9d3d7;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.sms-phone-mode .sms-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.sms-phone-mode .sms-avatar-fallback span {
    font-size: 14px;
    font-weight: 700;
    color: #54656f;
}

body.sms-phone-mode .sms-bubble-wrap {
    max-width: min(76%, 540px);
}

body.sms-phone-mode .sms-bubble {
    border-radius: 18px;
    padding: 9px 12px 7px;
    word-break: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,.08);
}

body.sms-phone-mode .sms-bubble-in {
    background: #fff;
    border-bottom-left-radius: 6px;
}

body.sms-phone-mode .sms-bubble-out {
    background: #dcf8c6;
    border-bottom-right-radius: 6px;
}

body.sms-phone-mode .sms-author {
    font-size: 11px;
    font-weight: 700;
    color: #667781;
    margin-bottom: 5px;
}

body.sms-phone-mode .sms-text {
    font-size: 14px;
    line-height: 1.5;
    color: #111b21;
}

body.sms-phone-mode .sms-text img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

body.sms-phone-mode .sms-meta {
    margin-top: 5px;
    text-align: right;
    font-size: 11px;
    color: #667781;
}

body.sms-phone-mode .sms-post-controls {
    margin-top: 6px;
    font-size: 11px;
    opacity: .8;
}

body.sms-phone-mode .sms-post-controls a {
    margin-right: 8px;
}

body.sms-phone-mode #quick_reply_form,
body.sms-phone-mode .quickreply {
    background: #f0f2f5 !important;
    border-top: 1px solid #d6dde2 !important;
	height: 105px;
	margin-top: 35px;
}

body.sms-phone-mode textarea,
body.sms-phone-mode #message {
    border-radius: 18px !important;
    border: 1px solid #cfd8dc !important;
    background: #fff !important;
	height:60px;
}

body.sms-phone-mode .pagination,
body.sms-phone-mode .forumjump {
    background: #e5ddd5;
    padding: 10px 14px;
}