/**
 * Estilos para el popup de confirmación de reserva
 * Tours Marketplace Plugin
 */

/* Overlay (fondo oscuro) */
.tm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

/* Contenedor del popup */
.tm-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Cabecera del popup */
.tm-popup-header {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-popup-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.tm-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 0;
}

.tm-popup-close:hover {
    color: #333;
}

/* Contenido del popup */
.tm-popup-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Pie del popup */
.tm-popup-footer {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Estilos para los detalles de la reserva */
.tm-booking-details h4,
.tm-user-data-form h4,
.tm-user-data-display h4,
.tm-auth-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.tm-booking-details {
    margin-bottom: 20px;
}

.tm-booking-tour-info p,
.tm-booking-seats-info p,
.tm-user-info p {
    margin: 5px 0;
}

.tm-booking-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 1.1rem;
}

/* Estilos para el formulario de datos */
.tm-form-row {
    margin-bottom: 15px;
}

.tm-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.tm-form-row input,
.tm-form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.tm-form-row input:focus,
.tm-form-row textarea:focus {
    border-color: #888;
    outline: none;
}

.tm-form-row .required {
    color: #e53935;
}

/* Botones */
.tm-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tm-button:hover {
    background-color: #e0e0e0;
}

.tm-button-primary {
    background-color: #4caf50;
    color: white;
    border-color: #43a047;
}

.tm-button-primary:hover {
    background-color: #43a047;
}

.tm-button-small {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Estilos para la sección de autenticación */
.tm-auth-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.tm-auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tm-auth-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.tm-auth-tab:hover {
    color: #333;
}

.tm-auth-tab.active {
    color: #4caf50;
    border-bottom-color: #4caf50;
}

.tm-auth-form {
    padding-top: 10px;
}

/* Cabecera de datos de usuario con botón de editar */
.tm-user-data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tm-user-data-header h4 {
    margin: 0;
}

/* Mensajes de error */
.tm-form-error {
    color: #e53935;
    padding: 8px;
    margin-bottom: 15px;
    background-color: rgba(229, 57, 53, 0.1);
    border-radius: 4px;
}

/* Ajustes de Responsividad */
@media (max-width: 768px) {
    .tm-popup {
        width: 95%;
        max-height: 95vh;
    }
    
    .tm-popup-title {
        font-size: 1.2rem;
    }
    
    .tm-popup-content {
        padding: 15px;
    }
    
    .tm-auth-tabs {
        flex-direction: row;
    }
    
    .tm-auth-tab {
        width: 100%;
        text-align: center;
    }
}

/* Estilos para campos específicos del formulario */
#tm-user-data-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* Estilos para el modal personalizado */
.tm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.tm-modal {
    background-color: #fff;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tm-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.tm-modal-close {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.tm-modal-close:hover {
    color: #333;
}

.tm-modal-content {
    padding: 20px;
}

.tm-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Estilos para los botones si no están definidos en otro lugar */
.tm-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tm-button-primary {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.tm-button-primary:hover {
    background-color: #005f8b;
}

.tm-button-secondary {
    background-color: #f7f7f7;
    color: #555;
    border-color: #ccc;
}

.tm-button-secondary:hover {
    background-color: #f0f0f0;
}

.tm-confirm-message .dashicons-warning {
    color: #e67e22;
    font-size: 20px;
    vertical-align: middle;
    margin-right: 5px;
} 