/* 메시지 목록 */

.msg_wrap .msg_box {
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column;
    right: -100%;
    width: 444px;
    height: calc(100vh - 61px);
    box-shadow: 0 2px 10px #00000026;
    transition: all 0.5s ease-in-out;
    z-index: 1000;
}

.msg_wrap .msg_box.on {
    right: 0px;
}

.msg_wrap .msg_header {
    position: relative;
    height: 95px;
    border-bottom: 1px solid #f1f1f3;
}

.msg_wrap .msg_header .msg_tit {
    padding: 35px 28px;
    letter-spacing: 26px;
    font-family: 'Spoqa Han Sans Neo';
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.53px;
    color: #333;
}

.msg_wrap .msg_header .pop_close {
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
    background: transparent url('../images/gbp/msg_close.svg') center no-repeat;
}

.msg_wrap .msg_header .pop_close img {
    width: 100%;
    height: 100%;
}

.msg_wrap .msg_cont {
    position: relative;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

.msg_wrap .msg_cont::-webkit-scrollbar,
.msg_wrap .msg_cont::-webkit-scrollbar-track {
    background-color: transparent;
}

.msg_wrap .msg_cont::-webkit-scrollbar {
    width: 10px;
}

.msg_wrap .msg_cont::-webkit-scrollbar-thumb {
    background-color: #dfdfdf;
    background-clip: padding-box;
    border-radius: 30px;
}

.msg_wrap .msg_list {
    min-height: 100%;
}

.msg_wrap .msg_list>li {
    position: relative;
    padding: 25px 23px;
    border-bottom: 1px solid #f1f1f3;
}

.msg_wrap .msg_list li.msg_fixed {
    background: url('../images/gbp/msg_fixed.svg') top 8px left 8px no-repeat;
}

.msg_wrap .msg_list .flex {
    position: relative;
    flex-wrap: nowrap;
    gap: 8px;
}

.msg_wrap .msg_pf {
    position: relative;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    overflow: hidden;
}

.msg_wrap .msg_pf img {
    display: block;
    width: 100%;
    height: 100%;
}

.msg_wrap .msg_list .msg {
    flex: 1;
    width: 293px;
    padding-right: 50px;
}

.msg_wrap .msg_list .user_name {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: -10px;
    font-family: 'Lexend Deca';
    font-size: 15px;
    letter-spacing: 0;
    color: #333;
}

.msg_wrap .msg_list .user_name .ellipsis {
    max-width: 200px;
}

.msg_wrap .msg_list .user_name .level {
    width: 40px;
    height: 40px;
    object-fit: none;
}

.msg_wrap .msg_list .msg p {
    margin: 0;
    line-height: 16px;
    font-family: 'Spoqa Han Sans Neo';
    font-size: 11px;
    letter-spacing: -0.28px;
    color: #7a7a7a;
}

.msg_wrap .msg_list .msg_info {
    position: absolute;
    top: 2px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    margin-bottom: -4px;
    font-size: 11px;
    font-weight: 500;
}

.msg_wrap .msg_list .msg_info .msg_time {
    line-height: 16px;
    font-family: 'Noto Sans KR';
    letter-spacing: -0.28px;
    color: #929292;
}

.msg_wrap .msg_list .msg_info .msg_count {
    min-width: 21px;
    padding: 0 5px;
    margin-right: -1px;
    line-height: 21px;
    text-align: center;
    font-family: 'Lexend Deca';
    font-size: 11px;
    letter-spacing: -0.55px;
    color: #fff;
    background-color: #ff1a1a;
    border-radius: 10px;
}

.msg_wrap .btn_more {
    position: absolute;
    top: 1px;
    right: 3px;
    width: 30px;
    height: 30px;
    background: transparent url('../images/gbp/btn_more.svg') center no-repeat;
}

.msg_wrap .btn_more+.more_list {
    position: absolute;
    top: 9px;
    right: 33px;
    display: none;
    min-width: 92px;
    background-color: #fff;
    box-shadow: 0 3px 6px #00000029;
    z-index: 10;
}

.msg_wrap .btn_more+.more_list li {
    padding: 5px 10px;
}

.msg_wrap .btn_more+.more_list li:hover {
    background-color: #00000029;
}


/* 메시지 없는 경우 */

.msg_wrap .msg_cont .blank_data {
    position: relative;
    height: 200px;
}

.msg_wrap .msg_cont .blank_data img {
    margin: 0;
}


/* 메시지 보기 */

.msg_wrap .msg_header .user_box {
    display: flex;
    gap: 8px;
    padding: 23px 23px 11px;
}

.msg_wrap .msg_header .user_box .user_name {
    display: flex;
    align-items: center;
    max-width: 200px;
}

.msg_wrap .msg_header .btn_more {
    top: auto;
    right: 7px;
    bottom: 12px;
    background-size: 23px;
}

.msg_wrap .msg_header .more_list {
    top: 60px;
    right: 40px;
}

.msg_wrap .chat_list {
    padding: 10px 23px 17px;
}

.msg_wrap .chat_list .chat_date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 23px;
    line-height: 26px;
}

.msg_wrap .chat_list .chat_date::before,
.msg_wrap .chat_list .chat_date::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #f5f6fa;
}

.msg_wrap .chat_list .chat_date span {
    min-width: 66px;
    padding: 0 11px;
    text-align: center;
    font-family: 'Noto Sans KR';
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.28px;
    color: #8c9eff;
    background-color: #f5f6fa;
    border-radius: 50px;
}

.msg_wrap .chat_list .chat_box {
    display: flex;
    gap: 9px;
    font-family: 'Spoqa Han Sans Neo';
    font-size: 12px;
    line-height: 18px;
    letter-spacing: -0.3px;
    color: #4d4f5c;
}

.msg_wrap .chat_list .chat_box+.chat_box {
    margin-top: 6px;
}

.msg_wrap .chat_list .chat_box .msg ul {
    display: flex;
    flex-direction: column;
}

.msg_wrap .chat_list .chat_box li {
    position: relative;
    width: max-content;
    min-width: 60px;
    max-width: 200px;
    padding: 11px 14px 9px;
    background-color: #edf0f5;
    border-radius: 16px 16px 16px 0;
    transition: all 0.3s ease-in-out;
}

.msg_wrap .chat_list .chat_box li.cm {
    padding: 9px 12px;
    margin-bottom: 2px;
}

.msg_wrap .chat_list .chat_box li+li {
    margin-top: 3px;
}

.msg_wrap .chat_list .chat_box .chat_time {
    margin-top: 5px;
    line-height: 13px;
    font-size: 10px;
    letter-spacing: 0;
    color: #43425d;
    opacity: .5;
}

.msg_wrap .chat_list .chat_box.chat_me {
    justify-content: flex-end;
}

.msg_wrap .chat_list .chat_box .msg {
    display: flex;
    flex-direction: column;
}

.msg_wrap .chat_list .chat_box.chat_me .msg,
.msg_wrap .chat_list .chat_box.chat_me .msg ul {
    align-items: flex-end;
    margin-top: 3px;
}

.msg_wrap .chat_list .chat_box.chat_me li {
    background-color: #deeaff;
    border-radius: 16px 16px 0 16px;
}

.msg_wrap .chat_list .chat_box.chat_me .chat_time {
    text-align: right;
}

.msg_wrap .chat_list .chat_box li.msg_img {
    width: 200px;
    height: 200px;
    padding: 0;
    background-color: #f5f6fa;
    border-radius: 0;
}

.msg_wrap .chat_list .chat_box .msg_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg_wrap .chat_list .chat_box li.msg_link {
    width: 250px;
    max-width: 250px;
    padding: 0;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 6px #00000029;
    overflow: hidden;
}

.msg_wrap .chat_list .chat_box li.msg_link img {
    width: 100%;
    height: 125px;
    object-fit: cover;
}

.msg_wrap .chat_list .chat_box li.msg_link div {
    padding: 15px 14px;
    font-family: 'Spoqa Han Sans Neo';
    color: #5a5a5a;
}

.msg_wrap .chat_list .chat_box li.msg_link div strong {
    display: block;
    line-height: 13px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.25px;
}

.msg_wrap .chat_list .chat_box li.msg_link div span {
    display: block;
    margin-top: 6px;
    line-height: 12px;
    font-size: 9px;
    letter-spacing: -0.23px;
}

.msg_wrap .chat_list .chat_box li.msg_link div i {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 7px;
    letter-spacing: -0.17px;
    color: #929292;
}

.msg_wrap .chat_list .chat_box li.msg_img.cm,
.msg_wrap .chat_list .chat_box li.msg_link.cm {
    margin-bottom: 0;
}

.msg_wrap .msg_footer {
    padding: 12px;
    background-color: #f5f6fa;
    border-top: 1px solid #f1f1f3;
}

.msg_wrap .msg_footer .msg_input {
    display: flex;
    gap: 13px;
}

.msg_wrap .msg_footer .msg_input .textarea_wrap {
    position: relative;
    flex: 1;
    min-height: 110px;
    height: auto;
    padding: 12px 2px 12px 12px;
    line-height: 19px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease-in-out;
}

.msg_wrap .msg_footer .msg_input textarea {
    width: 100%;
    min-height: 80px;
    max-height: 303px;
    padding: 0;
    font-family: 'Spoqa Han Sans Neo';
    font-size: 13px;
    letter-spacing: -0.65px;
    color: #5a5a5a;
    resize: none;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    transition: all 0.3s ease-in-out;
}

.msg_wrap .msg_footer .msg_input textarea::-webkit-scrollbar,
.msg_wrap .msg_footer .msg_input textarea::-webkit-scrollbar-track {
    background-color: transparent;
}

.msg_wrap .msg_footer .msg_input textarea::-webkit-scrollbar {
    width: 10px;
}

.msg_wrap .msg_footer .msg_input textarea::-webkit-scrollbar-thumb {
    background-color: #dfdfdf;
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 30px;
}

.msg_wrap .msg_footer .msg_input .btn_confirm {
    line-height: 33px;
    min-width: 56px;
    border-radius: 12px;
}

.msg_wrap .msg_footer .btn_wrap {
    display: flex;
    gap: 10px;
    margin-top: 7px;
}

.msg_wrap .msg_footer .btn_wrap button {
    width: 20px;
    height: 20px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
}

.msg_wrap .msg_footer .btn_wrap img {
    width: 20px;
    height: 20px;
    border: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
}

.msg_wrap .msg_footer .btn_wrap .ic_cam {
    background-image: url('../images/gbp/ic_cam.svg');
}

.msg_wrap .msg_footer .btn_wrap .ic_cam:hover {
    background-image: url('../images/gbp/ic_camB.svg');
}

.msg_wrap .msg_contextMenu {
    position: absolute;
    display: none;
    min-width: 92px;
    background: #fff;
    box-shadow: 0 3px 6px #00000029;
}

.msg_wrap .msg_contextMenu li {
    line-height: 28px;
    padding: 0 10px;
    font-family: 'Noto Sans KR';
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #5a5a5a;
}

.msg_wrap .msg_contextMenu li:hover {
    background-color: #fcfcfc;
}


/* 팔로우 팔로잉 */

.msg_wrap .msg_subHeader .tab_box {
    gap: 0;
    height: 47px;
    padding: 0 23px;
    margin: 0;
    background-color: #f5f6fa;
    scrollbar-gutter: unset;
}

.msg_wrap .msg_subHeader .tab_box li {
    flex: 1;
    font-family: 'Spoqa Han Sans Neo';
    font-size: 16px;
    letter-spacing: -0.4px;
    color: #929292;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.msg_wrap .msg_subHeader .tab_box li.active {
    font-weight: normal;
    color: #536dfe;
    border-bottom-color: #536dfe;
}

.msg_wrap .msg_subHeader .flex {
    gap: 24px;
    padding: 23px 12px 12px;
    margin: 0 11px;
    border-bottom: 1px solid #f1f1f3;
}

.msg_wrap .msg_subHeader .search_box {
    position: relative;
    display: flex;
    flex: 1;
    height: 37px;
    padding: 0 16px 0 19px;
    line-height: 35px;
    border: 1px solid #bcbccb;
    border-radius: 50px;
}

.msg_wrap .msg_subHeader .search_box input {
    flex: 1;
    padding-right: 30px;
    font-family: 'Spoqa Han Sans Neo';
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.38px;
    color: #333;
    background-color: #fff;
    border: none;
}

.msg_wrap .msg_subHeader .search_box input:focus,
.msg_wrap .msg_subHeader .search_box input:focus-visible {
    background: url('../images/gbp/ico_searchB.svg') center right no-repeat;
}

.msg_wrap .msg_subHeader .search_box input:placeholder-shown {
    background: url('../images/gbp/ico_search.svg') center right no-repeat;
}

.msg_wrap .msg_subHeader .search_box input::placeholder {
    font-weight: normal;
    color: #929292;
}

.msg_wrap .msg_subHeader .search_box .ipt_remove {
    position: absolute;
    right: 2px;
    display: none;
    width: 35px;
    height: 35px;
    background: transparent url('../images/gbp/search_remove.svg') center no-repeat;
}

.msg_wrap .msg_subHeader .search_box input:not(:placeholder-shown)+.ipt_remove {
    display: block;
}

.msg_wrap .msg_subHeader .search_box input:focus+.ipt_remove,
.msg_wrap .msg_subHeader .search_box input:focus-visible+.ipt_remove {
    display: none;
}

.msg_wrap .msg_subHeader .sort_wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 3px;
}

.msg_wrap .msg_subHeader .sort_wrap input {
    display: none;
}

.msg_wrap .msg_subHeader .sort_wrap label {
    margin: 0;
    font-family: 'Spoqa Han Sans Neo';
    font-size: 12px;
    letter-spacing: -0.3px;
    color: #929292;
}

.msg_wrap .msg_subHeader .sort_wrap input:checked+label {
    text-decoration: underline;
    color: #536dfe;
}

.msg_wrap .user_list {
    padding: 12px 14px 12px 23px;
}

.msg_wrap .user_list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.msg_wrap .user_list li+li {
    margin-top: 13px;
}

.msg_wrap .user_list .user_box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg_wrap .user_list .user_box .user_name {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 190px;
}

.msg_wrap .user_list .user_box .user_name .level {
    width: 40px;
    height: 40px;
    object-fit: none;
}

.msg_wrap .user_list .btn_wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.msg_wrap .user_list .btn_wrap .btnLine {
    padding: 0 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: #bcbccb;
    border: 1px solid #bcbccb;
    border-radius: 12px;
}

.msg_wrap .user_list .btn_wrap .btnLine.active {
    color: #536dfe;
    border-color: #536dfe;
}