/* =========================
   CUSTOM UPLOAD - DesignFlow
========================= */

.dfu-upload-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: 'Geologica', Arial, sans-serif;
}

.custom-upload {
    width: 100%;
    border-radius: 8px;
    background: var(--e-global-color-primary);
    padding: 12px 12px 6px 12px;
    box-sizing: border-box;
    transition: .2s ease;
    cursor: pointer;
    position: relative;
}

.custom-upload:hover,
.custom-upload.is-dragover {
    background: var(--e-global-color-secondary);
}

.custom-upload-inner {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 16px;
    pointer-events: none;
    padding-left: 8px;
    padding-top: 2px;
    padding-bottom: 6px;
}

.custom-upload-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef1f8;
    color: var(--e-global-color-primary);
    font-size: 20px;
    font-weight: 500;
}

.custom-upload:hover .custom-upload-icon {
    color: var(--e-global-color-secondary);
}

.custom-upload-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Geologica', Arial, sans-serif;
}

.custom-upload-subtitle {
    margin-top: 8px;
    color: white;
    font-size: 16px;
    font-family: 'Geologica', Arial, sans-serif;
    line-height: 1.2;
}

/* NEW - Subtitle label styles */
.custom-upload-subtitle .dfu-label {
    display: inline-block;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 4px;
}

.custom-upload-subtitle .dfu-label strong {
    font-weight: 600;
    color: #ffffff;
}

.custom-upload-subtitle .dfu-formats {
    display: block;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0px;
}

.custom-upload-subtitle .dfu-label:not(:last-child)::after {
    content: '·';
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.3);
}

.custom-upload-browse {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Geologica', Arial, sans-serif;
}

/* File input - hidden but clickable */
.dfu-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Uploaded files */
.custom-upload-files {
    margin-top: 10px;
}

.custom-upload-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 9px;
    margin-top: 5px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    cursor: default;
    animation: dfuSlideDown 0.3s ease;
    font-family: 'Geologica', Arial, sans-serif;
}

.custom-upload-file-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.custom-upload-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    color: #333;
    font-weight: 500;
    font-family: 'Geologica', Arial, sans-serif;
}

.custom-upload-file-size {
    color: #8a8f99;
    font-size: 11px;
    flex-shrink: 0;
    font-family: 'Geologica', Arial, sans-serif;
}

.custom-upload-file-remove {
    border: 0;
    background: none;
    color: #8a8f99;
    cursor: pointer;
    font-size: 18px;
    padding: 0 2px;
    transition: color 0.2s;
    flex-shrink: 0;
    font-family: 'Geologica', Arial, sans-serif;
}

.custom-upload-file-remove:hover {
    color: #e5310e;
}

/* Messages */
.dfu-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
    animation: dfuSlideDown 0.3s ease;
    font-family: 'Geologica', Arial, sans-serif;
}

.dfu-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dfu-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dfu-loading {
    padding: 10px 16px;
    background: #e2e3e5;
    color: #383d41;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
    animation: dfuPulse 1.5s ease-in-out infinite;
    font-family: 'Geologica', Arial, sans-serif;
}

/* Animations */
@keyframes dfuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dfuPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Hide WOW Addons upload UI if present */
.upload-lb {
    display: none !important;
}

.products-uploads-dragandrophandler-container {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}