/**
 * MP Tickets Calendar - Number Field Styles
 * Estilos para el template personalizado de campos de número
 * Version: 1.0.0
 */

.mp-travelers-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.mp-number-total-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mp-travelers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.mp-travelers-container:first-child {
    gap: 5px;
}

.mp-traveler-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.mp-traveler-item:last-child {
    border-bottom: none;
}

.mp-traveler-info {
    flex: 1;
    min-width: 0;
    padding-right: 15px;
}

.mp-traveler-label {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    word-wrap: break-word;
}

.mp-traveler-subtitle {
    font-weight: normal;
    color: #666;
}

.mp-traveler-constraints {
    font-size: 12px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 12px;
}

.mp-traveler-selector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mp-number-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #f26a1b;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    color: #f26a1b;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.mp-number-btn:hover {
    background: #f26a1b;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(242, 106, 27, 0.3);
}

.mp-number-btn.disabled {
    border-color: #e9ecef;
    color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.mp-number-btn.disabled:hover {
    background: white;
    color: #e9ecef;
    transform: none;
    box-shadow: none;
}

.mp-number-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    max-width: 70px;
    flex: 0 0 auto;
}

.mp-number-input {
    width: 100%;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none;
    padding: 0px 10px !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    box-sizing: border-box;
    border: none !important;
}

.mp-number-input::-webkit-outer-spin-button,
.mp-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mp-number-input:focus {
    outline: none;
}

.mp-number-icon {
    line-height: 1;
    font-weight: bold;
}

/* Override para WooCommerce */
.wc-bookings-booking-form .form-field input[type=number] {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .mp-travelers-card {
        padding: 12px;
        margin: 15px 0;
    }
    
    /* Mantener layout horizontal en tablets */
    .mp-traveler-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
    }
    
    .mp-traveler-info {
        flex: 1;
        padding-right: 10px;
        min-width: 0;
    }
    
    .mp-traveler-selector {
        flex: 0 0 auto;
        gap: 8px;
    }
    
    .mp-number-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .mp-number-input-container {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .mp-travelers-card {
        padding: 10px;
    }
    
    /* Solo en móviles muy pequeños cambiar a columna */
    .mp-traveler-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
    }
    
    .mp-traveler-info {
        flex: 1;
        padding-right: 0;
        width: 100%;
    }
    
    .mp-traveler-selector {
        flex: 0 0 auto;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .mp-number-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .mp-number-input {
        font-size: 16px;
    }
    
    .mp-number-input-container {
        min-width: 70px;
    }
} 