/* Instant Collection Download Plugin Styles */

/* Ensure download button inherits UploadButton styling exactly */
#instant-download-btn-container.HeaderLink.UploadButton {
    /* Let it inherit all UploadButton styles from ResourceSpace CSS */
}

#instant-download-btn-container.HeaderLink.UploadButton a {
    /* Ensure link inherits UploadButton link styles */
}

/* Fallback navigation styling for when no Upload button exists */
#instant-download-fallback-nav {
    background: transparent;
    border: none;
    margin: 0;
    padding: 5px 10px;
}

#instant-download-fallback-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

#instant-download-fallback-nav li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Ensure consistent styling when button is first in HeaderNav1 */
#HeaderNav1 ul li:first-child#instant-download-btn-container {
    margin-left: 0;
}

/* Responsive: floating download button for small screens */
#instant-download-responsive-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1378BF;
    color: #fff;
    font-size: 22px;
    line-height: 56px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background 0.2s;
}

#instant-download-responsive-btn:hover,
#instant-download-responsive-btn:active {
    background: #0f5f99;
    color: #fff;
    text-decoration: none;
}

/* Show floating button when HeaderNav1 is hidden (RS responsive breakpoint) */
@media (max-width: 1200px) {
    #instant-download-responsive-btn {
        display: block;
    }
}

@media (min-width: 1201px) {
    #instant-download-responsive-btn {
        display: none !important;
    }
}

.instant-download-modal .download-options label {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instant-download-modal .download-size-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
}

.instant-download-modal .download-size-info p {
    margin: 5px 0;
}

.large-download-warning {
    text-align: center;
    padding: 20px;
}

.large-download-warning p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}
