/* LD Donation Items Widget Styles */

.ld-items-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.ld-item-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ld-item-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.ld-item-image {
    width: 100%;
    overflow: hidden;
}

.ld-item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ld-item-card:hover .ld-item-image img {
    transform: scale(1.05);
}

.ld-item-details {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ld-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.ld-item-price-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ld-item-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    min-width: 0;
}

.ld-item-price {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
    white-space: nowrap;
}

.ld-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ld-item-quantity label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.ld-item-quantity input[type="number"] {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.ld-item-quantity input[type="number"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .ld-items-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .ld-items-grid {
        gap: 15px;
    }
    
    .ld-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ld-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ld-item-price-quantity {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ld-item-name {
        font-size: 16px;
    }
    
    .ld-item-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ld-item-details {
        padding: 15px;
    }
    
    .ld-item-name {
        font-size: 15px;
    }
    
    .ld-item-price {
        font-size: 16px;
    }
}

/* Single Column Layout */
.ld-items-grid {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Elementor Editor Styles */
.elementor-editor-active .ld-items-grid {
    min-height: 200px;
}

.elementor-editor-active .ld-item-card {
    border: 2px dashed #ddd;
}

/* Loading State */
.ld-items-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Total Row */
.ld-total-row {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.ld-total-label {
    font-size: 18px;
    color: #333;
}

.ld-total-amount {
    font-size: 24px;
    color: #007cba;
    font-weight: bold;
}

/* Donate Button */
.ld-donate-button-row {
    text-align: center;
    margin-top: 20px;
}

.ld-donate-now-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a8b 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ld-donate-now-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #005a8b 0%, #004070 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.ld-donate-now-btn:active:not(.disabled) {
    transform: translateY(0);
}

.ld-donate-now-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.ld-donate-now-btn i {
    font-size: 16px;
}

/* Empty State */
.ld-items-grid:empty::before {
    content: "No donation items found.";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}
