/**
 * Estilos para el selector de localizaciones MRW
 *
 * @author MRW Iberia
 * @copyright (c)2025 - MRW IBERIA
 */

.mrw-locations-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    clear: both;
}

.mrw-locations-header {
    margin-bottom: 20px;
}

.mrw-locations-header h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mrw-locations-header .mrw-locations-info {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.mrw-locations-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.mrw-locations-error {
    margin: 15px 0;
}

.mrw-locations-error .alert {
    margin: 0;
    padding: 12px 15px;
    border-radius: 4px;
}

.mrw-locations-list {
    margin-top: 15px;
}

.mrw-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.mrw-location-item {
    position: relative;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mrw-location-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.mrw-location-item.selected {
    border-color: #007bff;
    background-color: #f0f8ff;
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.2);
}

.mrw-location-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mrw-location-label {
    display: block;
    cursor: pointer;
    margin: 0;
    text-align: left;
}

.mrw-location-line {
    display: block;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.mrw-location-name {
    font-weight: 600;
    color: #0056b3;
    font-size: 14px;
}

.mrw-location-detail {
    font-size: 13px;
}

.mrw-location-detail.smaller {
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .mrw-locations-grid {
        grid-template-columns: 1fr;
    }
    
    .mrw-locations-container {
        padding: 15px;
    }
}

/* Compatibilidad con temas de PrestaShop */
.mrw-locations-container .alert {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.mrw-locations-container .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

