/* Varmontt Shipping Plugin - Estilos */

/* Contenedor general */
.varmontt-cotizador-wrapper {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.varmontt-cotizador-wrapper h4 {
    margin-top: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* Selector de ciudades */
.varmontt-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    min-width: 200px;
    background-color: #fff;
    cursor: pointer;
}

.varmontt-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Botones */
.varmontt-btn,
.varmontt-btn-cart,
.varmontt-btn-shortcode {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.varmontt-btn:hover,
.varmontt-btn-cart:hover,
.varmontt-btn-shortcode:hover {
    background: #45a049;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.varmontt-btn:active,
.varmontt-btn-cart:active,
.varmontt-btn-shortcode:active {
    transform: translateY(1px);
}

.varmontt-btn:disabled,
.varmontt-btn-cart:disabled,
.varmontt-btn-shortcode:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Botón de WhatsApp */
.varmontt-whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.varmontt-whatsapp-btn:hover {
    background: #1ec857 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Respuesta/Resultados */
.varmontt-result {
    margin-top: 15px;
}

/* Campos de invitado (nombre y correo) */
.varmontt-guest-fields {
    margin: 10px 0;
}

.varmontt-guest-fields label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.varmontt-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    min-width: 200px;
    background-color: #fff;
    box-sizing: border-box;
}

.varmontt-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.varmontt-response {
    background: #fff;
    border-left: 4px solid #4CAF50;
    padding: 12px 15px;
    border-radius: 3px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.varmontt-response p {
    margin: 8px 0;
}

.varmontt-response strong {
    color: #333;
    font-weight: 600;
}

/* Contenedor SVG con mejor espaciado */
.varmontt-response svg {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    display: block;
}

/* Disclaimer */
.varmontt-disclaimer {
    color: #666;
    font-size: 12px;
    margin-top: 12px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 3px;
    line-height: 1.5;
}

/* Errores */
.varmontt-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 3px;
    font-size: 14px;
    margin-top: 10px;
}

/* Loading spinner */
.varmontt-loading {
    text-align: center;
    padding: 20px;
}

.varmontt-loading .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: varmontt-spin 0.8s linear infinite;
}

@keyframes varmontt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Labels */
label.varmontt-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .varmontt-select {
        min-width: 100%;
    }

    .varmontt-btn,
    .varmontt-btn-cart,
    .varmontt-btn-shortcode,
    .varmontt-whatsapp-btn {
        width: 100%;
        display: block;
        margin-top: 10px;
    }

    .varmontt-cotizador-wrapper {
        padding: 12px;
    }
    
    .varmontt-response {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

