/*attachment outside*/
.no-select {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.give-token-embed {
    font-size: 12px;
    font-family: Arial;
    font-style: normal;
    font-weight: bold;
    color: #333333;
    padding: 10px 0;
}

.give-token-embed>div {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    box-sizing: border-box;
    border-radius: 6px;
    width: auto;
    height: 26px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
}

.give-token-embed .remove-token-embed {
    cursor: pointer;
}

.give-token-embed svg{
    /*margin-left: 6px;
    cursor: pointer;*/
}

.give-token-embed > div > span {
    margin: 0 6px;
}

.give-token-embed .sky-text,
.give-token-embed .token-username {
    color: #1095EA;
}
.give-token-embed .token-attachment-edit {
    font-size: 12px;
    line-height: 14px;
    color: #888;
    font-weight: bold;
}
.give-token-embed .token-attachment-edit .token-amount {
    color: #111;
}
.give-token-embed .token-attachment-edit .token-username {
    color: #1095EA;
}

/*end attachment outside*/

.token-give-popup .hidden {
    display: none !important; 
}

.token-give-popup button {
    outline: none;
}

.token-give-popup * {
    box-sizing: border-box;
    outline: none;
}

.token-give-popup .modal-layout {
    /*display: none;*/
    display: block;
    position: fixed;
    z-index: 1000000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    overflow: auto; }

.token-give-popup .modal {
    width: 500px;
    min-height: 632px;
    background: white;
    left: calc(50% - 250px);
    top: calc(50% - 336px);
    position: absolute;
    border-radius: 10px;
    display: unset !important;
    height: auto !important;
}

.token-give-popup .modal-header {
    height: 60px;
    display: flex;
    justify-content: center;
    background: #f1f1f1;
    border-radius: 10px 10px 0 0; }

.token-give-popup .tab {
    display: flex;
    margin: 18px;
    font-family: Arial;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #111;
    cursor: pointer;
    align-items: center;
}

.token-give-popup p {
    margin: 0;
    padding: 0;
}

.token-give-popup .tab>span {
    margin-left: 8px;
}

.token-give-popup .sample-grey-text {
    color: #888;
    font-family: Arial;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
}

.token-give-popup .sample-sm-grey-text {
    color: #aaa;
    font-family: Arial;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
}

.token-give-popup .sample-black-text {
    color: #333;
    font-family: Arial;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
}

.token-give-popup section {
    padding-top: 20px;
}

.token-give-popup .border-dashed-bottom {
    border-bottom: 1px dashed #E5E5E5;
    width: 300px;
    height: 1px;
    margin: 0 auto;
}

.token-give-popup .form-item {
    margin: 0 auto;
    width: 300px;
    font-family: Arial;
}

.token-give-popup .form-item input {
    height: 48px;
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-align: center;
    color: #333;
    font-size: 18px !important;
    line-height: 150%;
}
.token-give-popup .form-item input::-webkit-input-placeholder { /* Edge */
    font-size: 14px;
    color: #aaa;
}
.token-give-popup .form-item input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-size: 14px;
    color: #aaa;
}
.token-give-popup .form-item input::placeholder {
    font-size: 14px;
    color: #aaa;
}

.token-give-popup .form-item input.size-sm{
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

.token-give-popup .mb-5px {
    margin-bottom: 5px;
}

.token-give-popup .mb-10px {
    margin-bottom: 10px;
}

.token-give-popup .mb-15px {
    margin-bottom: 15px;
}

.token-give-popup .mb-20px {
    margin-bottom: 20px;
}

.token-give-popup .hidden {
    display: none;
}

.token-give-popup #form-pick-user {
    height: 48px;
    position: relative;
    /*overflow: hidden;*/
    
}

.token-give-popup #input-username {
    
}

.token-give-popup #list-username {
    width: 300px;
    max-height: 277px;
    overflow-y: auto;
    position: absolute;
    top: 58px;
    left: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    background-color: #fff;
    z-index: 10;
}

.token-give-popup #list-username ul{
    text-align: left;
    margin: 0;
}

.token-give-popup #list-username ul li{
    list-style: none;
    height: 55px;
    padding: 10px;
    border-bottom: 1px solid #F1F1F1;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.token-give-popup #list-username ul li:hover {
    background: #f1f1f1;
}

.token-give-popup #list-username ul li:last-child{
    border-bottom-width: 0px;
}

.token-give-popup #list-username ul li img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 2px;
}

.token-give-popup #list-username ul li span{
    margin-left: 8px;
    color: #333333;
    font-size: 14px;
    line-height: 150%;
}

.token-give-popup #chosen-username {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 18px;
    line-height: 150%;
}

.token-give-popup #chosen-username img{
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-right: 5px;
}

.token-give-popup #chosen-username svg{
    position: absolute;
    right: 18px;
    top: 18px;
    cursor: pointer;
}





.token-give-popup .tab.active {
    color: #333333; }

.token-give-popup .tab.active > svg {
    fill: #333333; }

.token-give-popup .tab-icon {
    fill: #888888;
    margin-right: 8px; }

.token-give-popup .tab-content.hidden {
    display: none !important; }

.token-give-popup .pointer {
    width: 20px;
    height: 10px;
    position: absolute;
    top: 50px;
    left: 205px;
    box-sizing: border-box;
    vertical-align: middle;
    border-bottom: solid 10px #ffffff;
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
    display: inline-block; }

.token-give-popup .pointer.image {
    left: 205px; }

.token-give-popup .pointer.link {
    left: 340px; }

.token-give-popup .pointer.embed {
    left: 475px; }

.token-give-popup .modal-body {
    min-height: 380px;
    padding: 5px 0;
    text-align: center;
    font-family: Arial;
}

.token-give-popup .tab-content.image {
    display: flex;
    flex-direction: column;
    min-height: 380px; 
    padding-top: 25px;
    padding-bottom: 25px;
}
.token-give-popup .tab-content#tab-sticker {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 380px;
}

.token-give-popup .tab-image-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 380px; 

}

.token-give-popup .tab-image-select {
    background: #f1f1f1;
    width: 400px;
    height: 100px;
    margin-top: 50px;
    border: 1px dashed #AAAAAA;
    display: flex;
    justify-content: center; }

.token-give-popup .btn-upload {
    display: flex;
    width: 228px;
    height: 46px;
    justify-content: center;
    margin: 0 15px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #E5E5E5;
    box-sizing: border-box;
    box-shadow: 0 2px 0 #e5e5e5;
    border-radius: 6px;
    cursor: pointer; }

.token-give-popup .btn-upload.get-link {
    margin-top: 15px; }

.token-give-popup .text-upload {
    margin-left: 10px;
    font-family: Arial;
    letter-spacing: 0.2px;
    color: #616161;
    font-size: 15px; }

.token-give-popup .image-preview-layout {
    padding: 0px 100px 0px 100px;
    /*overflow-y: hidden;*/
    padding-top: 0;
    position: relative;
}

.token-give-popup .preview {
    height: 145px;
    margin: 22px 0; }

.token-give-popup .image-preview-layout.hidden {
    display: none; }

.token-give-popup .image-preview {
    object-fit: contain;
    width: 100%;
    /*min-height: 410px;*/
    min-width: 100px;
    object-position: top; 
}

.token-give-popup .delete-image-layout {
    position: absolute;
    top: 10px;
    right: 110px;
}

.token-give-popup .delete-image {
    cursor: pointer; }

.token-give-popup .tab-link-layout {
    margin: 30px 0 0 46px;
    border: 1px solid #e5e5e5;
    width: 607px;
    display: flex;
    align-items: center; }

.token-give-popup .tab-link-url {
    margin: 10px 0;
    width: 535px;
    font-family: "SF Pro Display";
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    line-height: 20px;
    border: 0;
    color: #333333; }

.token-give-popup .tab-link-url:focus {
    outline: 0; }

.token-give-popup .tab-link-url + .loading {
    margin: 10px 9px 10px 17px; }

.token-give-popup .tab-link-delete-url {
    margin-right: 9px;
    cursor: pointer; }

.token-give-popup .tab-link-delete-url .hidden {
    display: none; }

.token-give-popup .tab-link-reset-url {
    cursor: pointer;
    margin: 0 8px;
    fill: #333333; }

.token-give-popup .tab-link-reset-url .hidden {
    display: none; }

.token-give-popup .tab-embed-layout {
    margin: 30px 0 27px 46px;
    width: 609px;
    border: 1px solid #e5e5e5;
    display: flex; }

.token-give-popup .tab-embed-text {
    margin: 10px 0;
    width: 567px;
    min-height: 80px;
    border: 0;
    resize: none;
    overflow: hidden;
    font-family: "SF Pro Display";
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #333333; }

.token-give-popup .tab-embed-text:focus {
    outline: 0; }

.token-give-popup .tab-link-suggest-layout {
    margin: 31px 45px 0 46px;
    display: none; }

.token-give-popup .tab-link-suggest-layout.active {
    display: block; }

.token-give-popup .tab-link-suggest-header {
    display: flex;
    justify-content: space-between; }

.token-give-popup .tab-link-suggest-tab {
    border: 1px solid #E5E5E5;
    border-bottom: 0;
    cursor: pointer; }

.token-give-popup .tab-link-suggest-tab.active {
    background: #F1F1F1; }

.token-give-popup .tab-link-suggest-tab.active > svg {
    fill: #555555; }

.token-give-popup .tab-link-suggest-tab.hidden {
    display: none; }

.token-give-popup .btn-delete-suggess {
    padding: 5px 9px;
    width: 55px;
    height: 33px;
    background: #F1F1F1;
    border: 1px solid #E5E5E5;
    border-bottom: 0;
    box-sizing: border-box;
    cursor: pointer; }

.token-give-popup .btn-delete-suggess-icon {
    margin-right: 1px; }

.token-give-popup .btn-delete-suggess-text {
    font-family: Arial;
    font-size: 11px;
    color: #333333; }

.token-give-popup .tab-link-suggest-body {
    border: 1px solid #E5E5E5;
    padding: 12px 15px; }

.token-give-popup .tab-link-suggest-style.hidden {
    display: none !important; }

.token-give-popup .tab-link-suggest-title {
    font-family: "Lucida Grande";
    font-style: normal;
    font-weight: bold;
    font-size: 12px;
    line-height: 150%;
    color: #888888; }

.token-give-popup .tab-link-suggest-url {
    font-family: "Lucida Grande";
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 150%;
    color: #AAAAAA; }

.token-give-popup .tab-link-suggest-body > #style-1 {
    display: flex;
    flex-direction: column; }

.token-give-popup .tab-link-suggest-image {
    width: 125px;
    height: 70px;
    object-fit: cover; }

.token-give-popup .tab-link-suggest-right-style-2 {
    display: flex;
    flex-direction: column;
    margin-left: 10px; }

.token-give-popup .tab-link-suggest-right-style-3 {
    display: flex;
    flex-direction: column; }

.token-give-popup .tab-embed-suggest-layout {
    margin: 0 46px; }

.token-give-popup .tab-embed-suggest-layout.hidden {
    display: none; }

.token-give-popup .tab-embed-suggest-header {
    display: flex; }

.token-give-popup .modal-footer {
    height: 60px;
    display: flex;
    justify-content: center;
    background: #f1f1f1;
    position: sticky;
    border-radius: 0 0 10px 10px; }

.token-give-popup .btn-cancel {
    background: #fff;
    border: 0;
    margin: 12px;
    padding: 6px 15px;
    font-family: Arial;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 150%;
    border-radius: 6px;
    cursor: pointer; }

.token-give-popup .btn-insert {
    background: #1B91C8;
    border: 0;
    border-radius: 6px;
    margin: 12px 0px;
    padding: 6px 15px;
    color: #fff;
    font-family: Arial;
    font-weight: bold;
    font-size: 14px;
    line-height: 150%;
    cursor: pointer; }

.token-give-popup .btn-insert:disabled {
    background: #ffffff;
    color: #aaaaaa;
    cursor: auto; }

.token-give-popup .btn-quick-comment {
    background: #1B91C8;
    border: 0;
    border-radius: 6px;
    margin: 12px 0px;
    padding: 6px 15px;
    color: #fff;
    font-family: Arial;
    font-weight: bold;
    font-size: 14px;
    line-height: 150%;
    cursor: pointer; }

.token-give-popup .btn-quick-comment:disabled {
    background: #ffffff;
    color: #aaaaaa;
    cursor: auto; }

.token-give-popup .loading {
    background-image: url(image/Spinner-1s-200px.gif);
    background-position: center;
    background-size: cover;
    width: 20px;
    height: 20px; }

.token-give-popup .loading .hidden {
    display: none; }

.token-give-popup .reset {
    margin: 4px 5px;
    cursor: pointer; }

.token-give-popup .modal-layout-image {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000001;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9); }

.token-give-popup .modal-image {
    width: 700px;
    height: 218px;
    background: white;
    left: calc(50% - 350px);
    top: calc(50% - 130px);
    position: absolute;
    border-radius: 10px; }

.token-give-popup .modal-image-header {
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.05);
    height: 57px;
    display: flex;
    align-items: center; }

.token-give-popup .modal-image-header-content {
    font-family: Arial;
    font-style: normal;
    font-weight: bold;
    font-size: 15px;
    line-height: 20px;
    color: #353535;
    margin-left: 20px; }

.token-give-popup .modal-image-body {
    height: 101px;
    display: flex;
    flex-direction: column;
    justify-content: center; }

.token-give-popup .modal-image-link {
    margin: 20px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    box-sizing: border-box;
    border-radius: 100px;
    padding: 11px 16px 9px 19px;
    font-family: Arial;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #333333; }

.token-give-popup .modal-image-link:focus {
    outline: 0; }

.token-give-popup .modal-image-footer {
    height: 60px;
    display: flex;
    justify-content: flex-end;
    background: #F9F9F9;
    box-shadow: 0px -1px 0px #E5E5E5;
    border-radius: 0px 0px 10px 10px; }

.token-give-popup .btn-image-cancel {
    width: 83px;
    margin: 15px 0;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer; }

.token-give-popup .btn-image-cancel-label {
    font-family: Arial;
    font-style: normal;
    font-weight: bold;
    font-size: 13px;
    line-height: 20px;
    color: #555555; }

.token-give-popup .btn-image-accept {
    width: 126px;
    margin: 15px 15px 15px 10px;
    background: #1F9FFC;
    border-radius: 6px;
    border: 0;
    cursor: pointer; }

.token-give-popup .btn-image-accept-label {
    font-family: Arial;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 23px;
    color: #FFFFFF; }

.token-give-popup .btn-image-insert {
    width: 126px;
    margin: 15px 15px 15px 10px;
    background: #1F9FFC;
    border-radius: 6px;
    border: 0;
    cursor: pointer; }

.token-give-popup .btn-image-insert-label {
    font-family: Arial;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 23px;
    color: #FFFFFF; }

.token-give-popup .modal-image.select-image {
    height: 726px;
    top: calc(50% - 363px); }

.token-give-popup .modal-image-body.select-image {
    height: 610px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: end;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; }

.token-give-popup .modal-image-body.select-image::-webkit-scrollbar {
    display: none; }

.token-give-popup .show-image-layout {
    margin: 10px;
    display: flex;
    flex-direction: column;
}

.token-give-popup img.modal-image-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #f1f1f1; }


.token-give-popup .modal-image.select-image {
    height: 726px;
    top: calc(50% - 363px);
}
.token-give-popup .modal-image-body.select-image {
    height: 610px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: end;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.token-give-popup .modal-image-body.select-image::-webkit-scrollbar {
    display: none;
}

.token-give-popup .select-img {
    height: 36px;
    border-radius: 0 0 6px 6px;
    background: #EEEEEE;
    display: flex;
    align-items: center;
}
.token-give-popup .select-img.success {
    background: #1F9FFC;
}
.token-give-popup .select-img-title {
    position: relative;
    left: -4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.token-give-popup .select-img-title:before {
    content: "";
    border: 1px solid #ddd;
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
    margin-right: 6px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
}
.token-give-popup .radio:checked + .select-img-title::before {
    content: "\f00c";
    font-family: 'FontAwesome';
    background: #0069B6;
    color: #fff;
    border: 0;
}
.token-give-popup .select-img-title:after {
    content: "Chọn ảnh";
    font-family: Arial;
    font-weight: bold;
    font-size: 13px;
    line-height: 16px;
    color: #353535;
}
.token-give-popup .radio:checked + .select-img-title:after {
    content: "Đang chọn";
    color: #fff;
}

.token-give-popup .radio {
    position: relative;
    left: 12px;
    z-index: 1;
    opacity: 0;
}

.token-give-popup img.modal-image-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #f1f1f1;
}
.token-give-popup .gifs-container {
    /*border: 1px solid #ccc;
    padding: 10px;
    background: #efefef;*/
    padding: 30px 46px;
}
.token-give-popup .gifs-container * {
    box-sizing: border-box;
    outline: none;
}
.token-give-popup .gifs-container .editor-gifs-search input {
    width: calc(100% - 35px);
    height: 30px;
    padding: 10px;
    font-size: 12px;
    border: 0;
}
.token-give-popup .gifs-container .editor-gifs-search i.fa-search {
    font-size: 14px;
    color: #80b4d2;
    text-align: center;
    display: inline-block;
    width: 30px;
}
.token-give-popup .gifs-container .editor-gifs-search .gifts-search-input {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    width: calc(100% - 165px);
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}
.token-give-popup .gifs-container .editor-gifs-search .gifts-upload,
.token-give-popup .gifs-container .editor-stickers-search .stickers-upload {
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    width: 150px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: linear-gradient(to top, #dadada, #f5f5f5);
    box-shadow: inset 0 1px #fff, 0 1px #f3f3f3;
    padding: 7px 10px 8px;
    font-weight: bold;
    font-size: 12px;
    font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
    margin-left: 10px;
}
.quill-linkhay-editor .gifs-container .editor-gifs-search input {
    width: calc(100% - 35px);
    height: 30px;
    padding: 10px;
    font-size: 12px;
    border: 0;
}

.token-give-popup .stickers-container {
    /*border: 1px solid #ccc;
    padding: 10px;
    background: #efefef;*/
    padding: 30px 46px;
}
.token-give-popup .stickers-container * {
    box-sizing: border-box;
    outline: none;
}
.token-give-popup .stickers-container .editor-stickers-search .stickers-upload {
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    width: 150px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: linear-gradient(to top, #dadada, #f5f5f5);
    box-shadow: inset 0 1px #fff, 0 1px #f3f3f3;
    padding: 7px 10px 8px;
    font-weight: bold;
    font-size: 12px;
    font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
    margin-left: 10px;
}

/*.token-give-popup .modal-header .layer-2 {
    display: none;
}*/


@media (max-width: 767px) {
    .token-give-popup .modal {
        max-width: 100%;
        width: 95%;
        left: 2.5%;
    }

    #token-give-popup-container[data-mobile="true"] .modal-layout .modal {
        top: 10px;
    }

    .V2-comment-frm .editor .tabs .editor-tab-item.give-token-tab {
        padding: 0 !important;
    }
}

/** for old editor **/
.V2-comment-frm .footer .give-token-embed {
    float: left;
    padding: 0;
}
.V2-comment-frm[data-mobile="true"] .footer {
    margin-top: 10px;
    border-top: none !important;
    padding: 0;
}
.V2-comment-frm[data-mobile="true"] .footer .give-token-embed {
    float: right;
    padding: 0;
}
.token-give-popup[data-mobile="true"] .sample-grey-text {
    padding-left: 10px;
    padding-right: 10px;
}
