/**
 * GGM Commerce - Customer Downloads Styles
 *
 * @package GGM_Commerce
 */

/* Customer Downloads Container */
.ggmc-customer-downloads {
    width: 100%;
}

/* Title */
.ggmc-downloads-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Downloads List */
.ggmc-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Download Item */
.ggmc-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.ggmc-download-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ggmc-download-item.unavailable {
    opacity: 0.7;
    background-color: #fafafa;
}

/* Download Info */
.ggmc-download-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    flex: 1;
}

.ggmc-download-product,
.ggmc-download-file,
.ggmc-download-order,
.ggmc-download-remaining,
.ggmc-download-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ggmc-download-label {
    font-size: 13px;
    color: #666;
}

.ggmc-download-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ggmc-download-file .ggmc-download-value {
    font-weight: 600;
}

/* Download Actions */
.ggmc-download-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Download Button */
.ggmc-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ggmc-download-button:hover {
    background-color: #43a047;
    color: #fff;
    text-decoration: none;
}

.ggmc-download-button:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

/* Status Badges */
.ggmc-download-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.ggmc-download-status.expired {
    background-color: #ffebee;
    color: #c62828;
}

.ggmc-download-status.limit-reached {
    background-color: #fff3e0;
    color: #e65100;
}

.ggmc-download-status.unavailable {
    background-color: #f5f5f5;
    color: #757575;
}

/* Empty State */
.ggmc-downloads-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Login Required */
.ggmc-downloads-login-required {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.ggmc-downloads-login-required p {
    margin-bottom: 16px;
    color: #666;
    font-size: 15px;
}

.ggmc-login-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.ggmc-login-link:hover {
    background-color: #555;
    color: #fff;
}

/* Notice */
.ggmc-downloads-notice {
    padding: 20px;
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 4px;
    color: #e65100;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .ggmc-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ggmc-download-actions {
        margin-left: 0;
        width: 100%;
    }

    .ggmc-download-button {
        width: 100%;
        text-align: center;
    }

    .ggmc-download-info {
        flex-direction: column;
        gap: 8px;
    }
}
