/**
 * Gift Box Options - Frontend Styles
 */

.gbo-gift-box-options {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
}

.gbo-modes {
    margin-bottom: 20px;
}

.gbo-mode {
    margin-bottom: 15px;
}

.gbo-mode-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gbo-mode-label:hover {
    border-color: #0073aa;
}

.gbo-mode-label input[type="radio"] {
    margin-right: 12px;
}

.gbo-mode-text {
    font-weight: 600;
    flex-grow: 1;
}

.gbo-mode-price {
    color: #0073aa;
    font-weight: 600;
}

.gbo-mode-label input[type="radio"]:checked + .gbo-mode-text {
    color: #0073aa;
}

.gbo-mode-label:has(input:checked) {
    border-color: #0073aa;
    background: #f0f8ff;
}

.gbo-items {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.gbo-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.gbo-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gbo-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.gbo-item-label {
    display: block;
    cursor: pointer;
    padding: 10px;
}

.gbo-item-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.gbo-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gbo-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.gbo-item-info {
    flex-grow: 1;
}

.gbo-item-name {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.gbo-item-price {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.gbo-item-label:has(input:checked) {
    background: #f0f8ff;
    border-color: #0073aa;
}

.gbo-item-label:has(input:checked) .gbo-item-name {
    color: #0073aa;
}

.gbo-selection-info {
    text-align: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.gbo-selected-count {
    font-weight: 600;
    color: #0073aa;
}

.gbo-summary {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 6px;
}

.gbo-summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.gbo-summary-label {
    color: #333;
}

.gbo-summary-price {
    color: #0073aa;
    font-size: 18px;
}

/* Responsive design */
@media (max-width: 768px) {
    .gbo-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gbo-item-image {
        width: 40px;
        height: 40px;
    }
    
    .gbo-item-name {
        font-size: 13px;
    }
    
    .gbo-item-price {
        font-size: 12px;
    }
}
