/**
 * SX1 Product Attachments Styles
 * Shortcode: [sx1_product_attachements]
 */

/*
====== MAIN CONTAINER ======
*/
.sx1-product-attachments {
    margin: 10px 0;
    background-color: #f8f9fa;
}

/*
====== TITLE ======
*/
.sx1-attachments-title {
    display: none; /* Hidden by default, can be shown via shortcode attribute */
    font-size: 20px;
    font-weight: 700;
    color: #01a850;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #01a850;
}

/*
====== PDF LIST ======
*/
.sx1-attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/*
====== PDF BUTTONS (matching popup style) ======
*/
.sx1-attachments-list .sx1-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background-color: #ffffff;
    border: 2px solid #01a850;
    color: #01a850;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 0px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sx1-attachments-list .sx1-pdf-btn:hover {
    background-color: #01a850;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 168, 80, 0.3);
}

.sx1-attachments-list .sx1-pdf-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sx1-attachments-list .sx1-pdf-label {
    font-size: 15px;
}

/*
====== ERROR MESSAGE ======
*/
.sx1-attachments-error {
    color: #d9534f;
    font-size: 14px;
    padding: 10px 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/*
====== RESPONSIVE DESIGN ======
*/

/* Tablet (under 768px) */
@media screen and (max-width: 767px) {
    .sx1-product-attachments {
        padding: 20px;
        margin: 20px 0;
    }
    
    .sx1-attachments-title {
        font-size: 18px;
    }
    
    .sx1-attachments-list {
        flex-direction: column;
        gap: 12px;
    }
    
    .sx1-attachments-list .sx1-pdf-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
}

/* Mobile (under 480px) */
@media screen and (max-width: 479px) {
    .sx1-product-attachments {
        padding: 15px;
    }
    
    .sx1-attachments-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .sx1-attachments-list .sx1-pdf-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .sx1-attachments-list .sx1-pdf-btn .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    
    .sx1-attachments-list .sx1-pdf-label {
        font-size: 14px;
    }
}
