/* ND Uploader — стили для шорткода [nd_uploader] */
/* Палитра на основе #326e5b */

.nd-container {
    width: 100%;
    max-width: 1100px;
    background: #1a2e28;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e0e0e0;
}
.nd-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}
.nd-dropzone {
    border: 2px dashed #2d4a40;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
}
.nd-dropzone:hover,
.nd-dropzone.nd-dragover {
    border-color: #4a8b74;
    background: rgba(50, 110, 91, 0.08);
}
.nd-dropzone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.nd-dropzone-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.nd-dropzone-text {
    font-size: 14px;
    color: #8aa89e;
}
.nd-dropzone-text strong {
    color: #4a8b74;
}
.nd-progress-wrap {
    margin-top: 24px;
    display: none;
}
.nd-progress-wrap.nd-active {
    display: block;
}
.nd-progress-line {
    height: 4px;
    background: #1f3530;
    border-radius: 2px;
    overflow: hidden;
}
.nd-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #326e5b, #5fa087);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nd-counter-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.nd-counter {
    font-size: 14px;
    font-weight: 500;
    color: #8aa89e;
}
.nd-counter strong {
    color: #fff;
}
.nd-status-text {
    font-size: 12px;
    color: #5a7a6e;
}
.nd-status-text[data-status=error] { color: #ff6b6b; }
.nd-status-text[data-status=success] { color: #51cf66; }
.nd-file-list {
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
}
.nd-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #1f3530;
    font-size: 13px;
}
.nd-file-item:last-child { border-bottom: none; }
.nd-file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nd-file-size { color: #5a7a6e; font-size: 11px; }
.nd-progress {
    flex: 0 0 60px;
    height: 3px;
    background: #1f3530;
    border-radius: 2px;
    overflow: hidden;
}
.nd-progress-bar { height: 100%; width: 0%; background: #326e5b; transition: width 0.2s; }
.nd-progress-text { font-size: 11px; color: #8aa89e; width: 32px; text-align: right; }
.nd-status { font-size: 11px; width: 60px; text-align: right; }
.nd-done .nd-status { color: #51cf66; }
.nd-error .nd-status { color: #ff6b6b; }
.nd-retry .nd-status { color: #ffa94d; }
.nd-results {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.nd-placeholder-wrap {
    width: 80px;
    text-align: center;
}
.nd-placeholder {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #1f3530;
}
.nd-placeholder-label {
    display: block;
    font-size: 10px;
    color: #8aa89e;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.ndmodal-upload-progress .ndmodal-content__info {
display: flex;
margin: 0 auto 15px;
width: 100%;
max-width: 339px;
padding: 8px 12px;
justify-content: center;
align-items: flex-start;
gap: 6px;
border-radius: 8px;
background: linear-gradient(0deg, rgba(50, 110, 91, 0.05) 0%, rgba(50, 110, 91, 0.05) 100%), #FFF;

}
.ndmodal-upload-progress .ndmodal-content__info p{
    color: var(--black, #444);
font-feature-settings: 'liga' off, 'clig' off;
font-family: "Noto Sans";
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 125%; /* 15px */
}


.flow_item__placeholder-image {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* SVG ICONS */
.file-fon-upload--processing {
  background-image:
    linear-gradient(124deg, #E9EBF0 0%, #FFF 25%, #E9EBF0 50%, #FFF 75%, #E9EBF0 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.40) 4.87%, rgba(0, 0, 0, 0.00) 34.54%);
  background-repeat: no-repeat;
}

.nd-icon__private-icon-media,
.nd-icon__placeholder-image {
    display: block;
}

.nd-icon__private-icon-media::before {
    background-color: #B7BDCE;
}
.flow_item__placeholder-image .nd-icon__placeholder-image {
    width: 48px;
    height: 48px;
}
.flow_item__placeholder-image .nd-icon__placeholder-image::before {
    background-color: #B7BDCE;

}
.flow_item_title .nd-icon__placeholder-image::before {
    background-color: #326E5B;

}
.flow_item__placeholder--clock {
    display: flex;
    align-items: center;
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 6px 8px;
    border-radius: 18px;
    background: #FFF;
    color: #326E5B;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Noto Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    z-index: 1;
}
.flow_item__placeholder--clock i{
    display: block;
    margin-right: 8px;
    width: 16px;
    height: 16px;
}
.flow_item__placeholder--clock .nd-icon__clock::before{
    background-color: #326E5B;

}

.nd-icon__info-black {
    display: block;
    width: 16px;
    height: 16px;
}
.nd-icon__info-black::before{
    /* background-color: #326E5B; */
}

/* SVG ICONS ERROR */
.ndmodal-content__error .nd-icon__info::before,
.ndmodal-content__error .nd-icon__back::before {
    background-color: #bf0000;

}
.ndmodal-content__error .nd-icon__back {
    transform: rotate(180deg);
    width: 16px;
    height: 16px;
}

.error_modal .info_error_red .nd-icon__info::before {
    background-color: #bf0000;
}

.err-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #E9EBF0;
    padding: 10px;
    border-radius: 8px;
    height: max-content;

}
.error_modal .nd-icon__file {
}
.error_modal .nd-icon__file::before {
    background-color: #444444;
}