/**
 * Copyright © Inn. All rights reserved.
 * Inn_FreeProduct Gift Popup Styles
 */

.free-product-popup-content {
    padding: 20px;
}

.free-product-description {
    margin-bottom: 20px;
    text-align: center;
}

.free-product-description .selection-info {
    font-size: 16px;
    margin-top: 10px;
}

.free-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gift-product-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gift-product-item:hover {
    border-color: #1979c3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gift-product-item.selected {
    border-color: #1979c3;
    background-color: #f0f8ff;
}

.gift-product-item .product-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gift-product-item .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gift-product-item .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #999;
}

.gift-product-item .product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.gift-product-item .product-sku {
    font-size: 12px;
    color: #666;
}

.gift-product-item .select-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1979c3;
    display: none;
    align-items: center;
    justify-content: center;
}

.gift-product-item.selected .select-indicator {
    display: flex;
}

.gift-product-item .select-indicator .checkmark {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.free-product-modal .modal-inner-wrap {
    max-width: 800px;
}

@media (max-width: 768px) {
    .free-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gift-product-item .product-image {
        height: 100px;
    }
}

