/**
 * Product Resource Download Checkbox Styles
 *
 * @package AmericanEagleCore\Shortcode\ResourcesDownloadCheckbox
 */

/* Checkbox Wrapper */
.resources-download-checkbox-wrapper {
    display: inline-block;
    margin: 0;
}

.product-resource-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--xxs);
    cursor: pointer;
    user-select: none;
}

.checkbox-label-text {
    font-size: var(--wp--preset--font-size--small);
}

.product-resource-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Sticky Footer */
.resource-download-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    padding: var(--wp--preset--spacing--xs) 80px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.resource-download-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--wp--preset--spacing--xs);
}

.resource-download-footer__info {
    display: flex;
    align-items: baseline;
    gap: var(--wp--preset--spacing--xxs);
}

.resource-download-footer__count {
    font-size: var(--wp--preset--font-size--large);
    font-weight: bold;
    color: #111827;
}

.resource-download-footer__label {
    font-size: var(--wp--preset--font-size--small);
    color: #6b7280;
}

.resource-download-footer__size {
    font-size: var(--wp--preset--font-size--small);
    color: #6b7280;
    margin-left: 4px;
}

.resource-download-footer__actions {
    display: flex;
    gap: var(--wp--preset--spacing--xs);
}

.resource-download-footer__clear-btn,
.resource-download-footer__download-btn {
    padding: 12px 24px;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resource-download-footer__clear-btn {
    background: #f3f4f6;
    color: #374151;
}

.resource-download-footer__clear-btn:hover {
    background: #e5e7eb;
}

.resource-download-footer__download-btn {
    background: #2563eb;
    color: #ffffff;
}

.resource-download-footer__download-btn:hover {
    background: #1d4ed8;
}

.resource-download-footer__download-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .resource-download-footer {
        padding: 15px;
    }

    .resource-download-footer__inner {
        flex-direction: column;
        gap: 15px;
    }

    .resource-download-footer__info {
        width: 100%;
        justify-content: center;
    }

    .resource-download-footer__actions {
        width: 100%;
        flex-direction: column;
    }

    .resource-download-footer__clear-btn,
    .resource-download-footer__download-btn {
        width: 100%;
    }
}