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

.attachment-popup button {
    outline: none;
}

.attachment-popup .modal-layout {
    /*display: none;*/
    display: block;
    position: fixed;
    z-index: 1000016;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    overflow: auto;
    animation: fade-in 0.5s; }

.attachment-popup .modal {
    width: 700px;
    min-height: 500px;
    background: white;
    left: calc(50% - 350px);
    top: calc(50% - 350px);
    position: absolute;
    border-radius: 10px; }

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

.attachment-popup .tab {
    display: flex;
    margin: 17px 20px 21.5px;
    font-family: Arial;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 150%;
    color: #888888;
    cursor: pointer; }

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

.attachment-popup .tab[disabled='disabled'] {
    cursor: default;}

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

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

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

.attachment-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; }

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

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

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

.attachment-popup .modal-body {
    min-height: 549px; }

.attachment-popup .tab-content.image {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    padding: 25px 0;
}
.attachment-popup .tab-content#tab-sticker {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 330px;
}

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

}

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

.attachment-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; }

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

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

.attachment-popup .image-preview-layout {
    text-align: center;
    position: relative;
    animation: fade-in 1s;
    width: max-content;
    margin: 0px auto;
    max-width: calc(100% - 200px);
}

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

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

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

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

.attachment-popup .delete-image {
    cursor: pointer; }

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

.attachment-popup .tab-link-url {
    margin: 10px 0;
    width: 535px;
    font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    line-height: 20px;
    border: 0;
    color: #333333;
    text-overflow: ellipsis; }

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

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

.attachment-popup .tab-link-delete-url {
    margin-right: 14px;
    cursor: pointer; }

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

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

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

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

.attachment-popup .tab-embed-text {
    margin: 10px 0;
    width: 567px;
    min-height: 80px;
    border: 0;
    resize: none;
    font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #333333; }

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

.attachment-popup .tab-link-suggest-layout {
    margin: 31px 45px 0 46px;
    display: none;
    animation: fade-in 0.5s; }

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

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

.attachment-popup .tab-link-suggest-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 26px;
    border: 1px solid #E5E5E5;
    border-bottom: 0;
    cursor: pointer; }
.attachment-popup .tab-link-suggest-tab:first-child {
    border-right: none;
}
.attachment-popup .tab-link-suggest-tab:last-child {
    border-left: none;
}

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

.attachment-popup .tab-link-suggest-tab.active > svg {
    fill: #333; }

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

.attachment-popup .btn-delete-suggess {
    width: 55px;
    height: 27px;
    background: #F1F1F1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #E5E5E5;
    border-bottom: 0;
    box-sizing: border-box;
    cursor: pointer; }

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

.attachment-popup .btn-delete-suggess-text {
    font-family: Arial;
    font-size: 11px;
    color: #333333;
    margin-left: 6px; }

.attachment-popup .tab-link-suggest-body {
    border: 1px solid #E5E5E5;
    padding: 12px 15px;
    margin-bottom: 39px;}

.attachment-popup .tab-link-suggest-body iframe {
    border: none
}

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

.attachment-popup .tab-link-suggest-style #style-3 {
    width: 100%;
    border: none;
}

.attachment-popup .tab-link-suggest-title {
    font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 12px;
    line-height: 150%;
    color: #888888; }
.attachment-popup .tab-link-suggest-title > span {
    color: #333;
}
.attachment-popup .tab-link-suggest-url {
    font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 150%;
    color: #AAAAAA;
    margin-top: 5px; }

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

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

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

.attachment-popup .tab-link-suggest-right-style-3 {
    display: flex;
    flex-direction: column;
    margin-top: 5px; }

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

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

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

.attachment-popup .tab-embed-suggest-body {
    margin: 10px 0 31px;
    animation: fade-in 0.5s;
}

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

.attachment-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; }

.attachment-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; }

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

.attachment-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; }

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

.attachment-popup .loading {
    background-image: url(images/loading.gif);
    background-position: center;
    background-size: cover;
    width: 20px;
    height: 20px; }

.attachment-popup .loading .hidden {
    display: none; }

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

.attachment-popup .modal-layout-image {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000016;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    animation: fade-in 0.5s; }

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

.attachment-popup .modal-image-header {
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.05);
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px; }

.attachment-popup .modal-image-header-content {
    font-family: Arial;
    font-style: normal;
    font-weight: bold;
    font-size: 15px;
    line-height: 20px;
    color: #353535; }
.attachment-popup .modal-image-header .close {
    cursor: pointer;
    border: 0;
    background: 0;
    padding: 0; }
.attachment-popup .modal-image-header .close:after {
    content: '';
    background: url(../images/icons/icon-close.svg);
    width: 20px;
    height: 20px;
    display: inline-block; }
.attachment-popup .modal-image-body {
    height: 101px;
    display: flex;
    flex-direction: column;
    justify-content: center; }

.attachment-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; }

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

.attachment-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; }

.attachment-popup .btn-image-cancel {
    padding: 5px 14px;
    margin: 15px 0;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer; }

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

.attachment-popup .btn-image-accept {
    margin: 15px 15px 15px 10px;
    padding: 5px 14px;
    background: #1F9FFC;
    border-radius: 6px;
    border: 0;
    cursor: pointer; }
.attachment-popup .btn-image-accept[disabled=true] {
    cursor: not-allowed;
    background: #fff;
    border: 1px solid #ddd;
}

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

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

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

.attachment-popup .modal-image.select-image {
    height: 726px;
    top: calc(50% - 363px);
    animation: fade-in 0.2s; }

.attachment-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; }

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

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

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

.attachment-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;
}
.attachment-popup .modal-image-body.select-image::-webkit-scrollbar {
    display: none;
}

.attachment-popup .select-img {
    height: 36px;
    border-radius: 0 0 6px 6px;
    background: #EEEEEE;
    display: flex;
    align-items: center;
}
.attachment-popup .select-img.success {
    background: #1F9FFC;
}
.attachment-popup .select-img-title {
    position: relative;
    left: -4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.attachment-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;
}
.attachment-popup .radio:checked + .select-img-title::before {
    content: "\f00c";
    font-family: 'FontAwesome';
    background: #0069B6;
    color: #fff;
    border: 0;
}
.attachment-popup .select-img-title:after {
    content: "Chọn ảnh";
    font-family: Arial;
    font-weight: bold;
    font-size: 13px;
    line-height: 16px;
    color: #353535;
}
.attachment-popup .radio:checked + .select-img-title:after {
    content: "Đang chọn";
    color: #fff;
}

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

.attachment-popup img.modal-image-img {
    cursor: pointer;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid #f1f1f1;
}
.attachment-popup .gifs-container {
    /*border: 1px solid #ccc;
    padding: 10px;
    background: #efefef;*/
    padding: 30px 46px;
}
.attachment-popup .gifs-container * {
    box-sizing: border-box;
    outline: none;
}
.attachment-popup .gifs-container .editor-gifs-search input {
    width: calc(100% - 35px);
    height: 30px;
    padding: 10px;
    font-size: 12px;
    border: 0;
}
.attachment-popup .gifs-container .editor-gifs-search i.fa-search {
    font-size: 14px;
    color: #80b4d2;
    text-align: center;
    display: inline-block;
    width: 30px;
}
.attachment-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;
}
.attachment-popup .gifs-container .editor-gifs-search .gifts-upload,
.attachment-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;
}

.attachment-popup .stickers-container {
    /*border: 1px solid #ccc;
    padding: 10px;
    background: #efefef;*/
    padding: 30px 46px;
}
.attachment-popup .stickers-container * {
    box-sizing: border-box;
    outline: none;
}
.attachment-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;
}

.attachment-popup .tab-link-suggest-style iframe {
    width: 100%;
    height: 100%;
}
.attachment-popup .tab-link-suggest-style iframe[name*="tiktok-embed-"] {
    height: 750px;
    max-height: 750px;
}
.attachment-popup .tab-link-suggest-style .fb_iframe_widget > span,
.attachment-popup .tab-link-suggest-style .fb_iframe_widget iframe {
    width: 425px !important;
}


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

/**
 Layout mobile
 */
.attachment-popup[data-mobile="true"] .modal-layout,
.attachment-popup[data-mobile="true"] .modal-image {
    width: 100%;
}
.attachment-popup[data-mobile="true"] .modal-image {
    width: 100%;
    left: unset;
}
.attachment-popup[data-mobile="true"] #tab-image-header span,
.attachment-popup[data-mobile="true"] #tab-link-header span,
.attachment-popup[data-mobile="true"] #tab-embed-header span {
    display: none;
}
.attachment-popup[data-mobile="true"] .tab-icon {
    margin-right: 0;
}
.attachment-popup[data-mobile="true"] .tab {
    position: relative;
}
.attachment-popup[data-mobile="true"] .tab.active:after {
    content: ' ';
    width: 20px;
    height: 10px;
    position: absolute;
    bottom: -21px;
    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;
}
.attachment-popup[data-mobile="true"] .pointer {
    display: none;
}
.attachment-popup[data-mobile="true"] .modal {
    width: 100%;
    max-width: 400px;
    left: unset;
}
.attachment-popup[data-mobile="true"] .tab-link-layout,
.attachment-popup[data-mobile="true"] .tab-embed-layout{
    width: 100%;
    margin: 0;
}
.attachment-popup[data-mobile="true"] .tab-link-url {
    width: 100%;
}
.attachment-popup[data-mobile="true"] .tab-content {
    padding: 10px;
}
.attachment-popup[data-mobile="true"] .image-preview-layout {
    padding: 0;
}
.attachment-popup[data-mobile="true"] .delete-image-layout {
    right: 10px;
}
.attachment-popup[data-mobile="true"] .tab-link-suggest-layout {
    margin: 10px 0 0;
}
.attachment-popup[data-mobile="true"] .tab-link-suggest-body {
    border-style: dashed;
}
.attachment-popup[data-mobile="true"] .tab-link-suggest-tab[data-tab="style-1"],
.attachment-popup[data-mobile="true"] .tab-link-suggest-tab[data-tab="style-2"],
.attachment-popup[data-mobile="true"] .tab-link-suggest-tab[data-tab="style-3"] {
    display: none;
}
.attachment-popup[data-mobile="true"] .btn-delete-suggess {
    width: auto;
    height: auto;
    padding: 8px 10px;
}
.attachment-popup[data-mobile="true"] .tab-embed-suggest-layout {
    margin: 0;
}
.attachment-popup[data-mobile="true"] .tab-embed-suggest-header {
    display: none;
}
.attachment-popup[data-mobile="true"] .tab-embed-suggest-body {
    margin-top: 10px;
}
.attachment-popup[data-mobile="true"] .tab-link-embed-preview,
.attachment-popup[data-mobile="true"] .tab-link-suggest-right-style-3 {
    max-width: 100%;
}
.attachment-popup[data-mobile="true"] .tab-link-suggest-tab.active {
    display: none;
}

[data-mobile="true"] .quill-linkhay-editor .attachments-container {
    background: #f1f1f1;
}

[data-mobile="true"] .quill-linkhay-editor .attachments-container .link-list {
    background: #f1f1f1;
}

[data-mobile="true"] .quill-linkhay-editor .attachments-container .attachment-link-content.tab-3 iframe {
    width: 100% !important;
}
[data-mobile="true"].quill-linkhay-editor .attachments-container .attachment-link-content.tab-3 .fb_iframe_widget > span,
[data-mobile="true"].quill-linkhay-editor .attachments-container .attachment-link-content.tab-3 .fb_iframe_widget iframe {
    height: auto !important;
}

[data-mobile="true"] .quill-linkhay-editor .attachments-container .link-list .footer {
    margin-top: 0;
    border-top: 0;
    background: #f1f1f1;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.quill-linkhay-editor .attachments-container .link-list .footer {
    display: none;
}

[data-mobile="true"] .quill-linkhay-editor .attachments-container .link-list .footer .tab{
    position: static;
    width: 8px;
    height: 8px;
    background: #e5e5e5;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 0 5px;
}

[data-mobile="true"] .quill-linkhay-editor .attachments-container .link-list .footer .tab.active{
    background: #ffffff;
}
