#emailUser {
    position: relative;
}

#emailUser input[type="text"]#findUsers.load {
    background: url(ajax_load.gif) 98% center no-repeat;
    transition: none;
}

#emailUser .userList {
    position: absolute;
    left: 0;
    top: 65px;
    width: 100%;
    background: #eaeaea;
    box-shadow: 7px 0px 4px -4px #888, 0px 7px 7px -4px #888, -7px 0px 4px -4px #888;
    border-radius: 0px 0px 5px 5px;
    z-index: 1;
    transition: none;
    padding: 0;
    margin: 0;
}

#emailUser .userList li, #emailUser .userList span {
    display: block;
    padding: 4px 5%;
    border-bottom: 1px solid #999;
    font-size: 14px;
    color: #444;
}

#emailUser .userList li:last-child {
    border-bottom: none;
}

#emailUser .userList li:hover {
    background: #dadada;
    cursor: pointer;
}

#emailUser .userList li:active {
    background: #cacaca;
}

.reg.post_with_ajax .shortcodes {
    padding: 10px 0px;
}

.reg.post_with_ajax .shortcodes i {
    font-style: normal;
    margin-right: 10px;
    font-weight: 700;
}

.reg.post_with_ajax .shortcodes i:last-child {
    margin-right: 0;
}

.reg.post_with_ajax .hint {
    color: #f00;
    margin: 2px 0;
    font-size: 15px;
}

.side_notifier {
    position: fixed;
    display: none;
    font-size: 15px;
    padding: 10px 20px;
    width: auto;
    max-width: 400px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    top: 20%;
    right: 0;
    z-index: 10000;
    background: #FE1A00;
    background: rgba(254, 26, 0, 0.9);
    border: 1px solid rgba(254, 26, 0, 0.9);
    color: #fff;
    border-left-width: 40px;
    border-radius: 7px;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.side_notifier.sw {
    right: 20px;
}

.side_notifier::before {
    font-family: "FontAwesome";
    display: inline-block;
    position: absolute;
    top: 0;
    left: -28px;
    font-size: 20px;
    color: #FFF !important;
}

.side_notifier.alert {
    border-color: #EABE03;
    background: #5CB811;
    background: rgba(183, 150, 11, 0.83);
}

.side_notifier.alert::before {
    content: "\f071";
}

.side_notifier.success {
    border-color: #03bb5f;
    background: #5CB811;
    background: rgba(0, 204, 102, 0.88);
}

.side_notifier::before {
    content: "";
    width: 20px;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 24 24\' width=\'14\' height=\'14\'><circle cx=\'12\' cy=\'12\' r=\'10\' fill=\'%23fff\' stroke=\'%23000\' stroke-width=\'2\'/><text x=\'12\' y=\'16\' font-size=\'12\' text-anchor=\'middle\' fill=\'%23000\' font-family=\'Arial, sans-serif\'>i</text></svg>');
}

.notifier {
    margin: auto;
    display: none;
}

.notifier.warning {
    color: gold;
}

.notifier.success {
    background-color: #88ffd1;
    color: #0b2f01;
}

.upload_file img {
    max-width: 100%;
}

.infotip { 
    position: relative; 
}

.infotip:before { 
    content: attr(data-text); 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    left: 100%; 
    margin-left: 11px; 
    width: 180px; 
    max-width: 300px; 
    display: inline-block; 
    padding: 10px; 
    border-radius: 10px; 
    background: #000; 
    color: #fff; 
    text-align: center; 
    opacity: 0; 
    transition: .30s opacity; 
    display: none; 
    z-index: 1000; 
    font-size: 12px !important; 
    font-weight: 200 !important;
    white-space: normal; /* Ensure long text wraps */
}

.infotip.ext:before { 
    width: 250px; 
}

.infotip:after { 
    content: ""; 
    position: absolute; 
    opacity: 0; 
    transition: .3s opacity; 
    left: 100%; 
    margin-left: -5px; 
    top: 50%; 
    transform: translateY(-50%); 
    border: 10px solid #000; 
    border-color: transparent black transparent transparent; 
    display: none; 
    z-index: 1000; 
}

.infotip.top:before { 
    top: -50%; 
    left: 50%; 
    transform: translate(-50%, -100%); 
    margin-left: 0; 
}

.infotip.top:after { 
    left: 50%; 
    top: -50%; 
    transform: translate(-50%, -10%) rotate(-90deg); 
    margin-left: 0; 
}

.infotip:hover:before, 
.infotip:hover:after { 
    display: block; 
    opacity: 1; 
}

.infotip .quest { 
    display: inline-block; 
    background: #e8f2f9; 
    padding: 1px 5px; 
    border-radius: 50%; 
    font-size: 9px; 
    font-weight: 700; 
    color: #000; 
}

.custom-select-box {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-box .select-box-display {
    background-color: inherit;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    justify-content: space-between;
    align-items: center;
}

.custom-select-box .checkbox-list-container {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    z-index: 10;
    left: 0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: 
        0 8px 6px -6px rgba(0, 0, 0, 0.4),
        8px 0 6px -6px rgba(0, 0, 0, 0.4),
        -8px 0 6px -6px rgba(0, 0, 0, 0.4);
}

.dark .custom-select-box .checkbox-list-container {
    border-color: #333333;
    background: #141414;
    color: #F0F0F0;
}

.custom-select-box .checkbox-list-container label {
    display: block;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.dark .custom-select-box .checkbox-list-container label {
    border-color: #333333;
}

.custom-select-box .checkbox-list-container label:last-child {
    border-bottom: none !important;
}

.custom-select-box .selection-count {
    font-size: 0.7em;
    color: #888;
    margin-left: 8px;
    position: absolute;
    right: 2px;
    top: -4px;
}

.multi-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.multi-upload-preview .multi-thumbnail {
    position: relative;
    width: 93px;
    height: 93px;
    overflow: hidden;
    border: 1px solid #aaa;
    border-radius: 10px;
    display: flex;
    padding: 5px;
}

.multi-upload-preview .multi-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.multi-upload-preview .multi-thumbnail .remove-btn {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-upload-preview .multi-thumbnail:hover .remove-btn {
    bottom: 0;
}

[data-unread]::after {
    content: attr(data-unread);
    background-color: #007bff;
    color: #fff;
    padding: 2px 5px;
    border-radius: 50%;
    font-size: 10px;
    height: 17px;
    width: 18px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
    font-weight: 600;
    margin-left: 5px;
}

.upload-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}
.upload-modal .modal-upload-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f1;
}
.upload-modal .modal-upload-header .modal-title {
    font-size: 20px;
}
.upload-modal .modal-upload-dialog {
    padding-bottom: 30px;
}
.upload-modal .modal-clicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.upload-modal .btn-upld {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    white-space: initial;
    height: auto;
    min-height: 28px;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: #ffffff;
    font-weight: 500;
    border: 1px solid #b2bec3;
    padding: 4px 8px;
    font-size: 0.875rem;
    border-radius: 7px;
    line-height: 1;
    color: #212529;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    text-transform: none;
}
.upload-modal .btn-upld:hover {
    color: #0063f7;
    border-color: #0063f7;
    cursor: pointer;
}
.upload-modal .modal-upload-body {
    display: flex;
    flex-direction: column;
}
.upload-modal .file-lists {
    padding: 20px 30px;
    overflow-y: auto;
    max-height: calc(100vh - 90px);
}
.upload-modal .file-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.upload-modal .file-thumbnails .thumbnail {
    width: 20%;
    height: 100px;
    cursor: pointer;
    border: 1px solid #b2bec3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding: 3px;
}
.upload-modal .file-thumbnails .thumbnail.active, .upload-modal .file-thumbnails .thumbnail.selected {
    border: 2px solid #ddd;
    box-shadow: 0 0 4px #000;
    padding: 2px;
    height: 94px;
}
.upload-modal .file-thumbnails .thumbnail.selected {
    border-color: #0e82b3;
}
.upload-modal .file-thumbnails .thumbnail.active::after {
    content: "\2713";
    position: absolute;
    top: -1px;
    right: -1px;
    font-size: 18px;
    color: green;
    padding: 1px 6px;
    background: #fffc;
    border: 1px solid #aaa;
    border-bottom-left-radius: 10px;
}
.upload-modal .file-thumbnails .thumbnail img {
    width: auto;
    max-width: 100%;
    height: 100%;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}
.upload-modal .file-thumbnails .thumbnail .file-click {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    width: 100%;
    padding: 0 10px 5px 10px;
}
.upload-modal .file-thumbnails .thumbnail:hover .file-click {
    bottom: 0;
    cursor: default;
}
.upload-modal .file-thumbnails .thumbnail:hover .file-click span {
    background: #f1f1f19c;
    border-radius: 5px;
    height: 22px;
    width: 26px;
    align-items: center;
    justify-content: center;
    display: flex;
    color: #333;
    border: 1px solid #aaa;
    cursor: pointer;
}
.upload-modal .file-thumbnails .thumbnail:hover .file-click span:hover {
    background: #f1f1f1;
}
.upload-modal .details-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    min-width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}
.upload-modal .details-content {
    padding: 20px 20px 0 20px;
    flex: 1;
    overflow-y: auto;
}
.upload-modal .details-content li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.upload-modal .details-content li:last-child {
    border-bottom: none;
}
.upload-modal .details-content li span:nth-child(2) {
    font-weight: 600;
}
.upload-modal .upload-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(157, 157, 157, 0.5);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.9s ease;
}
.upload-modal .dropzone {
    width: 80%;
    height: calc(100% - 150px);
    margin: 20px auto;
    padding: 20px;
    border: 2px dashed #999292;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fffffff2;
    flex-wrap: wrap;
    overflow-y: auto;
}
.upload-modal .dropzone .dz-preview {
    border-top-left-radius: 25% !important;
    border-top-right-radius: 25% !important;
}
.upload-modal .dropzone .dz-preview .dz-image {
    width: 100px !important;
    height: 100px !important;
    border-radius: 25%;
}
.upload-modal .upload-btn {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.upload-modal .upload-btn.sending {
    pointer-events: none;
    cursor: not-allowed;
}
.upload-modal #upload-progress {
    width: 100%;
    height: 10px;
    margin: 10px 0;
}
.upload-modal .upload-layer .btn-upld {
    font-size: 25px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    outline: none;
    padding: 0;
    line-height: normal;
    background: #fff2f2;
}
.upload-modal .upload-layer .btn-upld:hover {
    color: #f7170080;
    border-color: #f7170080;
    cursor: pointer;
}
.upload-modal .btn-more, .upload-modal .insert-file {
    display: block;
    position: relative;
    width: 50%;
    min-width: 150px;
    height: 50px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}
.upload-modal .btn-more:before, .upload-modal .insert-file:before {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    border: 2px solid;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s;
    animation: 0.8s linear infinite rotate;
}
.upload-modal .btn-more.sending {
    pointer-events: none;
    cursor: not-allowed;
}
.upload-modal .btn-more.sending:before {
    transition-delay: 0.5s;
    transition-duration: 1s;
    opacity: 1;
}
.upload-modal .insert-layer {
    padding: 20px;
    display: flex;
}
.upload-modal .insert-file {
    width: 100%;
    margin: 0;
    min-width: 0;
    background-color: #35c1ec;
}
.upload-modal .insert-file:hover {
    color: #ffffff;
}
.hidden {
    display: none !important;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 800px) {
    .infotip:before {
        top: -50%; 
        left: 50%; 
        transform: translate(-50%, -100%); 
        margin-left: 0;
        white-space: normal;
    }
    .infotip:after { 
        left: 50%; 
        top: -50%; 
        transform: translate(-50%, -10%) rotate(-90deg); 
        margin-left: 0; 
    }
    .infotip.left:before {
        left: 0;
        margin: initial;
        right: 100%;
        margin-right: 15px;
        transform: translate(-10px, -100%);
    }
    .infotip.right:before {
        right: 0;
        margin: initial;
        left: auto;
        margin-right: 0;
        transform: translate(10px, -100%);
    }
}

@media screen and (max-width: 768px) {
    .upload-modal {
        width: 100%;
    }
    .upload-modal .file-thumbnails .thumbnail {
        width: 30%;
    }
    .upload-modal .details-layer {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .custom-select-box {
        width: 100%;
    }
    .custom-select-box .select-box-display {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 575px) {
    .upload-modal .file-thumbnails .thumbnail {
        width: 45%;
    }
}

@media screen and (max-width: 440px) {
    .side_notifier {
        max-width: 80%;
    }
    .side_notifier.sw {
        right: 5px;
    }
}