/* developed by web-premium.ir */

.hmyt-field-editor { gap: 8px; }
.ck.ck-editor { line-height: normal; width: 100%; }
.ck.ck-editor__main > .ck-editor__editable {
    border-color: #d8d8d8 !important;
}
.ck-toolbar__items { flex-wrap: wrap !important; }
.ck.ck-button .ck-button__label { font-size: 12px !important; }
.ck-content { padding: 12px 14px !important; }
.ck-content p { font-size: 15px !important; margin: 6px 0 !important; line-height: 28px; }
.ck-content h1, .ck-content h2, .ck-content h3,
.ck-content h4, .ck-content h5, .ck-content h6 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 14px 0 8px !important;
}

.ck-content { direction: rtl; text-align: right; }


.hmyt-editor-draft {
    background: #fff8e5;
    border: solid 1px #ffd66b;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    gap: 10px;
    margin-bottom: 6px;
}
.hmyt-editor-draft .hmyt-editor-draft-use,
.hmyt-editor-draft .hmyt-editor-draft-del {
    background: #fff;
    border: solid 1px #e6c75a;
    border-radius: 5px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
}
.hmyt-editor-draft .hmyt-editor-draft-del { color: #c0392b; }


.hmyt-dragup-field { gap: 8px; }
.hmyt-dragup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px 12px;
    gap: 5px;
    line-height: normal;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    background: #fff;
    text-align: center;
}
.hmyt-dragup.on-drag, .hmyt-dragup:active { border-color: #9aa3b2; background: #fafbff; }
.hmyt-dragup > svg { color: #b8b8b8; width: 40px; height: 32px; margin-bottom: 10px; }
.hmyt-dragup-title { font-size: 14px; color: #6b7280; font-weight: 600; }
.hmyt-dragup-title strong { font-weight: 700; color: #4b5563; }
.hmyt-dragup-desc {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 7px;
    font-size: 12px;
    color: #8a8f99;
}
.hmyt-dragup-format {
    background: #f1f3f7; border-radius: 5px; padding: 1px 8px; font-size: 11px; text-transform: uppercase;
}
.hmyt-dragup-max { opacity: 0.7; padding-right: 6px; }
.hmyt-dragup-btns { display: flex; justify-content: center; gap: 10px; padding-top: 10px; flex-wrap: wrap; }
.hmyt-dragup-lib {
    background: #fff;
    color: #6b7280;
    border: solid 1px #cfd4dc;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hmyt-dragup-lib:hover { background: #f5f7fb; color: #3a4252; border-color: #b6bdc9; }

.hmyt-dragup-loading {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: #fff;
    color: #8d929b;
    cursor: progress;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hmyt-dragup.loading > *:not(.hmyt-dragup-loading) { opacity: 0; }
.hmyt-dragup.loading .hmyt-dragup-loading { display: flex; }

.hmyt-dragup-progress {
    position: absolute; top: 0; right: 0; bottom: 0; width: 0%;
    background: color-mix(in srgb, var(--hmyt-p, #0d59f1) 14%, transparent);
    transition: width 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.hmyt-dragup-spinner, .hmyt-dragup-loading small, .hmyt-dragup-cancel { position: relative; z-index: 1; }
.hmyt-dragup-spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--hmyt-p, #0d59f1) 25%, #e6e8ee);
    border-top-color: var(--hmyt-p, #0d59f1);
    margin-bottom: 8px; animation: hmyt-dragup-rot 0.7s linear infinite;
}
@keyframes hmyt-dragup-rot { to { transform: rotate(360deg); } }
.hmyt-dragup-cancel {
    margin-top: 10px; font-size: 11.5px; font-weight: 700; color: #6b7280;
    background: #fff; border: solid 1px #e2e5ea; padding: 6px 18px; border-radius: 8px; cursor: pointer;
    transition: all 0.15s ease;
}
.hmyt-dragup-cancel:hover { background: #fff; border-color: #e5484d; color: #e5484d; }

.hmyt-dragup-view:empty { display: none; }
.hmyt-dragup-view { margin-top: 4px; }


.hmyt-dragup-item {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 10px 16px; width: 100%;
    border: solid 2px #f5f5f5;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.hmyt-dragup-item:hover { border-color: #ececec; }
.hmyt-dragup-item img { max-width: 320px; width: 100%; height: auto; border-radius: 10px; display: block; }

.hmyt-dragup-file-info { display: flex; align-items: center; gap: 12px; color: inherit; flex: 1; min-width: 0; text-decoration: none; }
.hmyt-dragup-file-info svg { width: 26px; height: 26px; flex: 0 0 26px; color: #9aa0ab; }
.hmyt-dragup-file-info span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hmyt-dragup-file-info strong { font-size: 13.5px; font-weight: 600; color: #2b2d36; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hmyt-dragup-file-info strong.ltr { direction: ltr; text-align: right; }
.hmyt-dragup-file-info small { font-size: 11.5px; color: #9aa0ab; }
.hmyt-dragup-item-end { margin-right: auto; }


.hmyt-dragup-del {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    color: #adadad;
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}
.hmyt-dragup-del:hover { color: #e5484d; background: #fdeced; }
.hmyt-dragup-del svg { width: 21px; height: 21px; }
.hmyt-dragup-del > span {
    position: absolute;
    left: 50%; top: -28px;
    transform: translateX(-50%) scale(0.8);
    background: #1c274c; color: #fff;
    pointer-events: none; opacity: 0;
    font-size: 11px; font-weight: 700;
    padding: 4px 9px; border-radius: 4px; white-space: nowrap;
    transition: all 0.12s linear; z-index: 60;
}
.hmyt-dragup-del > span::before {
    content: ""; width: 8px; height: 8px;
    position: absolute; bottom: -3px; left: 50%;
    transform: translateX(-50%) rotate(45deg); background: #1c274c;
}
.hmyt-dragup-del:hover > span { opacity: 1; top: -31px; transform: translateX(-50%) scale(1); transition-delay: 0.3s; }
.ltr { direction: ltr; }